Class AbstractValueEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
- Direct Known Subclasses:
AbstractDialogableEditComponent
,BooleanEditComponent
,ChartAttributeEditor
,ChartColorAttributeEditor
,ChartsColumnAttributeEditor
,ClusterColorAttributeEditor
,ColorChooserEditComponent
,ComboBoxEditComponent
,CompoundImageAttributeEditor
,CompoundImagePositionAttributeEditor
,DockingAttributeEditor
,EnhDoubleEditComponent
,FontAttributeEditor
,GradientFillAttributeEditor
,GraphComponentEditComponent
,KeggGroupPartAttributeEditor
,KeggReactionIdAttributeEditor
,KeggReactionTypeAttributeEditor
,KeggRelationSubTypeAttributeEditor
,KeggRelationTypeAttributeEditor
,KeggTypeAttributeEditor
,LabelAlignmentAttributeEditor
,LabelFontAttributeEditor
,LabelStyleAttributeEditor
,LandmarkSliderComponent
,LineModeAttributeEditor
,LineModeEditComponent
,MultiFileSelectionEditComponent
,NumberEditComponent
,SliderComponent
,SpinnerEditComponent
,StandardValueEditComponent
,StringEditComponent
,ThicknessAttributeEditor
,URLAttributeEditor
,XMLAttributeEditor
public abstract class AbstractValueEditComponent extends ValueEditComponentAdapter
The class
AbstractValueEditComponent
provides some generic
implementation for ValueEditComponent
s.- See Also:
ValueEditComponent
-
Field Summary
Fields Modifier and Type Field Description boolean
showEmpty
Set to true if this component should display nothing instead of the value of the attribute it represents.Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
-
Method Summary
Modifier and Type Method Description Displayable
getDisplayable()
Returns theAttribute
instance the currentValueEditComponent
contains.boolean
getShowEmpty()
Returns true when this component actually does not represent the value of an attribute.boolean
isEnabled()
Returns whether this component allows editing.void
postAttributeChanged(AttributeEvent e)
Called after a change of an displayable took place.void
preAttributeChanged(AttributeEvent e)
Called before a change of an displayable takes place.void
setDisplayable(Displayable disp)
Sets the displayable.void
setEnabled(boolean enabled)
Specifies whether this component should allow editing.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.ValueEditComponentAdapter
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, setParameter, setValue, transactionFinished, transactionStarted
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
getComponent, setEditFieldValue, setValue
-
Field Details
-
showEmpty
public boolean showEmptySet to true if this component should display nothing instead of the value of the attribute it represents.
-
-
Method Details
-
setDisplayable
Sets the displayable.- Parameters:
disp
-
-
getDisplayable
Returns theAttribute
instance the currentValueEditComponent
contains.- Returns:
- the
Attribute
instance the currentValueEditComponent
contains.
-
setEnabled
public void setEnabled(boolean enabled)Description copied from interface:ValueEditComponent
Specifies whether this component should allow editing. -
isEnabled
public boolean isEnabled()Description copied from interface:ValueEditComponent
Returns whether this component allows editing.- Returns:
- DOCUMENT ME!
-
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. -
getShowEmpty
public boolean getShowEmpty()Description copied from interface:ValueEditComponent
Returns true when this component actually does not represent the value of an attribute.- Returns:
- DOCUMENT ME!
-
postAttributeChanged
Called after a change of an displayable took place.- Specified by:
postAttributeChanged
in interfaceAttributeListener
- Overrides:
postAttributeChanged
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeChanged
Called before a change of an displayable takes place.- Specified by:
preAttributeChanged
in interfaceAttributeListener
- Overrides:
preAttributeChanged
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing the changes.
-