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 Details

    • showEmpty

      public boolean showEmpty
      Set to true if this component should display nothing instead of the value of the attribute it represents.
  • Method Details

    • setDisplayable

      public void setDisplayable​(Displayable disp)
      Sets the displayable.
      Parameters:
      disp -
    • getDisplayable

      public Displayable getDisplayable()
      Returns the Attribute instance the current ValueEditComponent contains.
      Returns:
      the Attribute instance the current ValueEditComponent 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

      public void postAttributeChanged​(AttributeEvent e)
      Called after a change of an displayable took place.
      Specified by:
      postAttributeChanged in interface AttributeListener
      Overrides:
      postAttributeChanged in class ValueEditComponentAdapter
      Parameters:
      e - the AttributeEvent detailing the changes.
    • preAttributeChanged

      public void preAttributeChanged​(AttributeEvent e)
      Called before a change of an displayable takes place.
      Specified by:
      preAttributeChanged in interface AttributeListener
      Overrides:
      preAttributeChanged in class ValueEditComponentAdapter
      Parameters:
      e - the AttributeEvent detailing the changes.