| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.db.controls.ListButtons
public final class ListButtons
Associated a number of buttons to use with a JList to add/remove/move elements in the list. The JList must have a DefaultListModel for a model. This panel provides a Container for the JList and all the buttons that should be added to a parent panel in place of the list.
A Helper must be provided for the add and remove buttons to be included as the Helper is responsible for actioning those buttons.
| Nested Class Summary | |
|---|---|
| static class | ListButtons.Controller | 
| static interface | ListButtons.HelperDeprecated. - use Controller | 
| static class | ListButtons.HelperAdapterDeprecated. - use Controller | 
| Constructor Summary | |
|---|---|
| ListButtons(javax.swing.JList list,
            ListButtons.Controller helper) | |
| Method Summary | |
|---|---|
|  void | addCustomButton(javax.swing.Icon icon,
                java.lang.String text,
                java.lang.String buttonName)Adds a custom button to the bottom of the button list. | 
|  void | enableButtons()Enables/disables the buttons on the panel according to the rules of the Helper registered. | 
|  javax.swing.JComponent | getComponent()Gets the component containing the list and all the buttons. | 
|  void | setEnabled(boolean enabled)Enable/disable the panel and all the buttons. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ListButtons(javax.swing.JList list,
                   ListButtons.Controller helper)
| Method Detail | 
|---|
public javax.swing.JComponent getComponent()
public final void addCustomButton(javax.swing.Icon icon,
                                  java.lang.String text,
                                  java.lang.String buttonName)
ListButtons.Controller for the customButtonPressed method.
 
 You must have a ListButtons.Controller registered to use this method.
icon - the icon for the buttontttext - the button's tooltip text (and accessible description)buttonName - a unique name to identify the componentpublic void enableButtons()
ListButtons.Helperpublic void setEnabled(boolean enabled)
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||