net.sf.colle.forms.test
Class TestForm.State

java.lang.Object
  extended bynet.sf.colle.forms.test.TestForm.State
Enclosing class:
TestForm

public static class TestForm.State
extends Object

Define the inner state FormSet class. This class extends the FormSet base class to provide useful helper methods.


Constructor Summary
TestForm.State(FormElement pxParent)
          Create a new state FormSet element.
 
Method Summary
 void clearSelected()
          Clears all currently selected values.
 FormSet getStructure()
          Returns the inner set/structure object.
 boolean isAKSelected()
          Check weather the AK value is selected.
 boolean isALSelected()
          Check weather the AL value is selected.
 boolean isARSelected()
          Check weather the AR value is selected.
 boolean isAZSelected()
          Check weather the AZ value is selected.
 boolean isCASelected()
          Check weather the CA value is selected.
 boolean isCOSelected()
          Check weather the CO value is selected.
 boolean isCTSelected()
          Check weather the CT value is selected.
 boolean isDESelected()
          Check weather the DE value is selected.
 boolean isFLSelected()
          Check weather the FL value is selected.
 boolean isGASelected()
          Check weather the GA value is selected.
 boolean isLASelected()
          Check weather the LA value is selected.
 boolean isNCSelected()
          Check weather the NC value is selected.
 boolean isNDSelected()
          Check weather the ND value is selected.
 boolean isNMSelected()
          Check weather the NM value is selected.
 boolean isPASelected()
          Check weather the PA value is selected.
 boolean isSCSelected()
          Check weather the SC value is selected.
 boolean isVASelected()
          Check weather the VA value is selected.
 void setAK(boolean pbValue)
          Sets the selected state of the AK value.
 void setAL(boolean pbValue)
          Sets the selected state of the AL value.
 void setAR(boolean pbValue)
          Sets the selected state of the AR value.
 void setAZ(boolean pbValue)
          Sets the selected state of the AZ value.
 void setCA(boolean pbValue)
          Sets the selected state of the CA value.
 void setCO(boolean pbValue)
          Sets the selected state of the CO value.
 void setCT(boolean pbValue)
          Sets the selected state of the CT value.
 void setDE(boolean pbValue)
          Sets the selected state of the DE value.
 void setFL(boolean pbValue)
          Sets the selected state of the FL value.
 void setGA(boolean pbValue)
          Sets the selected state of the GA value.
 void setLA(boolean pbValue)
          Sets the selected state of the LA value.
 void setNC(boolean pbValue)
          Sets the selected state of the NC value.
 void setND(boolean pbValue)
          Sets the selected state of the ND value.
 void setNM(boolean pbValue)
          Sets the selected state of the NM value.
 void setPA(boolean pbValue)
          Sets the selected state of the PA value.
 void setSC(boolean pbValue)
          Sets the selected state of the SC value.
 void setVA(boolean pbValue)
          Sets the selected state of the VA value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestForm.State

public TestForm.State(FormElement pxParent)
Create a new state FormSet element.

Parameters:
pxParent - parent in the form element tree
Method Detail

clearSelected

public void clearSelected()
Clears all currently selected values. Note that even cfs:select-ones are backed by a FormSet object so you must call this method before setting new selected values.


isAKSelected

public boolean isAKSelected()
Check weather the AK value is selected.

Returns:
true on selected

setAK

public void setAK(boolean pbValue)
Sets the selected state of the AK value.

Parameters:
pbValue - FormSet value to be selected

isALSelected

public boolean isALSelected()
Check weather the AL value is selected.

Returns:
true on selected

setAL

public void setAL(boolean pbValue)
Sets the selected state of the AL value.

Parameters:
pbValue - FormSet value to be selected

isARSelected

public boolean isARSelected()
Check weather the AR value is selected.

Returns:
true on selected

setAR

public void setAR(boolean pbValue)
Sets the selected state of the AR value.

Parameters:
pbValue - FormSet value to be selected

isAZSelected

public boolean isAZSelected()
Check weather the AZ value is selected.

Returns:
true on selected

setAZ

public void setAZ(boolean pbValue)
Sets the selected state of the AZ value.

Parameters:
pbValue - FormSet value to be selected

isCASelected

public boolean isCASelected()
Check weather the CA value is selected.

Returns:
true on selected

setCA

public void setCA(boolean pbValue)
Sets the selected state of the CA value.

Parameters:
pbValue - FormSet value to be selected

isCOSelected

public boolean isCOSelected()
Check weather the CO value is selected.

Returns:
true on selected

setCO

public void setCO(boolean pbValue)
Sets the selected state of the CO value.

Parameters:
pbValue - FormSet value to be selected

isCTSelected

public boolean isCTSelected()
Check weather the CT value is selected.

Returns:
true on selected

setCT

public void setCT(boolean pbValue)
Sets the selected state of the CT value.

Parameters:
pbValue - FormSet value to be selected

isDESelected

public boolean isDESelected()
Check weather the DE value is selected.

Returns:
true on selected

setDE

public void setDE(boolean pbValue)
Sets the selected state of the DE value.

Parameters:
pbValue - FormSet value to be selected

isFLSelected

public boolean isFLSelected()
Check weather the FL value is selected.

Returns:
true on selected

setFL

public void setFL(boolean pbValue)
Sets the selected state of the FL value.

Parameters:
pbValue - FormSet value to be selected

isGASelected

public boolean isGASelected()
Check weather the GA value is selected.

Returns:
true on selected

setGA

public void setGA(boolean pbValue)
Sets the selected state of the GA value.

Parameters:
pbValue - FormSet value to be selected

isLASelected

public boolean isLASelected()
Check weather the LA value is selected.

Returns:
true on selected

setLA

public void setLA(boolean pbValue)
Sets the selected state of the LA value.

Parameters:
pbValue - FormSet value to be selected

isNCSelected

public boolean isNCSelected()
Check weather the NC value is selected.

Returns:
true on selected

setNC

public void setNC(boolean pbValue)
Sets the selected state of the NC value.

Parameters:
pbValue - FormSet value to be selected

isNDSelected

public boolean isNDSelected()
Check weather the ND value is selected.

Returns:
true on selected

setND

public void setND(boolean pbValue)
Sets the selected state of the ND value.

Parameters:
pbValue - FormSet value to be selected

isNMSelected

public boolean isNMSelected()
Check weather the NM value is selected.

Returns:
true on selected

setNM

public void setNM(boolean pbValue)
Sets the selected state of the NM value.

Parameters:
pbValue - FormSet value to be selected

isPASelected

public boolean isPASelected()
Check weather the PA value is selected.

Returns:
true on selected

setPA

public void setPA(boolean pbValue)
Sets the selected state of the PA value.

Parameters:
pbValue - FormSet value to be selected

isSCSelected

public boolean isSCSelected()
Check weather the SC value is selected.

Returns:
true on selected

setSC

public void setSC(boolean pbValue)
Sets the selected state of the SC value.

Parameters:
pbValue - FormSet value to be selected

isVASelected

public boolean isVASelected()
Check weather the VA value is selected.

Returns:
true on selected

setVA

public void setVA(boolean pbValue)
Sets the selected state of the VA value.

Parameters:
pbValue - FormSet value to be selected

getStructure

public FormSet getStructure()
Returns the inner set/structure object. Your set 'has-a' net.sf.colle.forms.FormSet object as opposed to 'is-a' (inheritance) set/structure object to minimize naming collisions. For instance it would be impossible to have a value called 'name' if this set was derived from net.sf.colle.forms.FormSet because of the setName() method.