|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.icon.TabMenuOverflowIconBridge
public class TabMenuOverflowIconBridge
This DockIconBridge
searches for TabMenuDockIcon
s and sets a custom icon using the
current size of the TabMenu
to select the icon.
This bridge must be installed at the 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.
Field Summary | |
---|---|
static String |
ICON_KEY
The key of the icon that is observed by this bridge |
Constructor Summary | |
---|---|
TabMenuOverflowIconBridge()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ICON_KEY
Constructor Detail |
---|
public TabMenuOverflowIconBridge()
Method Detail |
---|
public void add(String id, DockIcon icon)
UIBridge
UIValue
that gets its resource from this bridge.
add
in interface UIBridge<Icon,DockIcon>
id
- the id of the resource the new value needsicon
- a value that can be modified by this bridepublic void remove(String id, DockIcon icon)
UIBridge
remove
in interface UIBridge<Icon,DockIcon>
id
- the id of the resource the value neededicon
- the value that is no longer in usepublic void set(String id, Icon value, DockIcon icon)
UIBridge
UIProperties
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
.
set
in interface UIBridge<Icon,DockIcon>
id
- the identifier of the resourcevalue
- the new resource, can be null
icon
- the value that is affected by the changeprotected Icon createIcon(TabMenu menu)
menu
in its current state. This method is called
everytime when the number of children of menu
changes.
menu
- the menu for which an icon is required
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |