fc.web.forms
Class MaxSizable

java.lang.Object
  extended by fc.web.forms.Field
      extended by fc.web.forms.AbstractText
          extended by fc.web.forms.MaxSizable
Direct Known Subclasses:
Password, Text

public abstract class MaxSizable
extends AbstractText

Represents an HTML field that accepts a 'maxlength' html attribute


Nested Class Summary
 
Nested classes/interfaces inherited from class fc.web.forms.Field
Field.Type
 
Method Summary
 MaxSizable setMaxSize(int maxlen)
          Specifies the maximum number of characters a text box can accept.
 MaxSizable setSize(int size)
          Specifies the size of this text box.
 
Methods inherited from class fc.web.forms.AbstractText
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValues
 
Methods inherited from class fc.web.forms.Field
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getType, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderImpl, renderStyleTag, setStyleTag, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setSize

public MaxSizable setSize(int size)
Specifies the size of this text box. This value (if set) is rendered as the html SIZE tag.

Returns:
this object for method chaining convenience

setMaxSize

public MaxSizable setMaxSize(int maxlen)
Specifies the maximum number of characters a text box can accept. This value (if set) is rendered as the html MAXLENGTH tag.

Returns:
this object for method chaining convenience