de.lessvoid.nifty.controls
Interface RadioButton

All Superinterfaces:
NiftyControl
All Known Implementing Classes:
RadioButtonControl

public interface RadioButton
extends NiftyControl

The RadioButton interface is the Nifty control API view of a Nifty RadioButton control.

Author:
void

Method Summary
 RadioButtonGroup getGroup()
          Return the GroupId of the group this RadioButton is a member of.
 boolean isActivated()
          Returns the activated state of this RadioButton.
 void select()
          Select this RadioButton.
 void setGroup(String groupId)
          Make this RadioButton a part of the group with the given groupId.
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Method Detail

setGroup

void setGroup(String groupId)
Make this RadioButton a part of the group with the given groupId.

Parameters:
groupId -

getGroup

RadioButtonGroup getGroup()
Return the GroupId of the group this RadioButton is a member of.

Returns:

select

void select()
Select this RadioButton. This will make all other RadioButtons of the same group inactive.


isActivated

boolean isActivated()
Returns the activated state of this RadioButton.

Returns:
true when this RadioButton is active and false when not.


Copyright © 2011. All Rights Reserved.