Class JTabbedPaneShape

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

public class JTabbedPaneShape extends JComponentShape
An RMShape subclass for JTabbedPane.
  • Constructor Details

    • JTabbedPaneShape

      public JTabbedPaneShape()
  • Method Details

    • getTabCount

      public int getTabCount()
      Returns the number of tabs in pane.
    • addTab

      public void addTab(String aTitle, RMShape aTabShape)
      Adds the given tab shape to tabbed pane shape.
    • getTitleAt

      public String getTitleAt(int anIndex)
      Returns the title at given index.
    • getSelectedIndex

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

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

      public RMShape getSelectedChild()
      Returns the selected child.
    • 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
    • createComponent

      protected JComponent createComponent()
      Override to add tabs for app rendering.
      Overrides:
      createComponent in class JComponentShape
    • createComponentDeep

      public void createComponentDeep(JBuilder aBldr, JComponent aComp)
      Returns the component deep.
      Overrides:
      createComponentDeep in class JComponentShape
    • paintShapeChildren

      public void paintShapeChildren(RMShapePainter aPntr)
      Override to make children paint in tabpane.
      Overrides:
      paintShapeChildren in class RMShape
    • toXMLShape

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

      public void toXMLChildren(RXArchiver anArchiver, RXElement anElement)
      XML archival deep.
      Overrides:
      toXMLChildren in class JComponentShape
    • fromXMLShape

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

      public void fromXMLChildren(RXArchiver anArchiver, RXElement anElement)
      XML unarchival for children. Only panels do anything here so far.
      Overrides:
      fromXMLChildren in class RMParentShape