org.graffiti.plugin.editcomponent
Class SpinnerEditComponent

java.lang.Object
  extended by org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
      extended by org.graffiti.plugin.editcomponent.AbstractValueEditComponent
          extended by org.graffiti.plugin.editcomponent.SpinnerEditComponent
All Implemented Interfaces:
EventListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent

public class SpinnerEditComponent
extends AbstractValueEditComponent

DOCUMENT ME!

Version:
$Revision: 5768 $

Field Summary
 
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
editField, showEmpty
 
Fields inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
displayable, displayables
 
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
 
Constructor Summary
SpinnerEditComponent(Displayable<?> disp)
          Constructor for SpinnerEditComponent.
 
Method Summary
 JComponent getComponent()
          Returns the ValueEditComponent's JComponent.
protected  void setDispEditFieldValue()
          Sets the current value of the Attribute in the corresponding JComponent.
 void setDisplayable(Displayable<?> disp)
          Sets the displayable.
protected  void setDispValue()
          Sets the value of the displayable specified in the JComponent.
 void setShowEmpty(boolean showEmpty)
          Called with a value of true when this component should display nothing instead of the value of its associated displayable.
 
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
addVECChangeListener, fireVECChanged, fireVECChanged, getDisplayable, getDisplayables, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, removeVECChangeListener, setDisplayables, setEditFieldValue, setEnabled, setValue
 
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
getErrorMessageOfInvalidParameter, isValid, postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, transactionFinished, transactionStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpinnerEditComponent

public SpinnerEditComponent(Displayable<?> disp)
Constructor for SpinnerEditComponent.

Parameters:
disp - DOCUMENT ME!
Method Detail

getComponent

public JComponent getComponent()
Returns the ValueEditComponent's JComponent.

Returns:
DOCUMENT ME!

setDisplayable

public void setDisplayable(Displayable<?> disp)
Sets the displayable.

Specified by:
setDisplayable in interface ValueEditComponent
Overrides:
setDisplayable in class AbstractValueEditComponent
Parameters:
disp -

setDispEditFieldValue

protected void setDispEditFieldValue()
Sets the current value of the Attribute in the corresponding JComponent.

Specified by:
setDispEditFieldValue in class AbstractValueEditComponent

setShowEmpty

public void setShowEmpty(boolean showEmpty)
Description copied from interface: ValueEditComponent
Called with a value of true when this component should display nothing instead of the value of its associated displayable. This is used when several displayables use this component but have different values. When set to false, the value of the displayable associated with this component is used.

Specified by:
setShowEmpty in interface ValueEditComponent
Overrides:
setShowEmpty in class AbstractValueEditComponent

setDispValue

protected void setDispValue()
Sets the value of the displayable specified in the JComponent. But only if it is different.

Specified by:
setDispValue in class AbstractValueEditComponent


Generated at 2012-05-30 11:00:36 PM CEST