|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.servlet.model.IlvMenuItem
public class IlvMenuItem
This class defines a menu item that should be contained by an
IlvMenu.
IlvMenu,
Serialized Form| Constructor Summary | |
|---|---|
IlvMenuItem()
Creates a menu item. |
|
IlvMenuItem(String label)
Creates a menu item. |
|
IlvMenuItem(String label,
ActionListener actionListener)
Creates a menu item. |
|
IlvMenuItem(String label,
ActionListener actionListener,
String image)
Creates a menu item. |
|
IlvMenuItem(String label,
ActionListener actionListener,
String image,
boolean enabled)
Creates a menu item. |
|
IlvMenuItem(String label,
String image)
Creates a menu item. |
|
| Method Summary | |
|---|---|
void |
fireActionPerformed(EventObject event)
Broadcast the event to all the listeners registered on this menu item. |
ActionListener |
getActionListener()
Returns the action listener that will be triggered if this menu item is selected by the user. |
String |
getId()
Returns the ID of this menu item. |
String |
getImage()
Returns the string representation of an URL to an image displayed on this menu item. |
String |
getLabel()
Returns the label of this menu item. |
IlvMenu |
getParent()
Returns the parent IlvMenu that contains
this menu item. |
boolean |
isEnabled()
Checks whether this menu item is enabled. |
void |
setActionListener(ActionListener actionListener)
Sets the action listener that will be triggered if this menu item is selected by the user. |
void |
setEnabled(boolean enabled)
Specifies whether this menu item can be chosen. |
void |
setId(String id)
Sets the ID of this menu item. |
void |
setImage(String image)
Sets the string representation of an URL to an image displayed on this menu item. |
void |
setLabel(String label)
Sets the label of this menu item. |
void |
setParent(IlvMenu parent)
Sets the parent IlvMenu of
this menu item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMenuItem(String label,
ActionListener actionListener,
String image,
boolean enabled)
label - The label of the menu item.actionListener - The action listener triggered on this menu item selection.image - The URL of an image.enabled - If true, the menu item is enabled;
if false, the menu item is disabled.
public IlvMenuItem(String label,
ActionListener actionListener,
String image)
label - The label of the menu item.actionListener - The action listener triggered on this menu item selection.image - The URL of an image.
public IlvMenuItem(String label,
ActionListener actionListener)
label - The label of the menu item.actionListener - The action listener triggered on this menu item selection.
public IlvMenuItem(String label,
String image)
label - The label of the menu item.image - image The URL of an image.public IlvMenuItem(String label)
label - The label of the menu item.public IlvMenuItem()
| Method Detail |
|---|
public void setActionListener(ActionListener actionListener)
Note that the action listener must be supported by the IlvPopupMenuEncoder implementation set on the IlvPopupMenuServletSupport.
actionListener - The action listener.public ActionListener getActionListener()
public boolean isEnabled()
true if the menu item is enabled; false if it is disabled.public void setEnabled(boolean enabled)
enabled - If true, the menu item is enabled;
if false, the menu item is disabled.public String getImage()
public void setImage(String image)
image - The image of this menu item.public String getLabel()
public void setLabel(String label)
label - The label to set.public IlvMenu getParent()
IlvMenu that contains
this menu item.
public void setParent(IlvMenu parent)
IlvMenu of
this menu item.
parent - The menu that will contain this menu item.public String getId()
public void setId(String id)
Sets the ID of this menu item.
This ID could be used in a listener to determine which menu item triggered the action.
id - The ID to set.
public void fireActionPerformed(EventObject event)
throws Exception
event - The event object.
Exception
|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||