|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.button.AbstractButton
nextapp.echo2.app.Button
echopointng.ButtonEx
echopointng.MenuItem
public class MenuItem
The MenuItem class provides a ButtonEx
that can be added to a Menu. If it is not contained
within a Menu, then it is rendered just like
a ButtonEx
| Field Summary | |
|---|---|
static Style |
DEFAULT_STYLE
This DEFAULT_STYLE is applied to the MenuItem to give it a series of borders and background colors |
| Fields inherited from class echopointng.ButtonEx |
|---|
PROPERTY_INTERPRET_NEWLINES |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
MenuItem()
Creates a MenuItem with no text or icon. |
|
MenuItem(ImageReference icon)
Creates a MenuItem with an icon. |
|
MenuItem(String text)
Creates a MenuItem with text. |
|
MenuItem(String text,
ImageReference icon)
Creates a MenuItem with text and an icon. |
|
| Method Summary | |
|---|---|
Menu |
getRootMenu()
This will traverse up the component hierarchy and return the top most Menu that contains this MenuItem. |
String |
toString()
|
| Methods inherited from class echopointng.ButtonEx |
|---|
getAccessKey, getAttribute, getAttributeNames, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getText, isInterpretNewlines, processInput, setAccessKey, setAttribute, setInsets, setInterpretNewlines, setModel, setMouseCursor, setMouseCursorUri, setOutsets, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface echopointng.able.Borderable |
|---|
getBorder, setBorder |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Widthable |
|---|
getWidth, setWidth |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Heightable |
|---|
getHeight, setHeight |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.ToolTipable |
|---|
getToolTipText, setToolTipText |
| Field Detail |
|---|
public static Style DEFAULT_STYLE
| Constructor Detail |
|---|
public MenuItem()
MenuItem with no text or icon.
public MenuItem(String text)
MenuItem with text.
text - A text label to display in the MenuItem.public MenuItem(ImageReference icon)
MenuItem with an icon.
icon - An icon to display in the MenuItem.
public MenuItem(String text,
ImageReference icon)
MenuItem with text and an icon.
text - A text label to display in the MenuItem.icon - An icon to display in the MenuItem.| Method Detail |
|---|
public Menu getRootMenu()
public String toString()
toString in class ButtonExObject.toString()
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||