Class org.jfouffa.jslider.gui.ListPopupMenu
java.lang.Object
|
+----java.awt.MenuComponent
|
+----java.awt.MenuItem
|
+----java.awt.Menu
|
+----java.awt.PopupMenu
|
+----org.jfouffa.jslider.gui.ListPopupMenu
- public class ListPopupMenu
- extends PopupMenu
- implements Editor
This class is a Popup that enables list selection for different properties.
ListPopupMenu is an editor, so you can add an EditorHandler to this class.
- See Also:
- EditorHandler, Editor
Constructor index
-
ListPopupMenu(String, String[])
- Constructs a new ListPopupMenu with the specified title, containing the
specified items and editing the specified TextField.
Method index
-
getEditorHandler()
- Gets the EditorHandler for this Editor.
-
getSelectedItem()
- Gets the selected item of the PopupMenu.
-
setEditorHandler(EditorHandler)
- Sets the EditorHandler to the specified object and the specified
handler.
Constructors
ListPopupMenu
public ListPopupMenu(String title,
String items[])
- Constructs a new ListPopupMenu with the specified title, containing the
specified items and editing the specified TextField.
- Parameters:
- title - the popup title
- items - the items added into the list
- text - the TextField this dialog is editing
Methods
getSelectedItem
public String getSelectedItem()
- Gets the selected item of the PopupMenu.
getEditorHandler
public EditorHandler getEditorHandler()
- Gets the EditorHandler for this Editor.
setEditorHandler
public void setEditorHandler(EditorHandler handler)
- Sets the EditorHandler to the specified object and the specified
handler.
- Parameters:
- handler - the new EditorHandler of this Editor