public class TLcySkinnedToolBar extends TLcyToolBar
Extension of TLcyToolBar
that uses icons (for example images) as the button
backgrounds, instead of using the global Look & Feel settings. This is especially useful when
overlaying a tool bar on a map, as the default Look & Feel can then look a bit out of place.
Lucy by default has an on-map tool bar available that appears when items are configured to
be in there, see for example the map centric front-end sample. If you have to overlay another tool
bar on the map, see ILcyGenericMapComponent.getMapOverlayPanel()
for more information.
The super class can work together with an TLcyAlwaysFitJToolBar
to provide a
remaining items button when there is not enough screen space, but this skinned tool bar does
not support it.
Constructor and Description |
---|
TLcySkinnedToolBar()
Creates a new skinned tool bar.
|
TLcySkinnedToolBar(ILcdIcon aBackground,
ILcdIcon aSelectedBackground)
Creates a new skinned tool bar with the given background and selected background icons.
|
TLcySkinnedToolBar(JToolBar aToolBar)
Creates a new skinned tool bar.
|
TLcySkinnedToolBar(JToolBar aToolBar,
ILcdIcon aBackground,
ILcdIcon aSelectedBackground)
Creates a new skinned tool bar with the given background and selected background icons.
|
createItem, createItem, createItemContainer, getButtonSize, getChildren, getComponent, getItemContainer, getParent, insertSeparator, removeSeparator, setButtonSize
addActionBarListener, getActionBarItem, getActionBarItemComparator, getActionBarItemCount, getGroupDescriptorComparator, getHelpManager, getProperties, insertAction, insertAction, insertActiveSettable, insertActiveSettable, insertActiveSettable, insertChildInParent, insertComponent, isAutoHide, removeAction, removeActionBarListener, removeActiveSettable, removeChildFromParent, removeComponent, retrieveDeactivatePossible, retrieveGroupDescriptor, retrieveGroupDescriptor, retrieveHelpIDString, retrieveHelpIDString, retrieveMenuGroupDescriptors, retrieveMenuGroupDescriptors, retrieveMenus, retrieveMenus, setActionBarItemComparator, setAutoHide, setGroupDescriptorComparator, setHelpIDString, setHelpIDString, setHelpManager, setProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
insertComponent, removeComponent
addActionBarListener, getActionBarItem, getActionBarItemCount, insertAction, insertAction, insertActiveSettable, insertActiveSettable, insertActiveSettable, removeAction, removeActionBarListener, removeActiveSettable, retrieveDeactivatePossible, retrieveGroupDescriptor, retrieveGroupDescriptor, retrieveHelpIDString, retrieveHelpIDString, retrieveMenuGroupDescriptors, retrieveMenuGroupDescriptors, retrieveMenus, retrieveMenus, setHelpIDString, setHelpIDString
public TLcySkinnedToolBar()
public TLcySkinnedToolBar(JToolBar aToolBar)
aToolBar
- The Swing tool bar that is used to represent this ILcyToolBar
.
All buttons and components will be added to (a sub-menu of) this tool bar.
You might want to call setFloatable(false)
and
setBorder(BorderFactory.createEmptyBorder())
on it.public TLcySkinnedToolBar(ILcdIcon aBackground, ILcdIcon aSelectedBackground)
TLcdImageIcon
to
create an ILcdIcon
from an image file name.aBackground
- The background of a regular button.aSelectedBackground
- The background of a selected button. A button is selected if its
associated ILcyActiveSettable
returns true
for
ILcyActiveSettable.isActive()
.public TLcySkinnedToolBar(JToolBar aToolBar, ILcdIcon aBackground, ILcdIcon aSelectedBackground)
TLcdImageIcon
to
create an ILcdIcon
from an image file name.aToolBar
- The Swing tool bar that is used to represent this ILcyToolBar
.
All buttons and components will be added to (a sub-menu of) this tool bar.
You might want to call setFloatable(false)
and
setBorder(BorderFactory.createEmptyBorder())
on it.aBackground
- The background of a regular button.aSelectedBackground
- The background of a selected button. A button is selected if its
associated ILcyActiveSettable
returns true
for
ILcyActiveSettable.isActive()
.