public interface ILcyToolBar extends ILcyActionBar
ILcyActionBar
that represents a tool bar. It adds support
for adding and removing java.awt.Component
s directly. This allows to for
example add a combo box or a label to it.Modifier and Type | Method and Description |
---|---|
void |
insertComponent(Component aComponent,
TLcyGroupDescriptor aGroupDescriptor)
Adds a Component to this
ILcyToolBar . |
void |
removeComponent(Component aComponent)
Removes the given Component from this
ILcyToolBar . |
addActionBarListener, getActionBarItem, getActionBarItemCount, getComponent, insertAction, insertAction, insertActiveSettable, insertActiveSettable, insertActiveSettable, removeAction, removeActionBarListener, removeActiveSettable, retrieveDeactivatePossible, retrieveGroupDescriptor, retrieveGroupDescriptor, retrieveHelpIDString, retrieveHelpIDString, retrieveMenuGroupDescriptors, retrieveMenuGroupDescriptors, retrieveMenus, retrieveMenus, setHelpIDString, setHelpIDString
void insertComponent(Component aComponent, TLcyGroupDescriptor aGroupDescriptor)
Adds a Component to this ILcyToolBar
.
Alternatively, you can use
ILcyCustomizableRepresentationAction
or
ILcyCustomizableRepresentationActiveSettable
to insert components into an ILcyActionBar
.
aComponent
- The component to add. It will be added at the top level.aGroupDescriptor
- The group descriptor of the component to add.removeComponent(java.awt.Component)
,
TLcyAlwaysFitJToolBar.createToolBarPanel(java.awt.Component)
void removeComponent(Component aComponent)
ILcyToolBar
. Has no effect if the
component was never added to this ILcyToolBar
or if it was already removed.aComponent
- The component to remove.insertComponent(java.awt.Component, TLcyGroupDescriptor)