|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.dockable.AbstractDockable
bibliothek.gui.dock.ToolbarItemDockable
public class ToolbarItemDockable
A ToolbarItemDockable
is a Dockable
that can be shown as child of a ToolbarDockStation
. This
class acts as wrapper around a ToolbarItem
which can just be any kind of Component
.
This class supports ExpandableToolbarItem
, clients can call setItem(ToolbarItem, ExpandedState)
to
fill up the different positions.
Constructor Summary | |
---|---|
ToolbarItemDockable()
Creates a new dockable |
|
ToolbarItemDockable(Component component)
Creates a new dockable |
|
ToolbarItemDockable(Component component,
Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(Component component,
String title)
Creates a new dockable |
|
ToolbarItemDockable(Component component,
String title,
Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action)
Creates a new dockable |
|
ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action,
Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action,
String title)
Creates a new dockable |
|
ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action,
String title,
Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(String title)
Creates a new dockable |
|
ToolbarItemDockable(ToolbarItem item)
Creates a new dockable |
|
ToolbarItemDockable(ToolbarItem item,
Icon icon)
Creates a new dockable |
|
ToolbarItemDockable(ToolbarItem item,
String title)
Creates a new dockable |
|
ToolbarItemDockable(ToolbarItem item,
String title,
Icon icon)
Creates a new dockable |
Method Summary | |
---|---|
boolean |
accept(bibliothek.gui.DockStation station)
|
boolean |
accept(bibliothek.gui.DockStation base,
bibliothek.gui.Dockable neighbour)
|
void |
addExpandableListener(ExpandableToolbarItemListener listener)
Adds the observer listener to this item. |
void |
addMouseInputListener(MouseInputListener listener)
|
bibliothek.gui.DockStation |
asDockStation()
|
protected bibliothek.gui.dock.util.icon.DockIcon |
createTitleIcon()
|
Component |
getComponent()
|
ExpandedState |
getExpandedState()
Gets the current state of this item. |
String |
getFactoryID()
|
void |
removeExpandableListener(ExpandableToolbarItemListener listener)
Removes the observer listener from this item. |
void |
removeMouseInputListener(MouseInputListener listener)
|
void |
setAction(bibliothek.gui.dock.action.DockAction action,
ExpandedState state)
Sets the DockAction which should be shown if in state state . |
void |
setComponent(Component component,
ExpandedState state)
Sets the Component which should be shown if in state state . |
void |
setController(bibliothek.gui.DockController controller)
|
void |
setExpandedState(ExpandedState state)
Changes the state of this item to state . |
void |
setItem(ToolbarItem item,
ExpandedState state)
Sets the ToolbarItem which should be shown if in state
state . |
String |
toString()
|
Methods inherited from class bibliothek.gui.dock.dockable.AbstractDockable |
---|
addDockableListener, addDockableStateListener, addDockHierarchyListener, addKeyListener, asDockable, bind, configureDisplayerHints, fireTitleBound, fireTitleExchanged, fireTitleExchanged, fireTitleIconChanged, fireTitleTextChanged, fireTitleTooltipChanged, fireTitleUnbound, getConfigurableDisplayerHints, getController, getDockableStateListeners, getDockElementObserver, getDockParent, getElement, getGlobalActionOffers, getLocalActionOffers, getPopupLocation, getTitleIcon, getTitleIconHandling, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, isUsedAsTitle, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeKeyListener, requestDisplayer, requestDockTitle, resetTitleIcon, setActionOffers, setDockParent, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface bibliothek.gui.Dockable |
---|
addDockableListener, addDockableStateListener, addDockHierarchyListener, bind, configureDisplayerHints, getController, getDockParent, getGlobalActionOffers, getLocalActionOffers, getTitleIcon, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, requestDisplayer, requestDockTitle, setDockParent, unbind |
Methods inherited from interface bibliothek.gui.dock.DockElement |
---|
asDockable |
Methods inherited from interface bibliothek.gui.dock.DockElementRepresentative |
---|
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocus |
Methods inherited from interface bibliothek.gui.dock.station.support.PlaceholderListItem |
---|
asDockable |
Constructor Detail |
---|
public ToolbarItemDockable()
public ToolbarItemDockable(Icon icon)
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(String title)
title
- the title of this dockable, can be null
public ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action)
action
- the item to show in the ExpandedState.SHRUNK
, can be null
public ToolbarItemDockable(Component component)
component
- the item to show in the ExpandedState.SHRUNK
, can be null
public ToolbarItemDockable(ToolbarItem item)
item
- the item to show in the ExpandedState.SHRUNK
, can be null
public ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action, Icon icon)
action
- the item to show in the ExpandedState.SHRUNK
, can be null
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(Component component, Icon icon)
component
- the item to show in the ExpandedState.SHRUNK
, can be null
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(ToolbarItem item, Icon icon)
item
- the item to show in the ExpandedState.SHRUNK
, can be null
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action, String title)
action
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
public ToolbarItemDockable(Component component, String title)
component
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
public ToolbarItemDockable(ToolbarItem item, String title)
item
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
public ToolbarItemDockable(bibliothek.gui.dock.action.DockAction action, String title, Icon icon)
action
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(Component component, String title, Icon icon)
component
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
icon
- the icon of this dockable, can be null
public ToolbarItemDockable(ToolbarItem item, String title, Icon icon)
item
- the item to show in the ExpandedState.SHRUNK
, can be null
title
- the title of this dockable, can be null
icon
- the icon of this dockable, can be null
Method Detail |
---|
public void addMouseInputListener(MouseInputListener listener)
addMouseInputListener
in interface bibliothek.gui.dock.DockElementRepresentative
addMouseInputListener
in interface bibliothek.gui.Dockable
addMouseInputListener
in class bibliothek.gui.dock.dockable.AbstractDockable
public void removeMouseInputListener(MouseInputListener listener)
removeMouseInputListener
in interface bibliothek.gui.dock.DockElementRepresentative
removeMouseInputListener
in interface bibliothek.gui.Dockable
removeMouseInputListener
in class bibliothek.gui.dock.dockable.AbstractDockable
public void setAction(bibliothek.gui.dock.action.DockAction action, ExpandedState state)
DockAction
which should be shown if in state state
.
Please note that the same DockAction
cannot be used for more than one state.
action
- the item to setstate
- the state in which to show action
public void setComponent(Component component, ExpandedState state)
Component
which should be shown if in state state
.
Please note that the same Component
cannot be used for more than one state.
component
- the item to setstate
- the state in which to show component
public void setItem(ToolbarItem item, ExpandedState state)
ToolbarItem
which should be shown if in state
state
. Please note that the same ToolbarItem
cannot be
used for more than one state.
item
- the item to setstate
- the state in which to show item
public void setController(bibliothek.gui.DockController controller)
setController
in interface bibliothek.gui.Dockable
setController
in class bibliothek.gui.dock.dockable.AbstractDockable
public void setExpandedState(ExpandedState state)
ExpandableToolbarItem
state
.
setExpandedState
in interface ExpandableToolbarItem
state
- the new statepublic ExpandedState getExpandedState()
ExpandableToolbarItem
getExpandedState
in interface ExpandableToolbarItem
public Component getComponent()
getComponent
in interface bibliothek.gui.dock.DockElementRepresentative
getComponent
in interface bibliothek.gui.Dockable
public void addExpandableListener(ExpandableToolbarItemListener listener)
ExpandableToolbarItem
listener
to this item.
addExpandableListener
in interface ExpandableToolbarItem
listener
- the new listener, not null
public void removeExpandableListener(ExpandableToolbarItemListener listener)
ExpandableToolbarItem
listener
from this item.
removeExpandableListener
in interface ExpandableToolbarItem
listener
- the listener to removepublic bibliothek.gui.DockStation asDockStation()
asDockStation
in interface bibliothek.gui.dock.DockElement
public String getFactoryID()
getFactoryID
in interface bibliothek.gui.dock.DockElement
protected bibliothek.gui.dock.util.icon.DockIcon createTitleIcon()
createTitleIcon
in class bibliothek.gui.dock.dockable.AbstractDockable
public boolean accept(bibliothek.gui.DockStation station)
accept
in interface bibliothek.gui.Dockable
accept
in class bibliothek.gui.dock.dockable.AbstractDockable
public boolean accept(bibliothek.gui.DockStation base, bibliothek.gui.Dockable neighbour)
accept
in interface bibliothek.gui.Dockable
accept
in class bibliothek.gui.dock.dockable.AbstractDockable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |