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 ValueEditComponents.- See Also:
ValueEditComponent
-
Field Summary
Fields Modifier and Type Field Description booleanshowEmptySet 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 DisplayablegetDisplayable()Returns theAttributeinstance the currentValueEditComponentcontains.booleangetShowEmpty()Returns true when this component actually does not represent the value of an attribute.booleanisEnabled()Returns whether this component allows editing.voidpostAttributeChanged(AttributeEvent e)Called after a change of an displayable took place.voidpreAttributeChanged(AttributeEvent e)Called before a change of an displayable takes place.voidsetDisplayable(Displayable disp)Sets the displayable.voidsetEnabled(boolean enabled)Specifies whether this component should allow editing.voidsetShowEmpty(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, transactionStartedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theAttributeinstance the currentValueEditComponentcontains.- Returns:
- the
Attributeinstance the currentValueEditComponentcontains.
-
setEnabled
public void setEnabled(boolean enabled)Description copied from interface:ValueEditComponentSpecifies whether this component should allow editing. -
isEnabled
public boolean isEnabled()Description copied from interface:ValueEditComponentReturns whether this component allows editing.- Returns:
- DOCUMENT ME!
-
setShowEmpty
public void setShowEmpty(boolean showEmpty)Description copied from interface:ValueEditComponentCalled 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:ValueEditComponentReturns 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:
postAttributeChangedin interfaceAttributeListener- Overrides:
postAttributeChangedin classValueEditComponentAdapter- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeChanged
Called before a change of an displayable takes place.- Specified by:
preAttributeChangedin interfaceAttributeListener- Overrides:
preAttributeChangedin classValueEditComponentAdapter- Parameters:
e- the AttributeEvent detailing the changes.
-