T - the GUI-toolkit specific type of a tool barB - the GUI-toolkit specific base type of a tool bar button.public interface ToolBarContainer<T,B>
| Modifier and Type | Method and Description |
|---|---|
void |
addToolBar(String toolBarId,
PositionableAdapter<T> toolBar)
Adds a tool bar to this container.
|
void |
addToolBarButton(String toolBarId,
PositionableAdapter<? extends B> toolBarButton)
Adds a tool bar button to the tool bar with the specified id.
|
void |
addToolBarContainerListener(String toolBarId,
ToolBarContainerListener<T,B> containerListener)
Adds a tool bar container listener only for the specified tool bar id.
|
void |
addToolBarContainerListener(ToolBarContainerListener<T,B> containerListener)
Adds a tool bar container listener.
|
boolean |
containsToolBar(String toolBarId)
Indicates if this container contains a tool bar with the specified id
|
boolean |
isToolBarVisible(String toolBarId)
Indicates if the tool bar with the specified id is visible
|
PositionableAdapter<T> |
removeToolBar(String toolBarId)
Removes the tool bar with the specified id from this container.
|
PositionableAdapter<? extends B> |
removeToolBarButton(String toolBarId,
B toolBarButton)
Removes a tool bar button from the tool bar with the specified id.
|
void |
removeToolBarContainerListener(String toolBarId,
ToolBarContainerListener<T,B> containerListener)
Removes a tool bar container listener only for the specified tool bar id.
|
void |
removeToolBarContainerListener(ToolBarContainerListener<T,B> containerListener)
Removes a tool bar container listener.
|
void |
setToolBarVisible(String toolBarId,
boolean visible)
Sets the visible property of the tool bar with the specified id.
|
void addToolBar(String toolBarId, PositionableAdapter<T> toolBar)
toolBarId - the id of the tool bartoolBar - the tool bar with the preferred positionPositionableAdapter<T> removeToolBar(String toolBarId)
toolBarId - the tool bar idvoid addToolBarButton(String toolBarId, PositionableAdapter<? extends B> toolBarButton)
toolBarId - the id of the tool bar the provided button should be added totoolBarButton - tbe tool bar button with the preferred positionPositionableAdapter<? extends B> removeToolBarButton(String toolBarId, B toolBarButton)
toolBarId - the id of the tool bar the provided button should be removed fromtoolBarButton - tbe tool bar buttonboolean containsToolBar(String toolBarId)
toolBarId - the tool bar idboolean isToolBarVisible(String toolBarId)
toolBarId - the tool bar idvoid setToolBarVisible(String toolBarId, boolean visible)
toolBarId - the tool bar idvisible - the flagvoid addToolBarContainerListener(ToolBarContainerListener<T,B> containerListener)
containerListener - a tool bar container listenervoid removeToolBarContainerListener(ToolBarContainerListener<T,B> containerListener)
containerListener - a tool bar container listenervoid addToolBarContainerListener(String toolBarId, ToolBarContainerListener<T,B> containerListener)
toolBarId - the tool bar idcontainerListener - a tool bar container listenervoid removeToolBarContainerListener(String toolBarId, ToolBarContainerListener<T,B> containerListener)
toolBarId - the tool bar idcontainerListener - a tool bar container listenerCopyright © 2012–2018 Drombler. All rights reserved.