edu.northwestern.at.wordhoard.swing.find
Class TestCriterion

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.find.CriterionComponent
      extended by edu.northwestern.at.wordhoard.swing.find.TestCriterion

 class TestCriterion
extends CriterionComponent

Test criterion component.


Constructor Summary
TestCriterion()
           
 
Method Summary
(package private)  SearchCriterion getValue()
          Gets the value of the component.
(package private)  javax.swing.JComponent init(SearchCriterion val)
          Initializes the component.
(package private)  java.lang.String setCriteria(SearchCriteria searchCriteria)
          Sets the criteria value.
(package private)  void setValue(SearchCriterion val)
          Sets the value of the component.
 
Methods inherited from class edu.northwestern.at.wordhoard.swing.find.CriterionComponent
checkTaggingData, getOtherRowValue, getSwingComponent, getWindow, handleValueChanged, init, notifyWindow, rebuildSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCriterion

TestCriterion()
Method Detail

init

javax.swing.JComponent init(SearchCriterion val)
                      throws java.lang.Exception
Initializes the component.

Specified by:
init in class CriterionComponent
Parameters:
val - Initial value, or null.
Returns:
The component.
Throws:
java.lang.Exception

getValue

SearchCriterion getValue()
Gets the value of the component.

Specified by:
getValue in class CriterionComponent
Returns:
The value.

setValue

void setValue(SearchCriterion val)
Sets the value of the component.

Parameters:
val - The value.

setCriteria

java.lang.String setCriteria(SearchCriteria searchCriteria)
Sets the criteria value.

Specified by:
setCriteria in class CriterionComponent
Parameters:
searchCriteria - Search criteria.
Returns:
Validation error message, or null if none.