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 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 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.RBTool
BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapesMethods inherited from class com.reportmill.panels.Tool
activateTool, 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.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
-
JTabbedPaneTool
public JTabbedPaneTool()Creates a tabbed pane tool.
-
-
Method Details
-
getUI
Returns the Swing UI panel for this inspector. -
resetUI
public void resetUI()Resets UI from currently selected tab pane shape. -
respondUI
Responds to UI. -
getShapeClass
Returns the class that this tool is responsible for.- Overrides:
getShapeClassin classTool
-
getWindowTitle
Returns the name to be used for this tool in inspector window title.- Overrides:
getWindowTitlein classTool
-
buildShapesFromComponents
Creates the appropriate RJShape for given RJComponent and adds it to given shape.- Overrides:
buildShapesFromComponentsin classRBTool
-
mousePressed
If super-selected, allow mousedown on a tab to switch the pane.- Overrides:
mousePressedin classTool
-
getSize
public int getSize()RJListController interface - returns tab count.- Specified by:
getSizein interfaceRJListController
-
getItemAt
RJListController interface - returns tab title at index.- Specified by:
getItemAtin interfaceRJListController
-
addItem
RJListController interface - adds tab item.- Specified by:
addItemin interfaceRJListController
-
removeItemAt
public void removeItemAt(int i) RJListController interface - removes tab item.- Specified by:
removeItemAtin interfaceRJListController
-
renameItemAt
RJListController interface - renames tab item.- Specified by:
renameItemAtin interfaceRJListController
-
allowsEmptySelection
public boolean allowsEmptySelection()RJListController interface - returns whether list can be empty.- Specified by:
allowsEmptySelectionin interfaceRJListController
-
getSelectedIndex
public int getSelectedIndex()RJListController interface - returns selected index.- Specified by:
getSelectedIndexin interfaceRJListController
-
itemWasSelected
public void itemWasSelected(int i) RJListController interface - notifies that item was selected.- Specified by:
itemWasSelectedin interfaceRJListController
-