Package com.ribsapp.shapes
Class RJStringListTool
java.lang.Object
com.ribsapp.shapes.RJStringListTool
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe "controller" is an object that implements the RJListController interface to handle the ui (add,delete,remove, etc.).intgetSelectedIndex(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)getUI()static voidinstallListTool(RJPanel ui, String placeholderName) Swap out the component named placeholderName with this widget's UIvoidresetUI()voidrespondUI(JComponent anObj) 
- 
Constructor Details- 
RJStringListToolpublic RJStringListTool()
 
- 
- 
Method Details- 
installListToolSwap out the component named placeholderName with this widget's UI
- 
getUI
- 
getListControllerThe "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.
- 
resetUIpublic void resetUI()
- 
getSelectedIndexFor 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
 
-