Package com.ribsapp.shapes
Class JTabbedPaneTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.ribsapp.shapes.RBTool
com.ribsapp.shapes.JTabbedPaneTool
- All Implemented Interfaces:
- RMArchiver.Archiving,- RJListController,- Cloneable
Provides Ribs UI editing for JTabbedPaneShape.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidRJListController interface - adds tab item.booleanRJListController interface - returns whether list can be empty.voidbuildShapesFromComponents(JComponent aComponent, RJShape aShape, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.getItemAt(int anIndex) RJListController interface - returns tab title at index.intRJListController interface - returns selected index.Returns the class that this tool is responsible for.intgetSize()RJListController interface - returns tab count.getUI()Returns the Swing UI panel for this inspector.Returns the name to be used for this tool in inspector window title.voiditemWasSelected(int i) RJListController interface - notifies that item was selected.voidmousePressed(RMShape aShape, MouseEvent anEvent) If super-selected, allow mousedown on a tab to switch the pane.voidremoveItemAt(int i) RJListController interface - removes tab item.voidrenameItemAt(int i, String s) RJListController interface - renames tab item.voidresetUI()Resets UI from currently selected tab pane shape.voidResponds to UI.Methods inherited from class com.ribsapp.shapes.RBToolBuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapesMethods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualsMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ribsapp.shapes.RJListControllergetSelectedShape
- 
Constructor Details- 
JTabbedPaneToolpublic JTabbedPaneTool()Creates a tabbed pane tool.
 
- 
- 
Method Details- 
getUIReturns the Swing UI panel for this inspector.
- 
resetUIpublic void resetUI()Resets UI from currently selected tab pane shape.
- 
respondUIResponds to UI.
- 
getShapeClassReturns the class that this tool is responsible for.- Overrides:
- getShapeClassin class- Tool
 
- 
getWindowTitleReturns the name to be used for this tool in inspector window title.- Overrides:
- getWindowTitlein class- Tool
 
- 
buildShapesFromComponentsCreates the appropriate RJShape for given RJComponent and adds it to given shape.- Overrides:
- buildShapesFromComponentsin class- RBTool
 
- 
mousePressedIf super-selected, allow mousedown on a tab to switch the pane.- Overrides:
- mousePressedin class- Tool
 
- 
getSizepublic int getSize()RJListController interface - returns tab count.- Specified by:
- getSizein interface- RJListController
 
- 
getItemAtRJListController interface - returns tab title at index.- Specified by:
- getItemAtin interface- RJListController
 
- 
addItemRJListController interface - adds tab item.- Specified by:
- addItemin interface- RJListController
 
- 
removeItemAtpublic void removeItemAt(int i) RJListController interface - removes tab item.- Specified by:
- removeItemAtin interface- RJListController
 
- 
renameItemAtRJListController interface - renames tab item.- Specified by:
- renameItemAtin interface- RJListController
 
- 
allowsEmptySelectionpublic boolean allowsEmptySelection()RJListController interface - returns whether list can be empty.- Specified by:
- allowsEmptySelectionin interface- RJListController
 
- 
getSelectedIndexpublic int getSelectedIndex()RJListController interface - returns selected index.- Specified by:
- getSelectedIndexin interface- RJListController
 
- 
itemWasSelectedpublic void itemWasSelected(int i) RJListController interface - notifies that item was selected.- Specified by:
- itemWasSelectedin interface- RJListController
 
 
-