public class JTabbedPaneTool extends RBTool implements RJListController
Tool.RMShapeHandle
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
Constructor and Description |
---|
JTabbedPaneTool()
Creates a tabbed pane tool.
|
Modifier and Type | Method and 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.
|
BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, SyncComponentsFromShapes, syncComponentsFromShapes
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
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectedShape
public RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)
public java.lang.Class getShapeClass()
getShapeClass
in class Tool
public java.lang.String getWindowTitle()
getWindowTitle
in class Tool
public void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
buildShapesFromComponents
in class RBTool
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed
in class Tool
public int getSize()
getSize
in interface RJListController
public java.lang.String getItemAt(int anIndex)
getItemAt
in interface RJListController
public void addItem(java.lang.String s)
addItem
in interface RJListController
public void removeItemAt(int i)
removeItemAt
in interface RJListController
public void renameItemAt(int i, java.lang.String s)
renameItemAt
in interface RJListController
public boolean allowsEmptySelection()
allowsEmptySelection
in interface RJListController
public int getSelectedIndex()
getSelectedIndex
in interface RJListController
public void itemWasSelected(int i)
itemWasSelected
in interface RJListController