org.xhtmlrenderer.simple.xhtml.controls
Class SelectControl

java.lang.Object
  extended by org.xhtmlrenderer.simple.xhtml.controls.AbstractControl
      extended by org.xhtmlrenderer.simple.xhtml.controls.SelectControl
All Implemented Interfaces:
FormControl

public class SelectControl
extends AbstractControl


Constructor Summary
SelectControl(XhtmlForm form, Element e)
           
 
Method Summary
 String[] getMultipleValues()
           
 Map getOptions()
           
 int getSize()
           
 boolean isMultiple()
           
 void reset()
          Reset the control to it's initial state
 void setMultipleValues(String[] values)
          Sets the control's current values (when isMultiple returns true).
 void setValue(String value)
          Sets the control's current value.
 
Methods inherited from class org.xhtmlrenderer.simple.xhtml.controls.AbstractControl
addFormControlListener, collectText, fireChanged, fireEnabled, fireSuccessful, getElement, getForm, getInitialValue, getIntAttribute, getName, getValue, isEnabled, isHidden, isSuccessful, removeFormControlListener, setEnabled, setInitialValue, setSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectControl

public SelectControl(XhtmlForm form,
                     Element e)
Method Detail

getSize

public int getSize()

isMultiple

public boolean isMultiple()
Specified by:
isMultiple in interface FormControl
Overrides:
isMultiple in class AbstractControl
Returns:
true if this control accepts multiple values, false otherwise

getOptions

public Map getOptions()

setValue

public void setValue(String value)
Description copied from interface: FormControl
Sets the control's current value. This has no effect when isMultiple returns true.

Specified by:
setValue in interface FormControl
Overrides:
setValue in class AbstractControl

getMultipleValues

public String[] getMultipleValues()
Specified by:
getMultipleValues in interface FormControl
Overrides:
getMultipleValues in class AbstractControl
Returns:
the control's current values or null if isMultiple returns false

setMultipleValues

public void setMultipleValues(String[] values)
Description copied from interface: FormControl
Sets the control's current values (when isMultiple returns true). This has no effect when isMultiple returns false.

Specified by:
setMultipleValues in interface FormControl
Overrides:
setMultipleValues in class AbstractControl

reset

public void reset()
Description copied from interface: FormControl
Reset the control to it's initial state

Specified by:
reset in interface FormControl
Overrides:
reset in class AbstractControl


Copyright © 2013. All Rights Reserved.