|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
org.netbeans.microedition.svg.SVGPlayer
org.netbeans.microedition.svg.SVGAnimatorWrapper
org.netbeans.microedition.svg.SVGMenu
public class SVGMenu
Screen representing a menu component. SVG animation can contain named elements, which are being focused while the users moves up/down. In the case SVG image contains animation on the focus event, the user can see the animated transition between the named elements.
By default this component starts the animation automatically and runs in full screen mode.
Field Summary | |
---|---|
static javax.microedition.lcdui.Command |
SELECT_COMMAND
Command fired when the user chooses a menu element. |
static int |
SELECTED_INDEX_NONE
value of selected index when no menu item is selected |
Fields inherited from class org.netbeans.microedition.svg.SVGPlayer |
---|
BOTTOM, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, LEFT, PAUSED, PLAYING, RIGHT, STOPPED, TOP, TOP_LEFT, TOP_RIGHT |
Fields inherited from class javax.microedition.lcdui.Canvas |
---|
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, UP |
Constructor Summary | |
---|---|
SVGMenu(javax.microedition.m2g.SVGImage svgImage,
javax.microedition.lcdui.Display display)
Creates a new instance of SVGMenu. |
Method Summary | |
---|---|
void |
addMenuElement(java.lang.String svgElementId)
Adds a menu element to the menu component. |
void |
focusNext()
By default, focusNext simply moves the focus on the next focusable element in the focus ring. |
void |
focusPrev()
By default, focusNext simply moves the focus on the previous focusable element in the focus ring. |
java.lang.String |
getMenuElementID(int index)
Gets menu element id for given index. |
int |
getSelectedIndex()
Gets index of selected menu element |
void |
resetFocus()
focus on the first element if applicable; |
Methods inherited from class javax.microedition.lcdui.Canvas |
---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, showNotify, sizeChanged |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
getHeight, getWidth, isShown |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.microedition.lcdui.Command SELECT_COMMAND
public static final int SELECTED_INDEX_NONE
Constructor Detail |
---|
public SVGMenu(javax.microedition.m2g.SVGImage svgImage, javax.microedition.lcdui.Display display)
Method Detail |
---|
public void addMenuElement(java.lang.String svgElementId)
public java.lang.String getMenuElementID(int index) throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundException
- when a wrong index is used
java.lang.IndexOutOfBoundsException
public int getSelectedIndex()
public void resetFocus()
public void focusNext()
public void focusPrev()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |