Class StringEditComponent

All Implemented Interfaces:
EventListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent
Direct Known Subclasses:
TextAreaEditComponent

public class StringEditComponent
extends AbstractValueEditComponent
StringEditComponent provides an edit component for editing strings. The edit field has just one line.
Version:
$Revision: 1.9 $
See Also:
AbstractValueEditComponent, JTextComponent, TextAreaEditComponent
  • Constructor Details

    • StringEditComponent

      public StringEditComponent​(Displayable disp)
      Constructs a new StringEditComponent.
      Parameters:
      disp - DOCUMENT ME!
  • Method Details

    • getComponent

      public JComponent getComponent()
      Returns the JComponent of this edit component.
      Returns:
      the JComponent of this edit component.
    • setEditFieldValue

      public void setEditFieldValue()
      Sets the current value of the displayable in the corresponding JComponent.
    • setValue

      public void setValue()
      Sets the value of the displayable specified in the JComponent. But only if it is different.
    • setParameter

      public void setParameter​(String setting, Object value)
      Specified by:
      setParameter in interface ValueEditComponent
      Overrides:
      setParameter in class ValueEditComponentAdapter