org.apache.tapestry5.corelib.components
Class RadioGroup

java.lang.Object
  extended by org.apache.tapestry5.corelib.components.RadioGroup
All Implemented Interfaces:
ClientElement, Field

@Events(value="validate")
public class RadioGroup
extends Object
implements Field


Constructor Summary
RadioGroup()
           
 
Method Summary
 String getClientId()
          Returns null; the radio group does not render as a tag and so doesn't have an id to share.
 String getControlName()
          Returns the value used as the name attribute of the rendered element.
 String getLabel()
          Returns a user presentable (localized) label for the field, which may be used inside <label> elements on the client, and inside client or server-side validation error messages.
 boolean isDisabled()
          Returns true if the field is disabled; A disabled field will render a disabled attribute so that it is non-responsive on the client (at least, until its disabled status is changed on the client using JavaScript).
 boolean isRequired()
          Returns true if this field required (as per FieldValidator.isRequired()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioGroup

public RadioGroup()
Method Detail

getControlName

public String getControlName()
Description copied from interface: Field
Returns the value used as the name attribute of the rendered element. This value will be unique within an enclosing form, even if the same component renders multiple times.

Specified by:
getControlName in interface Field
See Also:
FormSupport.allocateControlName(String)

getLabel

public String getLabel()
Description copied from interface: Field
Returns a user presentable (localized) label for the field, which may be used inside <label> elements on the client, and inside client or server-side validation error messages.

Specified by:
getLabel in interface Field
Returns:
the label
See Also:
Label

isDisabled

public boolean isDisabled()
Description copied from interface: Field
Returns true if the field is disabled; A disabled field will render a disabled attribute so that it is non-responsive on the client (at least, until its disabled status is changed on the client using JavaScript). A disabled field will ignore any value passed up in a form submit request. Care must be taken if the disabled status of a field can change between the time the field is rendered and the time the enclosing form is submitted.

Specified by:
isDisabled in interface Field

getClientId

public String getClientId()
Returns null; the radio group does not render as a tag and so doesn't have an id to share. RadioGroup implements Field only so it can interact with the ValidationTracker.

Specified by:
getClientId in interface ClientElement
Returns:
null

isRequired

public boolean isRequired()
Description copied from interface: Field
Returns true if this field required (as per FieldValidator.isRequired()).

Specified by:
isRequired in interface Field
Returns:
true if a non-blank value is required for the field


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.