Class JTextComponentShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
JTextAreaShape, JTextFieldShape

public class JTextComponentShape extends JComponentShape
A shape implementation for JTextComponent.
  • Constructor Details

    • JTextComponentShape

      public JTextComponentShape()
  • Method Details

    • getText

      public String getText()
      Returns the text.
    • setText

      public void setText(String aString)
      Sets the text.
    • isEditable

      public boolean isEditable()
      Returns whether Text shape is editable.
    • setEditable

      public void setEditable(boolean aValue)
      Sets whether Text shape is editable.
    • getMargin

      public Insets getMargin()
      Returns the button margins.
    • setMargin

      public void setMargin(Insets theInsets)
      Sets the button margins.
    • getMarginString

      public String getMarginString()
      Returns the margin string.
    • setMarginString

      public void setMarginString(String aString)
      Sets the button margin string.
    • configureComponent

      protected void configureComponent(JBuilder aBldr, JComponent aComp)
      Configures the component.
      Overrides:
      configureComponent in class JComponentShape
    • toXMLShape

      protected RXElement toXMLShape(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXMLShape in class JComponentShape
    • fromXMLShape

      protected void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class JComponentShape