Class JListTool

    • Constructor Detail

      • JListTool

        public JListTool()
    • Method Detail

      • resetUI

        public void resetUI()
        Description copied from class: Tool
        Resets the UI associated with this tool.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(javax.swing.JComponent anObj)
      • getUI

        public RJPanel getUI()
        Description copied from class: Tool
        Returns the Swing UI panel for this tool.
        Overrides:
        getUI in class Tool
      • willLoseSuperSelectionInEditor

        public void willLoseSuperSelectionInEditor​(RMShape aShape,
                                                   RMEditor anEditor)
        Description copied from class: Tool
        Editor method - called when an instance of this tool's shape in de-super-selected.
        Overrides:
        willLoseSuperSelectionInEditor in class RJTextTool
      • 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 string used in the inspector window title.
        Overrides:
        getWindowTitle in class Tool
      • getSize

        public int getSize()
        Returns the number of items.
        Specified by:
        getSize in interface RJListController
      • getItemAt

        public java.lang.String getItemAt​(int index)
        Returns the element at the given index.
        Specified by:
        getItemAt in interface RJListController
      • addItem

        public void addItem​(java.lang.String s)
        Add a string to the list
        Specified by:
        addItem in interface RJListController
      • removeItemAt

        public void removeItemAt​(int i)
        Delete a string at a given index
        Specified by:
        removeItemAt in interface RJListController
      • renameItemAt

        public void renameItemAt​(int i,
                                 java.lang.String s)
        Rename string at index
        Specified by:
        renameItemAt in interface RJListController