com.leafdigital.ui.api
Interface RadioButton

All Superinterfaces:
SupportsBaseGroup, Widget

public interface RadioButton
extends Widget, SupportsBaseGroup

Interface for radio buttons.


Method Summary
 boolean isEnabled()
           
 boolean isSelected()
           
 void setEnabled(boolean enabled)
           
 void setGroup(java.lang.String group)
          Sets the group which the button belongs to.
 void setLabel(java.lang.String text)
          Set the button's text label.
 void setOnAction(java.lang.String callback)
          Sets the action method called when button is clicked.
 void setSelected()
          Marks this button as selected, deselecting others in the group.
 void setWidthGroup(java.lang.String group)
          Intended for field labels.
 
Methods inherited from interface com.leafdigital.ui.api.Widget
getID, getOwner, informClosed, isVisible, setOwner, setVisible
 
Methods inherited from interface com.leafdigital.ui.api.SupportsBaseGroup
setBaseGroup
 

Method Detail

setLabel

void setLabel(java.lang.String text)
Set the button's text label.

Parameters:
text - Text for label

setGroup

void setGroup(java.lang.String group)
Sets the group which the button belongs to. Within the same group, only a single button is selected.

Parameters:
group - Group

isSelected

boolean isSelected()
Returns:
True if this button is selected

setSelected

void setSelected()
Marks this button as selected, deselecting others in the group.


setOnAction

@UICallback
void setOnAction(java.lang.String callback)
Sets the action method called when button is clicked.

Parameters:
callback - Name of method
Throws:
BugException - If method doesn't exist etc.

setEnabled

void setEnabled(boolean enabled)
Parameters:
enabled - True to enable, false to disable

isEnabled

boolean isEnabled()
Returns:
True if enabled

setWidthGroup

void setWidthGroup(java.lang.String group)
Intended for field labels. Ensures that all labels in the group have the same preferred size.

Parameters:
group - Group identifier


Copyright © 2011 Samuel Marshall. All rights reserved.