org.kalmeo.kuix.widget
Class Choice

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.Choice

public class Choice
extends ActionWidget

This class represents a choice.

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.FocusableWidget
DISABLED_PSEUDO_CLASS, enabled, focusable, focused, HOVER_PSEUDO_CLASS, PSEUDO_CLASSES
 
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
Choice()
          Construct a Choice
 
Method Summary
 Widget add(Widget widget)
          Add a Widget to this as child
 void cleanUp()
          CleanUp all widget's link and propagate the action on its children.
 Widget getChoiceContainer()
           
 Widget getInternalChildInstance(java.lang.String tag)
          Returns the first internal child instance corresponding to the given tag.
 Layout getLayout()
           
 RadioGroup getRadioGroup()
           
 Screen getScreen()
           
 Widget getWidget(java.lang.String id)
          Returns the Widget witch correspond to the id, or null
 boolean processActionEvent()
          Process action event
 boolean setAttribute(java.lang.String name, java.lang.String value)
          Set the value to the specified attribute representing by the name
 void setTitle(java.lang.String title)
          Define the sub screen title.
 
Methods inherited from class org.kalmeo.kuix.widget.ActionWidget
getOnAction, processKeyEvent, processPointerEvent, processShortcutKeyEvent, setOnAction
 
Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget
getAttribute, getAvailablePseudoClasses, getOnFocus, getOnLostFocus, giveFocusToNearestWidget, isEnabled, isFocusable, isFocused, isPseudoClassCompatible, onAdded, processFocusEvent, remove, requestFocus, setEnabled, setFocusable, setOnFocus, setOnLostFocus, setVisible
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, bringNear, bringToFront, catchChildrenFrom, 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, getLastChild, getLayoutData, getMargin, getMinSize, getOtherFocus, getPadding, getPreferredSize, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, 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

Choice

public Choice()
Construct a Choice

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 ActionWidget
Returns:
true if the attribute exists

getInternalChildInstance

public Widget getInternalChildInstance(java.lang.String tag)
Description copied from class: Widget
Returns the first internal child instance corresponding to the given tag.

Overrides:
getInternalChildInstance in class Widget
Returns:
the child instance if it exists.

setTitle

public void setTitle(java.lang.String title)
Define the sub screen title.

Parameters:
title -

getChoiceContainer

public Widget getChoiceContainer()
Returns:
the choiceContainer

getScreen

public Screen getScreen()
Returns:
the screen

getRadioGroup

public RadioGroup getRadioGroup()
Returns:
the radioGroup

getLayout

public Layout getLayout()
Overrides:
getLayout in class Widget
Returns:
the layout

getWidget

public Widget getWidget(java.lang.String id)
Description copied from class: Widget
Returns the Widget witch correspond to the id, or null

Overrides:
getWidget in class Widget
Returns:
The Widget witch correspond to the id

add

public Widget add(Widget widget)
Description copied from class: Widget
Add a Widget to this as child

Overrides:
add in class Widget
Parameters:
widget - The Widget to add
Returns:
This Widget

cleanUp

public void cleanUp()
Description copied from class: Widget
CleanUp all widget's link and propagate the action on its children.
Caution : This method do NOT remove the widget from widget tree. It only clean external references like dataBinding, menu cache, etc...

Overrides:
cleanUp in class Widget

processActionEvent

public boolean processActionEvent()
Description copied from class: Widget
Process action event

Overrides:
processActionEvent in class ActionWidget
Returns:
true if the event is treated by the widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.