Package com.ribsapp.shapes
Class JComboBoxTool
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.panels.Tool
- 
- com.ribsapp.shapes.RBTool
- 
- com.ribsapp.shapes.RJTextTool
- 
- com.ribsapp.shapes.JComboBoxTool
 
 
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- RJListController,- java.lang.Cloneable
 
 public class JComboBoxTool extends RJTextTool implements RJListController An inner class to act as RJComboBoxShape's Tool
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description JComboBoxTool()Creates a new combo box shape tool.
 - 
Method SummaryAll Methods Instance Methods Concrete 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 selectionvoiddidBecomeSuperSelectedShapeInEditor(RMShape aShape, RMEditor anEditor)Called when combo box shape gains super-selection.java.lang.StringgetItemAt(int index)Returns the element at the given index.intgetSelectedIndex()Return current selectionjava.lang.ClassgetShapeClass()Returns the class that this tool is responsible for.intgetSize()Returns the number of items.RJPanelgetUI()Returns the Swing UI panel (loading it the first time).java.lang.StringgetWindowTitle()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, java.lang.String s)Rename string at indexvoidresetUI()Updates the Swing UI from the currently selected combo box shape.voidrespondUI(java.lang.Object anObj)Updates the currently selected combo box shape from the Swing UI controls.voidwillLoseSuperSelectionInEditor(RMShape aShape, RMEditor anEditor)Called when combo box shape loses super-selection.- 
Methods inherited from class com.ribsapp.shapes.RBToolbuildShapesFromComponents, BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapes
 - 
Methods inherited from class com.reportmill.panels.ToolactivateTool, 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
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.ribsapp.shapes.RJListControllergetSelectedShape
 
- 
 
- 
- 
- 
Method Detail- 
getShapeClasspublic java.lang.Class getShapeClass() Returns the class that this tool is responsible for.- Overrides:
- getShapeClassin class- Tool
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the string used in the inspector window title.- Overrides:
- getWindowTitlein class- Tool
 
 - 
getUIpublic RJPanel getUI() Returns the Swing UI panel (loading it the first time).
 - 
resetUIpublic void resetUI() Updates the Swing UI from the currently selected combo box shape.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Updates the currently selected combo box shape from the Swing UI controls.
 - 
getSizepublic int getSize() Returns the number of items.- Specified by:
- getSizein interface- RJListController
 
 - 
getItemAtpublic java.lang.String getItemAt(int index) Returns the element at the given index.- Specified by:
- getItemAtin interface- RJListController
 
 - 
addItempublic void addItem(java.lang.String s) Add a string to the list- Specified by:
- addItemin interface- RJListController
 
 - 
removeItemAtpublic void removeItemAt(int i) Delete a string at a given index- Specified by:
- removeItemAtin interface- RJListController
 
 - 
renameItemAtpublic void renameItemAt(int i, java.lang.String s)Rename string at index- Specified by:
- renameItemAtin interface- RJListController
 
 - 
itemWasSelectedpublic void itemWasSelected(int i) Description copied from interface:RJListControllerReflect selection- Specified by:
- itemWasSelectedin interface- RJListController
 
 - 
getSelectedIndexpublic int getSelectedIndex() Description copied from interface:RJListControllerReturn current selection- Specified by:
- getSelectedIndexin interface- RJListController
 
 - 
allowsEmptySelectionpublic boolean allowsEmptySelection() Description copied from interface:RJListControllerIndicates whether or not the list should always maintain a selection- Specified by:
- allowsEmptySelectionin interface- RJListController
 
 - 
didBecomeSuperSelectedShapeInEditorpublic void didBecomeSuperSelectedShapeInEditor(RMShape aShape, RMEditor anEditor) Called when combo box shape gains super-selection.- Overrides:
- didBecomeSuperSelectedShapeInEditorin class- RJTextTool
 
 - 
willLoseSuperSelectionInEditorpublic void willLoseSuperSelectionInEditor(RMShape aShape, RMEditor anEditor) Called when combo box shape loses super-selection.- Overrides:
- willLoseSuperSelectionInEditorin class- RJTextTool
 
 
- 
 
-