public interface JavaClientToolbarItem extends Item<ToolbarContext>
sub items
of a
grouping item
.Modifier and Type | Method and Description |
---|---|
Icon |
getIcon(ToolbarContext context)
Returns the icon of this item or
null if this item has no icon. |
String |
getLabel(ToolbarContext context)
Provide the label for this item.
|
Icon |
getPressedIcon(ToolbarContext context)
Returns the icon in pressed state for this item or
null if this item has no pressed icon. |
Icon |
getRollOverIcon(ToolbarContext context)
Returns an optional roll-over-icon of this item or
null if the normal icon
should be used. |
boolean |
isEnabled(ToolbarContext context)
Indicate, whether this item is enabled wrt. the given context.
|
boolean |
isVisible(ToolbarContext context)
Indicates the visibility of this item wrt. the given context.
|
@NotNull String getLabel(@NotNull ToolbarContext context)
context
- The context to be considered for providing a label.boolean isEnabled(@NotNull ToolbarContext context)
isEnabled
in interface Item<ToolbarContext>
context
- The context to be considered for deciding upon the item being enabled.true
, if enabled, false
, else.boolean isVisible(@NotNull ToolbarContext context)
isVisible
in interface Item<ToolbarContext>
context
- The context to be considered for deciding upon visibility.true
, if visible, false
, else.@Nullable Icon getIcon(@NotNull ToolbarContext context)
null
if this item has no icon.25x25 px
for java client toolbar button19x19
in toolbar sub items
icon
, pressed
, roll over
)context
- The context to be considered for providing the icon.null
, if the item has no icon.@Nullable Icon getPressedIcon(@NotNull ToolbarContext context)
null
if this item has no pressed icon.null
the normal icon
will be used.
The recommended dimensions for this icon are:
25x25 px
for java client toolbar button19x19
in toolbar sub items
icon
, pressed
, roll over
)context
- The context to be considered for providing the icon.null
, if the item has no pressed icon.@Nullable Icon getRollOverIcon(@NotNull ToolbarContext context)
null
if the normal icon
should be used.25x25 px
for java client toolbar button19x19
in toolbar sub items
icon
, pressed
, roll over
)
The hover background will be rendered from FirstSpirit. If this method delivers null
the
normal icon
will be used as hover icon combined with the background.context
- The context to be considered for providing the icon.null
, if the item has no roll-over-icon.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500