superwaba.ext.xplat.html.ui
Class Radio

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Radio
              |
              +--superwaba.ext.xplat.html.ui.Radio

public class Radio
extends Radio
implements Controllable

Radio extends the Waba Radio control and implements it as a Controllable


Fields inherited from class waba.ui.Control
AFTER, appId, appObj, asContainer, asWindow, backColor, backDis, BEFORE, BOTTOM, CENTER, clearValueInt, clearValueStr, enabled, FILL, FIT, fm, fmH, focusLess, focusTraversable, font, foreColor, foreDis, height, highlightRectsCount, isHighlighting, LEFT, parent, PREFERRED, RANGE, RIGHT, SAME, TOP, uiCE, uiFlat, uiPalm, uiVista, visible, width, x, x2, y, y2
 
Constructor Summary
Radio(java.lang.String name, java.lang.String value, RadioGroup rg, boolean checked)
          Constructor
 
Method Summary
 void getFocus()
          Make this controllable gets the focus
 java.lang.String getName()
          Get the name of this Controllable
 java.lang.String getValue()
          Get the value hold by this Controllable
 void repaint()
          Marks the control for repaint.
 void reset()
          Resets the control to its original default value.
 void setHtmlContainer(HtmlContainer htmlCnr)
          Set the Html HtmlContainer associated to this Controllable
 
Methods inherited from class waba.ui.Radio
clear, getChecked, getPreferredHeight, getPreferredWidth, getRadioGroup, getText, onColorsChanged, onEvent, onFontChanged, onPaint, setChecked, setText
 
Methods inherited from class waba.ui.Control
addTimer, changeHighlighted, contains, createGraphics, drawHighlight, getAbsoluteRect, getBackColor, getFont, getFontMetrics, getForeColor, getNext, getParent, getParentWindow, getPos, getRect, getSize, isDisplayed, isEnabled, isVisible, onBoundsChanged, onWindowPaintFinished, postEvent, removeTimer, repaintNow, requestFocus, setBackColor, setBackForeColors, setEnabled, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setVisible, translateFromOrigin, uiStyleChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Radio

public Radio(java.lang.String name,
             java.lang.String value,
             RadioGroup rg,
             boolean checked)
Constructor
Parameters:
name - Name of this Controllable
value - value attached to this Radio control.
checked - whether or not this Radio should be initially checked.
Method Detail

setHtmlContainer

public void setHtmlContainer(HtmlContainer htmlCnr)
Description copied from interface: Controllable
Set the Html HtmlContainer associated to this Controllable
Specified by:
setHtmlContainer in interface Controllable
Tags copied from interface: Controllable
Parameters:
htmlCnr - the HtmlContainer associated to this Controllable

getFocus

public void getFocus()
Description copied from interface: Controllable
Make this controllable gets the focus
Specified by:
getFocus in interface Controllable

getName

public java.lang.String getName()
Description copied from interface: Controllable
Get the name of this Controllable
Specified by:
getName in interface Controllable
Tags copied from interface: Controllable
Returns:
the name of this Controllable

getValue

public java.lang.String getValue()
Description copied from interface: Controllable
Get the value hold by this Controllable
Specified by:
getValue in interface Controllable
Tags copied from interface: Controllable
Returns:
the value hold by this Controllable

repaint

public void repaint()
Description copied from class: Control
Marks the control for repaint. Important note: when you call repaint, the absolute area of the control regarding its parent Window is invalidated (marked for repaint); then, the next time a event (a keypress, a timer, a pen event) occurs, the screen is updated. If you call repaint and the control isn't effectively repainted, you have 2 choices: call Window._doPaint(), or, use Control.repaintNow.
Overrides:
repaint in class Control

reset

public void reset()
Description copied from interface: Controllable
Resets the control to its original default value.
Specified by:
reset in interface Controllable