Package com.ribsapp.shapes
Class JListTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.ribsapp.shapes.RBTool
com.ribsapp.shapes.RJTextTool
com.ribsapp.shapes.JListTool
- All Implemented Interfaces:
RMArchiver.Archiving,RJListController,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle -
Field Summary
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a string to the listbooleanIndicates whether or not the list should always maintain a selectionvoiddidBecomeSuperSelectedShapeInEditor(RMShape aShape, RMEditor anEditor) Editor method - called when an instance of this tool's shape is super selected.getItemAt(int index) Returns the element at the given index.intReturn current selectionReturns the class that this tool is responsible for.intgetSize()Returns the number of items.getUI()Returns the Swing UI panel for this tool.Returns the string used in the inspector window title.voiditemWasSelected(int i) Reflect selectionvoidremoveItemAt(int i) Delete a string at a given indexvoidrenameItemAt(int i, String s) Rename string at indexvoidresetUI()Resets the UI associated with this tool.voidrespondUI(JComponent anObj) voidwillLoseSuperSelectionInEditor(RMShape aShape, RMEditor anEditor) Editor method - called when an instance of this tool's shape in de-super-selected.Methods inherited from class com.ribsapp.shapes.RBTool
buildShapesFromComponents, BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapesMethods inherited from class com.reportmill.panels.Tool
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, respondUIMethods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ribsapp.shapes.RJListController
getSelectedShape
-
Constructor Details
-
JListTool
public JListTool()
-
-
Method Details
-
didBecomeSuperSelectedShapeInEditor
Description copied from class:ToolEditor method - called when an instance of this tool's shape is super selected.- Overrides:
didBecomeSuperSelectedShapeInEditorin classRJTextTool
-
resetUI
public void resetUI()Description copied from class:ToolResets the UI associated with this tool. -
respondUI
-
getUI
Description copied from class:ToolReturns the Swing UI panel for this tool. -
willLoseSuperSelectionInEditor
Description copied from class:ToolEditor method - called when an instance of this tool's shape in de-super-selected.- Overrides:
willLoseSuperSelectionInEditorin classRJTextTool
-
getShapeClass
Returns the class that this tool is responsible for.- Overrides:
getShapeClassin classTool
-
getWindowTitle
Returns the string used in the inspector window title.- Overrides:
getWindowTitlein classTool
-
getSize
public int getSize()Returns the number of items.- Specified by:
getSizein interfaceRJListController
-
getItemAt
Returns the element at the given index.- Specified by:
getItemAtin interfaceRJListController
-
addItem
Add a string to the list- Specified by:
addItemin interfaceRJListController
-
removeItemAt
public void removeItemAt(int i) Delete a string at a given index- Specified by:
removeItemAtin interfaceRJListController
-
renameItemAt
Rename string at index- Specified by:
renameItemAtin interfaceRJListController
-
itemWasSelected
public void itemWasSelected(int i) Description copied from interface:RJListControllerReflect selection- Specified by:
itemWasSelectedin interfaceRJListController
-
getSelectedIndex
public int getSelectedIndex()Description copied from interface:RJListControllerReturn current selection- Specified by:
getSelectedIndexin interfaceRJListController
-
allowsEmptySelection
public boolean allowsEmptySelection()Description copied from interface:RJListControllerIndicates whether or not the list should always maintain a selection- Specified by:
allowsEmptySelectionin interfaceRJListController
-