Class SwitchPaneShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class SwitchPaneShape extends JComponentShape
An RMShape subclass for SwitchPane.
  • Constructor Details

    • SwitchPaneShape

      public SwitchPaneShape()
  • Method Details

    • getSelectedIndex

      public int getSelectedIndex()
      Returns the switch pane's selected index.
    • setSelectedIndex

      public void setSelectedIndex(int anIndex)
      Sets the switch pane's selected index.
    • getSelectedPaneName

      public String getSelectedPaneName()
      Returns the selected name.
    • setSelectedPaneName

      public void setSelectedPaneName(String aName)
      Sets the selected pane to the first with the given name.
    • superSelectable

      public boolean superSelectable()
      Editor method - overrides default implementation to indicate shape is super selectable.
      Overrides:
      superSelectable in class RMShape
    • childrenSuperSelectImmediately

      public boolean childrenSuperSelectImmediately()
      Editor method - overrides default implementation to indicate children should super select immediately.
      Overrides:
      childrenSuperSelectImmediately in class RMShape
    • getComponentClass

      public Class<? extends JComponent> getComponentClass()
      Returns the component class for this component shape.
      Overrides:
      getComponentClass in class JComponentShape
    • createComponentDeep

      public void createComponentDeep(JBuilder aBldr, JComponent aComp)
      Override to set SelectedIndex.
      Overrides:
      createComponentDeep in class JComponentShape
    • toXMLShape

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

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