Package com.ribsapp.shapes
Interface RJListController
-
- All Known Implementing Classes:
JComboBoxTool
,JListTool
,JTabbedPaneTool
public interface RJListController
This interface is implemented by anybody that wants to use the RJStringListTool widget in their inspector. It's very similar to ListModel & friends.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addItem(java.lang.String s)
Add a string to the listboolean
allowsEmptySelection()
Indicates whether or not the list should always maintain a selectionjava.lang.String
getItemAt(int index)
Returns the String at the given index.int
getSelectedIndex()
Return current selectionRMShape
getSelectedShape()
Returns the RJShape instance that is being edited.int
getSize()
Returns the number of items.void
itemWasSelected(int i)
Reflect selectionvoid
removeItemAt(int i)
Delete a string at a given indexvoid
renameItemAt(int i, java.lang.String s)
Rename string at index
-
-
-
Method Detail
-
getSize
int getSize()
Returns the number of items.
-
getItemAt
java.lang.String getItemAt(int index)
Returns the String at the given index.
-
addItem
void addItem(java.lang.String s)
Add a string to the list
-
removeItemAt
void removeItemAt(int i)
Delete a string at a given index
-
renameItemAt
void renameItemAt(int i, java.lang.String s)
Rename string at index
-
itemWasSelected
void itemWasSelected(int i)
Reflect selection
-
getSelectedIndex
int getSelectedIndex()
Return current selection
-
allowsEmptySelection
boolean allowsEmptySelection()
Indicates whether or not the list should always maintain a selection
-
getSelectedShape
RMShape getSelectedShape()
Returns the RJShape instance that is being edited. (All the tools respond to this by virtue of the fact that they're RBTools)
-
-