org.netbeans.microedition.svg
Class SVGAbstractButton

java.lang.Object
  extended by org.netbeans.microedition.svg.SVGComponent
      extended by org.netbeans.microedition.svg.SVGAbstractButton
All Implemented Interfaces:
SVGForm.FocusListener
Direct Known Subclasses:
SVGButton, SVGCheckBox, SVGRadioButton

public abstract class SVGAbstractButton
extends SVGComponent


Field Summary
protected  org.w3c.dom.svg.SVGAnimationElement myPressedAnimation
           
protected  org.w3c.dom.svg.SVGAnimationElement myReleasedAnimation
           
protected static java.lang.String PRESSED
           
protected static java.lang.String PRESSED_SUFFIX
           
protected static java.lang.String RELEASED
           
protected static java.lang.String RELEASED_SUFFIX
           
 
Fields inherited from class org.netbeans.microedition.svg.SVGComponent
actionListeners, DASH, ENABLED, form, LABEL_FOR, REF, SVG_NS, TR_VALUE_HIDDEN, TR_VALUE_INHERIT, TR_VALUE_VISIBLE, TRAIT_FILL, TRAIT_TEXT, TRAIT_VISIBILITY, TRAIT_X, TRAIT_Y, TYPE, wrapperElement
 
Constructor Summary
SVGAbstractButton(SVGForm form, java.lang.String elemId)
           
 
Method Summary
protected  org.w3c.dom.svg.SVGLocatableElement getBodyElement()
           
 InputHandler getInputHandler()
           
abstract  boolean isSelected()
           
 void pressButton()
           
 void releaseButton()
           
abstract  void setSelected(boolean isSelected)
           
 
Methods inherited from class org.netbeans.microedition.svg.SVGComponent
addActionListener, fireActionPerformed, focusGained, focusLost, getElement, getElementById, getElementByMeta, getElementByMeta, getForm, getLabel, getNestedElementByMeta, getProperty, isFocusable, removeActionListener, requestFocus, setFocusable, setProperty, setTraitSafely, setTraitSafely
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRESSED

protected static final java.lang.String PRESSED
See Also:
Constant Field Values

RELEASED

protected static final java.lang.String RELEASED
See Also:
Constant Field Values

PRESSED_SUFFIX

protected static final java.lang.String PRESSED_SUFFIX
See Also:
Constant Field Values

RELEASED_SUFFIX

protected static final java.lang.String RELEASED_SUFFIX
See Also:
Constant Field Values

myPressedAnimation

protected org.w3c.dom.svg.SVGAnimationElement myPressedAnimation

myReleasedAnimation

protected org.w3c.dom.svg.SVGAnimationElement myReleasedAnimation
Constructor Detail

SVGAbstractButton

public SVGAbstractButton(SVGForm form,
                         java.lang.String elemId)
Method Detail

getInputHandler

public InputHandler getInputHandler()
Overrides:
getInputHandler in class SVGComponent

pressButton

public void pressButton()

releaseButton

public void releaseButton()

isSelected

public abstract boolean isSelected()

setSelected

public abstract void setSelected(boolean isSelected)

getBodyElement

protected org.w3c.dom.svg.SVGLocatableElement getBodyElement()