public class TabMenuOverflowIconBridge extends Object implements DockIconBridge
DockIconBridge searches for TabMenuDockIcons and sets a custom icon using the
current size of the TabMenu to select the icon.IconManager using TabMenuDockIcon.KIND_TAB_MENU
as path of the type. Clients may subclass this bridge and override createIcon(TabMenu) in order
to use a custom icon. This bridge assumes that ICON_KEY is not set, the bridges disables itself
if the icon is set by the client.| Modifier and Type | Field and Description |
|---|---|
static String |
ICON_KEY
The key of the icon that is observed by this bridge
|
| Constructor and Description |
|---|
TabMenuOverflowIconBridge() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
DockIcon icon)
Adds a new
UIValue that gets its resource from this bridge. |
protected Icon |
createIcon(TabMenu menu)
Returns an icon that represents
menu in its current state. |
void |
remove(String id,
DockIcon icon)
Removes a value from this bridge.
|
void |
set(String id,
Icon value,
DockIcon icon)
Called by the
UIProperties when one resource or UIValue
has been exchanged. |
public static final String ICON_KEY
public void add(String id, DockIcon icon)
UIBridgeUIValue that gets its resource from this bridge.public void remove(String id, DockIcon icon)
UIBridgepublic void set(String id, Icon value, DockIcon icon)
UIBridgeUIProperties when one resource or UIValue
has been exchanged. Normally an UIBridge can just
call UIValue.set(Object) with the argument value.UIValue that was not added
to this UIBridge.Copyright © 2017 Docking Frames. All rights reserved.