Class JTabbedPaneTool

All Implemented Interfaces:
RMArchiver.Archiving, RJListController, Cloneable

public class JTabbedPaneTool extends RBTool implements RJListController
Provides Ribs UI editing for JTabbedPaneShape.
  • Constructor Details

    • JTabbedPaneTool

      public JTabbedPaneTool()
      Creates a tabbed pane tool.
  • Method Details

    • getUI

      public RJPanel getUI()
      Returns the Swing UI panel for this inspector.
      Overrides:
      getUI in class Tool
    • resetUI

      public void resetUI()
      Resets UI from currently selected tab pane shape.
      Overrides:
      resetUI in class Tool
    • respondUI

      public void respondUI(Object anObj)
      Responds to UI.
      Overrides:
      respondUI in class Tool
    • getShapeClass

      public Class getShapeClass()
      Returns the class that this tool is responsible for.
      Overrides:
      getShapeClass in class Tool
    • getWindowTitle

      public String getWindowTitle()
      Returns the name to be used for this tool in inspector window title.
      Overrides:
      getWindowTitle in class Tool
    • buildShapesFromComponents

      public void buildShapesFromComponents(JComponent aComponent, RJShape aShape, RMShape aParentShape)
      Creates the appropriate RJShape for given RJComponent and adds it to given shape.
      Overrides:
      buildShapesFromComponents in class RBTool
    • mousePressed

      public void mousePressed(RMShape aShape, MouseEvent anEvent)
      If super-selected, allow mousedown on a tab to switch the pane.
      Overrides:
      mousePressed in class Tool
    • getSize

      public int getSize()
      RJListController interface - returns tab count.
      Specified by:
      getSize in interface RJListController
    • getItemAt

      public String getItemAt(int anIndex)
      RJListController interface - returns tab title at index.
      Specified by:
      getItemAt in interface RJListController
    • addItem

      public void addItem(String s)
      RJListController interface - adds tab item.
      Specified by:
      addItem in interface RJListController
    • removeItemAt

      public void removeItemAt(int i)
      RJListController interface - removes tab item.
      Specified by:
      removeItemAt in interface RJListController
    • renameItemAt

      public void renameItemAt(int i, String s)
      RJListController interface - renames tab item.
      Specified by:
      renameItemAt in interface RJListController
    • allowsEmptySelection

      public boolean allowsEmptySelection()
      RJListController interface - returns whether list can be empty.
      Specified by:
      allowsEmptySelection in interface RJListController
    • getSelectedIndex

      public int getSelectedIndex()
      RJListController interface - returns selected index.
      Specified by:
      getSelectedIndex in interface RJListController
    • itemWasSelected

      public void itemWasSelected(int i)
      RJListController interface - notifies that item was selected.
      Specified by:
      itemWasSelected in interface RJListController