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 TypeMethodDescriptionvoid
RJListController interface - adds tab item.boolean
RJListController interface - returns whether list can be empty.void
buildShapesFromComponents
(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.int
RJListController interface - returns selected index.Returns the class that this tool is responsible for.int
getSize()
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.void
itemWasSelected
(int i) RJListController interface - notifies that item was selected.void
mousePressed
(RMShape aShape, MouseEvent anEvent) If super-selected, allow mousedown on a tab to switch the pane.void
removeItemAt
(int i) RJListController interface - removes tab item.void
renameItemAt
(int i, String s) RJListController interface - renames tab item.void
resetUI()
Resets UI from currently selected tab pane shape.void
Responds to UI.Methods inherited from class com.ribsapp.shapes.RBTool
BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapes
Methods 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, willLoseSuperSelectionInEditor
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getShapeClass
in classTool
-
getWindowTitle
Returns the name to be used for this tool in inspector window title.- Overrides:
getWindowTitle
in classTool
-
buildShapesFromComponents
Creates the appropriate RJShape for given RJComponent and adds it to given shape.- Overrides:
buildShapesFromComponents
in classRBTool
-
mousePressed
If super-selected, allow mousedown on a tab to switch the pane.- Overrides:
mousePressed
in classTool
-
getSize
public int getSize()RJListController interface - returns tab count.- Specified by:
getSize
in interfaceRJListController
-
getItemAt
RJListController interface - returns tab title at index.- Specified by:
getItemAt
in interfaceRJListController
-
addItem
RJListController interface - adds tab item.- Specified by:
addItem
in interfaceRJListController
-
removeItemAt
public void removeItemAt(int i) RJListController interface - removes tab item.- Specified by:
removeItemAt
in interfaceRJListController
-
renameItemAt
RJListController interface - renames tab item.- Specified by:
renameItemAt
in interfaceRJListController
-
allowsEmptySelection
public boolean allowsEmptySelection()RJListController interface - returns whether list can be empty.- Specified by:
allowsEmptySelection
in interfaceRJListController
-
getSelectedIndex
public int getSelectedIndex()RJListController interface - returns selected index.- Specified by:
getSelectedIndex
in interfaceRJListController
-
itemWasSelected
public void itemWasSelected(int i) RJListController interface - notifies that item was selected.- Specified by:
itemWasSelected
in interfaceRJListController
-