Class AbstractButtonShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
JButtonShape, JMenuItemShape, JToggleButtonShape

public class AbstractButtonShape extends LabeledShape
A JComponentShape for AbstractButton.
  • Constructor Details

    • AbstractButtonShape

      public AbstractButtonShape()
  • Method Details

    • isSelected

      public boolean isSelected()
      Returns whether button is selected.
    • setSelected

      public void setSelected(boolean aValue)
      Sets whether button is selected.
    • getSelectedImageName

      public String getSelectedImageName()
      Returns the selected image name.
    • setSelectedImageName

      public void setSelectedImageName(String aName)
      Sets the selected image name.
    • getPressedImageName

      public String getPressedImageName()
      Returns the pressed image name.
    • setPressedImageName

      public void setPressedImageName(String aName)
      Sets the pressed image name.
    • isBorderPainted

      public boolean isBorderPainted()
      Returns whether button border is painted.
    • getBorderPainted

      public Boolean getBorderPainted()
      Returns whether button border is painted.
    • setBorderPainted

      public void setBorderPainted(Boolean aValue)
      Sets whether button border is painted.
    • isContentAreaFilled

      public boolean isContentAreaFilled()
      Returns whether button content area filled.
    • getContentAreaFilled

      public Boolean getContentAreaFilled()
      Returns whether button content area filled.
    • setContentAreaFilled

      public void setContentAreaFilled(Boolean aValue)
      Sets whether button content area filled.
    • isFocusPainted

      public boolean isFocusPainted()
      Returns whether focus is painted.
    • getFocusPainted

      public Boolean getFocusPainted()
      Returns whether focus is painted.
    • setFocusPainted

      public void setFocusPainted(Boolean aValue)
      Sets whether focus is painted.
    • 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.
    • getButtonGroupName

      public String getButtonGroupName()
      Returns the button group name.
    • setButtonGroupName

      public void setButtonGroupName(String aName)
      Sets the button group name.
    • getPropertyNameMapped

      public String getPropertyNameMapped(String aPropertyName)
      Returns a mapped property name.
      Overrides:
      getPropertyNameMapped in class RMShape
    • configureComponent

      protected void configureComponent(JBuilder aBldr, JComponent aComp)
      Override to apply subclass attributes.
      Overrides:
      configureComponent in class LabeledShape
    • toXMLShape

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

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