Class JTabbedPaneTool

    • Constructor Detail

      • JTabbedPaneTool

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

      • 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​(java.lang.Object anObj)
        Responds to UI.
        Overrides:
        respondUI in class Tool
      • getShapeClass

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

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

        public void buildShapesFromComponents​(javax.swing.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,
                                 java.awt.event.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 java.lang.String getItemAt​(int anIndex)
        RJListController interface - returns tab title at index.
        Specified by:
        getItemAt in interface RJListController
      • addItem

        public void addItem​(java.lang.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,
                                 java.lang.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