Package com.ribsapp.shapes
Interface RJListController
- 
- All Known Implementing Classes:
- JComboBoxTool,- JListTool,- JTabbedPaneTool
 
 public interface RJListControllerThis interface is implemented by anybody that wants to use the RJStringListTool widget in their inspector. It's very similar to ListModel & friends.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddItem(java.lang.String s)Add a string to the listbooleanallowsEmptySelection()Indicates whether or not the list should always maintain a selectionjava.lang.StringgetItemAt(int index)Returns the String at the given index.intgetSelectedIndex()Return current selectionRMShapegetSelectedShape()Returns the RJShape instance that is being edited.intgetSize()Returns the number of items.voiditemWasSelected(int i)Reflect selectionvoidremoveItemAt(int i)Delete a string at a given indexvoidrenameItemAt(int i, java.lang.String s)Rename string at index
 
- 
- 
- 
Method Detail- 
getSizeint getSize() Returns the number of items.
 - 
getItemAtjava.lang.String getItemAt(int index) Returns the String at the given index.
 - 
addItemvoid addItem(java.lang.String s) Add a string to the list
 - 
removeItemAtvoid removeItemAt(int i) Delete a string at a given index
 - 
renameItemAtvoid renameItemAt(int i, java.lang.String s)Rename string at index
 - 
itemWasSelectedvoid itemWasSelected(int i) Reflect selection
 - 
getSelectedIndexint getSelectedIndex() Return current selection
 - 
allowsEmptySelectionboolean allowsEmptySelection() Indicates whether or not the list should always maintain a selection
 - 
getSelectedShapeRMShape getSelectedShape() Returns the RJShape instance that is being edited. (All the tools respond to this by virtue of the fact that they're RBTools)
 
- 
 
-