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,- java.lang.Cloneable
 
 public class JTabbedPaneTool extends RBTool implements RJListController Provides Ribs UI editing for JTabbedPaneShape.
- 
- 
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 JTabbedPaneTool()Creates a tabbed pane tool.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(java.lang.String s)RJListController interface - adds tab item.booleanallowsEmptySelection()RJListController interface - returns whether list can be empty.voidbuildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)Creates the appropriate RJShape for given RJComponent and adds it to given shape.java.lang.StringgetItemAt(int anIndex)RJListController interface - returns tab title at index.intgetSelectedIndex()RJListController interface - returns selected index.java.lang.ClassgetShapeClass()Returns the class that this tool is responsible for.intgetSize()RJListController interface - returns tab count.RJPanelgetUI()Returns the Swing UI panel for this inspector.java.lang.StringgetWindowTitle()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, java.awt.event.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, java.lang.String s)RJListController interface - renames tab item.voidresetUI()Resets UI from currently selected tab pane shape.voidrespondUI(java.lang.Object anObj)Responds to UI.- 
Methods inherited from class com.ribsapp.shapes.RBToolBuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, syncComponentsFromShapes, SyncComponentsFromShapes
 - 
Methods 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, willLoseSuperSelectionInEditor
 - 
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- 
getUIpublic RJPanel getUI() Returns the Swing UI panel for this inspector.
 - 
resetUIpublic void resetUI() Resets UI from currently selected tab pane shape.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Responds to UI.
 - 
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 name to be used for this tool in inspector window title.- Overrides:
- getWindowTitlein class- Tool
 
 - 
buildShapesFromComponentspublic void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)Creates the appropriate RJShape for given RJComponent and adds it to given shape.- Overrides:
- buildShapesFromComponentsin class- RBTool
 
 - 
mousePressedpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent) If 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
 
 - 
getItemAtpublic java.lang.String getItemAt(int anIndex) RJListController interface - returns tab title at index.- Specified by:
- getItemAtin interface- RJListController
 
 - 
addItempublic void addItem(java.lang.String s) RJListController interface - adds tab item.- Specified by:
- addItemin interface- RJListController
 
 - 
removeItemAtpublic void removeItemAt(int i) RJListController interface - removes tab item.- Specified by:
- removeItemAtin interface- RJListController
 
 - 
renameItemAtpublic void renameItemAt(int i, java.lang.String s)RJListController 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
 
 
- 
 
-