public interface ISelectionListenerToolBar extends IToolBar
IToolBar
which listens the selection changes of a component, and can have buttons and an info text which gets enabled / disabled based on
the selection.Modifier and Type | Method and Description |
---|---|
ILabel |
addSelectInfoLabel(java.lang.String text)
Adds a new info label with the specified text which will be automatically disabled if there are selected rows and enabled if nothing is selected in the
targeted table.
Also adds a separator after the label. |
javax.swing.JButton |
addSelEnabledButton(IAction action)
Adds a new button associated with the specified action.
The newly added button will be automatically enabled/disabled when the listened component's selection changes. |
asToolBar, finalizeLayout
ILabel addSelectInfoLabel(java.lang.String text)
text
- info text to create and add a label forjavax.swing.JButton addSelEnabledButton(IAction action)
action
- action to be associated with the button
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.