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

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

 class NarrativeCriterion
extends CriterionComponent

Narrative criterion component.


Constructor Summary
NarrativeCriterion()
           
 
Method Summary
(package private)  SearchCriterion getValue()
          Gets the value of the component.
(package private)  void handleValueChanged(java.lang.Class cls, SearchCriterion oldVal, SearchCriterion newVal)
          Handles a value changed event in some other criterion.
(package private)  javax.swing.JComponent init(SearchCriterion val)
          Initializes the component.
(package private)  java.lang.String setCriteria(SearchCriteria searchCriteria)
          Sets the criteria value.
 
Methods inherited from class edu.northwestern.at.wordhoard.swing.find.CriterionComponent
checkTaggingData, getOtherRowValue, getSwingComponent, getWindow, init, notifyWindow, rebuildSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NarrativeCriterion

NarrativeCriterion()
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 word class.

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.

handleValueChanged

void handleValueChanged(java.lang.Class cls,
                        SearchCriterion oldVal,
                        SearchCriterion newVal)
                  throws java.lang.Exception
Handles a value changed event in some other criterion.

Overrides:
handleValueChanged in class CriterionComponent
Parameters:
cls - The class of the criterion that changed.
oldVal - Old value.
newVal - New value.
Throws:
java.lang.Exception