|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.AbstractCDockable
bibliothek.gui.dock.toolbar.CToolbarItem
public class CToolbarItem
A CToolbarItem is an item (e.g. a button) that is shown in a toolbar.
In reality the CToolbarItem consists of several Components, but only one of them is shown. Which
one depends on the ExpandedState which is set by the toolbar itself. In order to use this feature clients
have to call
CControl control = ...
control.putProperty( ExpandableToolbarItemStrategy.STRATEGY, new DefaultExpandableToolbarItemStrategy() );
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable |
|---|
listenerCollection |
| Fields inherited from interface bibliothek.gui.dock.common.intern.CDockable |
|---|
ACTION_KEY_CLOSE, ACTION_KEY_EXTERNALIZE, ACTION_KEY_MAXIMIZE, ACTION_KEY_MINIMIZE, ACTION_KEY_MINIMIZE_HOLD, ACTION_KEY_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED |
| Constructor Summary | |
|---|---|
CToolbarItem(String id)
Creates a new item. |
|
| Method Summary | |
|---|---|
bibliothek.gui.dock.common.CStation<?> |
asStation()
|
protected CommonToolbarItemDockable |
createCommonDockable()
|
String |
getUniqueId()
|
CommonToolbarItemDockable |
intern()
|
boolean |
isCloseable()
|
boolean |
isExternalizable()
|
boolean |
isMaximizable()
|
boolean |
isMinimizable()
|
boolean |
isStackable()
|
void |
setItem(bibliothek.gui.dock.common.action.CAction item)
Sets a component which should be shown when this dockable is in state ExpandedState.SHRUNK. |
void |
setItem(bibliothek.gui.dock.common.action.CAction item,
ExpandedState state)
Sets a component which should be shown when this dockable is in state state. |
void |
setItem(Component item)
Sets a component which should be shown when this dockable is in state ExpandedState.SHRUNK. |
void |
setItem(Component item,
ExpandedState state)
Sets a component which should be shown when this dockable is in state state. |
void |
setItem(ToolbarItem item,
ExpandedState state)
Sets a component which should be shown when this dockable is in state state. |
| Methods inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable |
|---|
addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, control, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getClose, getColors, getControl, getControlAccess, getDefaultLocation, getExtendedMode, getFocusComponent, getFonts, getMinimizedSize, getWorkingArea, hasParent, init, isDockableVisible, isEnabled, isMinimizedHold, isMinimizedHoldSwitchable, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, propertyListeners, putAction, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setDefaultLocation, setEnabled, setExtendedMode, setFocusComponent, setLocation, setMinimizedHold, setMinimizedHoldSwitchable, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setSingleTabShown, setSticky, setStickySwitchable, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.common.intern.CDockable |
|---|
addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getColors, getControl, getControlAccess, getExtendedMode, getFocusComponent, getFonts, getMinimizedSize, getWorkingArea, hasParent, isDockableVisible, isEnabled, isMinimizedHold, isMinimizedHoldSwitchable, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setExtendedMode, setLocation, setMinimizedHold, setMinimizedHoldSwitchable, setMinimizedSize, setSticky, setStickySwitchable, setVisible, setWorkingArea |
| Constructor Detail |
|---|
public CToolbarItem(String id)
id - the unique identifier of this item, not null| Method Detail |
|---|
public void setItem(bibliothek.gui.dock.common.action.CAction item)
ExpandedState.SHRUNK.
item - the item to show, can be nullpublic void setItem(Component item)
ExpandedState.SHRUNK.
item - the item to show, can be null
public void setItem(Component item,
ExpandedState state)
state.
item - the item to show, can be nullstate - the state when to show item
public void setItem(bibliothek.gui.dock.common.action.CAction item,
ExpandedState state)
state.
item - the item to show, can be nullstate - the state when to show item
public void setItem(ToolbarItem item,
ExpandedState state)
state.
item - the item to show, can be nullstate - the state when to show itempublic String getUniqueId()
getUniqueId in interface bibliothek.gui.dock.common.SingleCDockablepublic boolean isMinimizable()
isMinimizable in interface bibliothek.gui.dock.common.intern.CDockablepublic boolean isMaximizable()
isMaximizable in interface bibliothek.gui.dock.common.intern.CDockablepublic boolean isExternalizable()
isExternalizable in interface bibliothek.gui.dock.common.intern.CDockablepublic boolean isStackable()
isStackable in interface bibliothek.gui.dock.common.intern.CDockablepublic boolean isCloseable()
isCloseable in interface bibliothek.gui.dock.common.intern.CDockablepublic bibliothek.gui.dock.common.CStation<?> asStation()
asStation in interface bibliothek.gui.dock.common.intern.CDockablepublic CommonToolbarItemDockable intern()
intern in interface bibliothek.gui.dock.common.intern.CDockableintern in class bibliothek.gui.dock.common.intern.AbstractCDockableprotected CommonToolbarItemDockable createCommonDockable()
createCommonDockable in class bibliothek.gui.dock.common.intern.AbstractCDockable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||