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.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 Constructor Description JTabbedPaneTool()
Creates a tabbed pane tool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(java.lang.String s)
RJListController interface - adds tab item.boolean
allowsEmptySelection()
RJListController interface - returns whether list can be empty.void
buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.java.lang.String
getItemAt(int anIndex)
RJListController interface - returns tab title at index.int
getSelectedIndex()
RJListController interface - returns selected index.java.lang.Class
getShapeClass()
Returns the class that this tool is responsible for.int
getSize()
RJListController interface - returns tab count.RJPanel
getUI()
Returns the Swing UI panel for this inspector.java.lang.String
getWindowTitle()
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, java.awt.event.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, java.lang.String s)
RJListController interface - renames tab item.void
resetUI()
Resets UI from currently selected tab pane shape.void
respondUI(java.lang.Object anObj)
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
-
-
-
-
Method Detail
-
getUI
public RJPanel getUI()
Returns the Swing UI panel for this inspector.
-
resetUI
public void resetUI()
Resets UI from currently selected tab pane shape.
-
respondUI
public void respondUI(java.lang.Object anObj)
Responds to UI.
-
getShapeClass
public java.lang.Class getShapeClass()
Returns the class that this tool is responsible for.- Overrides:
getShapeClass
in classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name to be used for this tool in inspector window title.- Overrides:
getWindowTitle
in classTool
-
buildShapesFromComponents
public void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.- Overrides:
buildShapesFromComponents
in classRBTool
-
mousePressed
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
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
public java.lang.String getItemAt(int anIndex)
RJListController interface - returns tab title at index.- Specified by:
getItemAt
in interfaceRJListController
-
addItem
public void addItem(java.lang.String s)
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
public void renameItemAt(int i, java.lang.String s)
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
-
-