org.kalmeo.kuix.widget
Class RadioButton

java.lang.Object
  extended by org.kalmeo.kuix.widget.Widget
      extended by org.kalmeo.kuix.widget.FocusableWidget
          extended by org.kalmeo.kuix.widget.ActionWidget
              extended by org.kalmeo.kuix.widget.CheckBox
                  extended by org.kalmeo.kuix.widget.RadioButton

public class RadioButton
extends CheckBox

This class represents a radio button.

For further informations, visit the Kuix widgets reference page.

Author:
bbeaulant

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget
Widget.BindInstruction
 
Field Summary
 
Fields inherited from class org.kalmeo.kuix.widget.CheckBox
PSEUDO_CLASSES, SELECTED_PSEUDO_CLASS
 
Fields inherited from class org.kalmeo.kuix.widget.FocusableWidget
DISABLED_PSEUDO_CLASS, enabled, focusable, focused, HOVER_PSEUDO_CLASS
 
Fields inherited from class org.kalmeo.kuix.widget.Widget
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous
 
Constructor Summary
RadioButton()
          Construct a RadioButton
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the specified attribute
 RadioGroup getRadioGroup()
           
 java.lang.String getValue()
           
protected  void internalSetSelected(boolean selected, boolean propagateToRadioGroup)
          Used to intercept selection change and propagate the event to the ragio groupg according to propagateToRadioGroup value.
 boolean setAttribute(java.lang.String name, java.lang.String value)
          Set the value to the specified attribute representing by the name
 void setSelected(boolean selected)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class org.kalmeo.kuix.widget.CheckBox
getOnSelect, getOnUnselect, isPseudoClassCompatible, isSelected, processActionEvent, setOnSelect, setOnUnselect
 
Methods inherited from class org.kalmeo.kuix.widget.ActionWidget
getOnAction, processKeyEvent, processPointerEvent, processShortcutKeyEvent, setOnAction
 
Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget
getAvailablePseudoClasses, getOnFocus, getOnLostFocus, giveFocusToNearestWidget, isEnabled, isFocusable, isFocused, onAdded, processFocusEvent, remove, requestFocus, setEnabled, setFocusable, setOnFocus, setOnLostFocus, setVisible
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, add, bringNear, bringToFront, catchChildrenFrom, cleanUp, cleanUpChildren, clearCachedStyle, doLayout, getAlign, getAuthorStyle, getBackgroundAlign, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBorderAlign, getBorderColor, getBorderImage, getBorderStroke, getCachedMetrics, getChild, getColor, getDataProvider, getDefaultStylePropertyValue, getDesktop, getDisplayX, getDisplayY, getFocusManager, getGap, getGrayedColor, getHeight, getId, getInheritedTag, getInnerHeight, getInnerWidth, getInsets, getInternalChildInstance, getLastChild, getLayout, getLayoutData, getMargin, getMinSize, getOtherFocus, getPadding, getPreferredSize, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, getWidget, getWidgetAt, getWidgetAt, getWidth, getX, getY, hasBindInstruction, hasShortcutKeyCodes, hasShortcuts, invalidate, invalidate, invalidateAppearance, invalidateAppearanceRegion, invalidateStylePropertiesCache, isFocusWidgetChild, isIndividualyVisible, isInvalidated, isInWidgetTree, isObjectAttribute, isShortcutKeyCodeCompatible, isVisible, markAsValidate, needToComputePreferredSize, onChildAdded, onChildRemoved, onFocus, onLostFocus, onRemoved, paint, paintBackground, paintBorder, paintChildrenImpl, paintImpl, paintMosaicImage, parseAuthorStyle, processDataBindEvent, processItemsModelUpdateEvent, processModelUpdateEvent, propagateFocusEvent, removeAll, removeAttributeBindInstruction, requestBackwardFocus, requestForwardFocus, sendToBack, setAttributeBindInstruction, setAuthorStyle, setBounds, setDataProvider, setId, setObjectAttribute, setShortcutKeyCodes, setShortcuts, setStyleClass, setStyleClasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButton

public RadioButton()
Construct a RadioButton

Method Detail

setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.String value)
Description copied from class: Widget
Set the value to the specified attribute representing by the name

Overrides:
setAttribute in class CheckBox
Returns:
true if the attribute exists

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Description copied from class: Widget
Returns the value of the specified attribute

Overrides:
getAttribute in class CheckBox
Returns:
The value of the specified attribute

setSelected

public void setSelected(boolean selected)
Overrides:
setSelected in class CheckBox
Parameters:
selected - the selected to set

internalSetSelected

protected void internalSetSelected(boolean selected,
                                   boolean propagateToRadioGroup)
Used to intercept selection change and propagate the event to the ragio groupg according to propagateToRadioGroup value.

Parameters:
selected -
propagateToRadioGroup -

getValue

public java.lang.String getValue()
Returns:
the value

setValue

public void setValue(java.lang.String value)
Parameters:
value - the value to set

getRadioGroup

public RadioGroup getRadioGroup()
Returns:
the group


Copyright © 2007-2008 Kalmeo. All Rights Reserved.