All Packages Class Hierarchy This Package Previous Next Index

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

 o ListPopupMenu(String, String[])
Constructs a new ListPopupMenu with the specified title, containing the specified items and editing the specified TextField.

Method index

 o getEditorHandler()
Gets the EditorHandler for this Editor.
 o getSelectedItem()
Gets the selected item of the PopupMenu.
 o setEditorHandler(EditorHandler)
Sets the EditorHandler to the specified object and the specified handler.

Constructors

 o 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

 o getSelectedItem
 public String getSelectedItem()
Gets the selected item of the PopupMenu.

 o getEditorHandler
 public EditorHandler getEditorHandler()
Gets the EditorHandler for this Editor.

 o 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