com.isti.util.menu
Interface IstiMenuListener

All Known Implementing Classes:
IstiMenuHandler

public interface IstiMenuListener

Class IstiMenuListener implements a Menu Listener Interface for menu actions.


Method Summary
 boolean isMenuItemSelected(java.lang.Object menuItem)
          This method is called when a MenuItem is instantiated.
 boolean isMenuItemSelected(java.lang.String name, java.lang.String displayText)
          This method is called when a MenuItem is instantiated.
 void processMenuItemEvent(java.lang.String name, java.lang.String displayText, boolean isSelected, java.awt.AWTEvent e)
          This method is called when a MenuItem event happens.
 

Method Detail

isMenuItemSelected

boolean isMenuItemSelected(java.lang.String name,
                           java.lang.String displayText)
This method is called when a MenuItem is instantiated.

Parameters:
name - the name of the menu item.
displayText - the display text for the menu item.
Returns:
true if the menu item should be initially selected.

isMenuItemSelected

boolean isMenuItemSelected(java.lang.Object menuItem)
This method is called when a MenuItem is instantiated.

Parameters:
menuItem - the menu item.
Returns:
true if the menu item should be initially selected.

processMenuItemEvent

void processMenuItemEvent(java.lang.String name,
                          java.lang.String displayText,
                          boolean isSelected,
                          java.awt.AWTEvent e)
This method is called when a MenuItem event happens.

Parameters:
name - the name of the menu item.
displayText - the display text for the menu item.
isSelected - true if the menu item is selected.
e - the AWTEvent.