org.netbeans.microedition.svg
Class SVGCheckBox

java.lang.Object
  extended by org.netbeans.microedition.svg.SVGComponent
      extended by org.netbeans.microedition.svg.SVGAbstractButton
          extended by org.netbeans.microedition.svg.SVGCheckBox
All Implemented Interfaces:
SVGForm.FocusListener

public class SVGCheckBox
extends SVGAbstractButton

Suggested SVG snippet :

 <g id="checkbox_online" transform="translate(130,220)">
      <!-- Metadata information. Please don't edit. -->
      <text display="none">type=checkbox</text>

      <rect x="0" y="0" rx="5" ry="5" width="200" height="30" fill="none" stroke="rgb(255,165,0)" stroke-width="2" visibility="hidden">
          <set attributeName="visibility" attributeType="XML" begin="checkbox_online.focusin" fill="freeze" to="visible"/>
          <set attributeName="visibility" attributeType="XML" begin="checkbox_online.focusout" fill="freeze" to="hidden"/>
      </rect>
      <rect x="7.4" y="5" width="20" height="20" fill="white" stroke="black" stroke-width="2"/>
      <g>
          <path id="checkbox_online_mark" transform="translate(12.5,15.5)"  d="M 0,0 5,5 5,-12" fill="none" stroke="black" stroke-width="2"/>
          <!-- Metadata information. Please don't edit. -->
          <text display="none">type=mark</text>    
      </g>
      <g>
          <text id="checkbox_online_title" x="33.8" y="21.6" stroke="gray" font-size="15">
          Online</text>
          <!-- Metadata information. Please don't edit. -->
          <text display="none">type=text</text>
      </g>
      
  </g
 


Field Summary
 
Fields inherited from class org.netbeans.microedition.svg.SVGAbstractButton
myPressedAnimation, myReleasedAnimation, PRESSED, PRESSED_SUFFIX, RELEASED, 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
SVGCheckBox(SVGForm form, java.lang.String elemId)
           
 
Method Summary
 java.lang.String getText()
           
 boolean isSelected()
           
 void pressButton()
           
 void setSelected(boolean selected)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.netbeans.microedition.svg.SVGAbstractButton
getBodyElement, getInputHandler, releaseButton
 
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
 

Constructor Detail

SVGCheckBox

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

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in class SVGAbstractButton

isSelected

public boolean isSelected()
Specified by:
isSelected in class SVGAbstractButton

pressButton

public void pressButton()
Overrides:
pressButton in class SVGAbstractButton

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)