public class JListTool extends RJTextTool implements RJListController
Tool.RMShapeHandleHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth| Constructor and Description |
|---|
JListTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(java.lang.String s)
Add a string to the list
|
boolean |
allowsEmptySelection()
Indicates whether or not the list should always maintain a selection
|
void |
didBecomeSuperSelectedShapeInEditor(RMShape aShape,
RMEditor anEditor)
Editor method - called when an instance of this tool's shape is super selected.
|
java.lang.String |
getItemAt(int index)
Returns the element at the given index.
|
int |
getSelectedIndex()
Return current selection
|
java.lang.Class |
getShapeClass()
Returns the class that this tool is responsible for.
|
int |
getSize()
Returns the number of items.
|
RJPanel |
getUI()
Returns the Swing UI panel for this tool.
|
java.lang.String |
getWindowTitle()
Returns the string used in the inspector window title.
|
void |
itemWasSelected(int i)
Reflect selection
|
void |
removeItemAt(int i)
Delete a string at a given index
|
void |
renameItemAt(int i,
java.lang.String s)
Rename string at index
|
void |
resetUI()
Resets the UI associated with this tool.
|
void |
respondUI(javax.swing.JComponent anObj) |
void |
willLoseSuperSelectionInEditor(RMShape aShape,
RMEditor anEditor)
Editor method - called when an instance of this tool's shape in de-super-selected.
|
buildShapesFromComponents, BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, SyncComponentsFromShapes, syncComponentsFromShapesactivateTool, deactivateTool, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, respondUIclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectedShapepublic void didBecomeSuperSelectedShapeInEditor(RMShape aShape, RMEditor anEditor)
TooldidBecomeSuperSelectedShapeInEditor in class RJTextToolpublic void resetUI()
Toolpublic void respondUI(javax.swing.JComponent anObj)
public RJPanel getUI()
Toolpublic void willLoseSuperSelectionInEditor(RMShape aShape, RMEditor anEditor)
ToolwillLoseSuperSelectionInEditor in class RJTextToolpublic java.lang.Class getShapeClass()
getShapeClass in class Toolpublic java.lang.String getWindowTitle()
getWindowTitle in class Toolpublic int getSize()
getSize in interface RJListControllerpublic java.lang.String getItemAt(int index)
getItemAt in interface RJListControllerpublic void addItem(java.lang.String s)
addItem in interface RJListControllerpublic void removeItemAt(int i)
removeItemAt in interface RJListControllerpublic void renameItemAt(int i,
java.lang.String s)
renameItemAt in interface RJListControllerpublic void itemWasSelected(int i)
RJListControlleritemWasSelected in interface RJListControllerpublic int getSelectedIndex()
RJListControllergetSelectedIndex in interface RJListControllerpublic boolean allowsEmptySelection()
RJListControllerallowsEmptySelection in interface RJListController