|
||||||||||
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 Component
s, 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, getDockableUniqueId, getExtendedMode, getFocusComponent, getFonts, getMinimizedSize, getParentStation, getWorkingArea, hasParent, init, isDockableVisible, isEnabled, isNormalizeable, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, propertyListeners, putAction, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setDefaultLocation, setEnabled, setExtendedMode, setFocusComponent, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setSingleTabShown, setSticky, setStickySwitchable, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, getParentStation, getWorkingArea, hasParent, isDockableVisible, isEnabled, isNormalizeable, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setExtendedMode, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, 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 null
public 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 null
state
- 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 null
state
- the state when to show item
public void setItem(ToolbarItem item, ExpandedState state)
state
.
item
- the item to show, can be null
state
- the state when to show item
public String getUniqueId()
getUniqueId
in interface bibliothek.gui.dock.common.SingleCDockable
public boolean isMinimizable()
isMinimizable
in interface bibliothek.gui.dock.common.intern.CDockable
public boolean isMaximizable()
isMaximizable
in interface bibliothek.gui.dock.common.intern.CDockable
public boolean isExternalizable()
isExternalizable
in interface bibliothek.gui.dock.common.intern.CDockable
public boolean isStackable()
isStackable
in interface bibliothek.gui.dock.common.intern.CDockable
public boolean isCloseable()
isCloseable
in interface bibliothek.gui.dock.common.intern.CDockable
public bibliothek.gui.dock.common.CStation<?> asStation()
asStation
in interface bibliothek.gui.dock.common.intern.CDockable
public CommonToolbarItemDockable intern()
intern
in interface bibliothek.gui.dock.common.intern.CDockable
intern
in class bibliothek.gui.dock.common.intern.AbstractCDockable
protected 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 |