public class JListTool extends RJTextTool implements RJListController
Tool.RMShapeHandle
HandleMaxXMaxY, 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, syncComponentsFromShapes
activateTool, 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, respondUI
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectedShape
public void didBecomeSuperSelectedShapeInEditor(RMShape aShape, RMEditor anEditor)
Tool
didBecomeSuperSelectedShapeInEditor
in class RJTextTool
public void resetUI()
Tool
public void respondUI(javax.swing.JComponent anObj)
public RJPanel getUI()
Tool
public void willLoseSuperSelectionInEditor(RMShape aShape, RMEditor anEditor)
Tool
willLoseSuperSelectionInEditor
in class RJTextTool
public java.lang.Class getShapeClass()
getShapeClass
in class Tool
public java.lang.String getWindowTitle()
getWindowTitle
in class Tool
public int getSize()
getSize
in interface RJListController
public java.lang.String getItemAt(int index)
getItemAt
in interface RJListController
public void addItem(java.lang.String s)
addItem
in interface RJListController
public void removeItemAt(int i)
removeItemAt
in interface RJListController
public void renameItemAt(int i, java.lang.String s)
renameItemAt
in interface RJListController
public void itemWasSelected(int i)
RJListController
itemWasSelected
in interface RJListController
public int getSelectedIndex()
RJListController
getSelectedIndex
in interface RJListController
public boolean allowsEmptySelection()
RJListController
allowsEmptySelection
in interface RJListController