com.mmoui.manager.services
Interface UpdateElement.PopupOption

Enclosing interface:
UpdateElement

public static interface UpdateElement.PopupOption

Defines a single option to be displayed in a JPopupMenu

Since:
1.0.1
Version:
$Id: UpdateElement.java 198 2009-05-10 23:30:33Z mpdelbuono $
Author:
Matthew P. Del Buono

Method Summary
 java.lang.Runnable getCallback()
          Gets the Runnable object to execute when the option is selected.
 java.lang.String getDescription()
          Gets the description of this PopupOption object.
 

Method Detail

getDescription

java.lang.String getDescription()
Gets the description of this PopupOption object. This is the text that will be displayed to the user when the option is presented.

Returns:
a String representing the text to display to the user as the option

getCallback

java.lang.Runnable getCallback()
Gets the Runnable object to execute when the option is selected. The callback must always be run in the Java Swing thread (AWT-EventQueue-0).

Returns:
a Runnable object whose run() method will be executed upon selection of this option
See Also:
Runnable