Class RJStringListTool


  • public class RJStringListTool
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RJListController getListController()
      The "controller" is an object that implements the RJListController interface to handle the ui (add,delete,remove, etc.).
      int getSelectedIndex​(javax.swing.JList list)
      For some crazy reason, if there are no items in the list, the JList will tell you that the item at index 0 is selected (instead of there being no selection)
      RJPanel getUI()  
      static void installListTool​(RJPanel ui, java.lang.String placeholderName)
      Swap out the component named placeholderName with this widget's UI
      void resetUI()  
      void respondUI​(javax.swing.JComponent anObj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RJStringListTool

        public RJStringListTool()
    • Method Detail

      • installListTool

        public static void installListTool​(RJPanel ui,
                                           java.lang.String placeholderName)
        Swap out the component named placeholderName with this widget's UI
      • getListController

        public RJListController getListController()
        The "controller" is an object that implements the RJListController interface to handle the ui (add,delete,remove, etc.). It is defined to be the owner of whatever panel this widget was installed in.
      • resetUI

        public void resetUI()
      • getSelectedIndex

        public int getSelectedIndex​(javax.swing.JList list)
        For some crazy reason, if there are no items in the list, the JList will tell you that the item at index 0 is selected (instead of there being no selection)
      • respondUI

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