story.scheherazade.virgil
Class PropositionTypeSelector

java.lang.Object
  extended by story.scheherazade.virgil.PropositionTypeSelector
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, SCHSelector

public class PropositionTypeSelector
extends java.lang.Object
implements SCHSelector, java.awt.event.ActionListener


Field Summary
static java.lang.String ACTION_ASSERT
           
static java.lang.String ACTION_GERUND
           
static java.lang.String ACTION_HOW
           
static java.lang.String ACTION_IMPERATIVE
           
static java.lang.String ACTION_INFINITIVE
           
static java.lang.String CONDITION_ASSERT
           
static java.lang.String CONDITION_GERUND
           
static java.lang.String CONDITION_HOW
           
static java.lang.String CONDITION_IMPERATIVE
           
static java.lang.String CONDITION_INFINITIVE
           
static java.lang.String CONDITION_INSTRUCTIONAL
           
static java.lang.String REALITY_ACTION
           
static java.lang.String REALITY_CONDITION
           
static java.lang.String SELECT_BELOW
           
static java.lang.String TIMELINE_ASSERT
           
static java.lang.String TIMELINE_HOW_FACTUAL
           
static java.lang.String TIMELINE_HOW_INSTRUCTIONAL
           
static java.lang.String TIMELINE_IMPERATIVE
           
static java.lang.String TIMELINE_SUBJUNCTIVE
           
 
Constructor Summary
PropositionTypeSelector(SCHSelector parentSelector, GenericScheherID selectedFrame, ValidPropositionParameter param, TimelineID timeline, java.lang.String prompt, SCHVariableType type)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JComponent getPanel()
          Get the JComponent of the GUI front-end of the selector.
 java.lang.Object getSelection()
          Return the value of this selector.
 SCHVariableType getType()
           
 void redoLayout()
          Reconstruct the GUI for this selector.
 boolean selectionReady()
          Returns whether a value has been properly set.
 void setSelection(java.lang.Object selection)
          Set the selection.
 void subSelectorCancelling()
          Indicates to the selector that a subordinate selector (such as the parameters within a ConditionSelector) has been told by the user to cancel the selection process.
 void subSelectorSet(SCHSelector subSelector)
          Inform the Selector that a subordinate selector (such as a sub-selector of PredicateSelector has had a value set.
 void subSelectorSubmitting()
          Indicates to the selector that a subordinate selector (such as the parameters within a ConditionSelector) has been told by the user that their value is final.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_BELOW

public static final java.lang.String SELECT_BELOW
See Also:
Constant Field Values

ACTION_ASSERT

public static final java.lang.String ACTION_ASSERT
See Also:
Constant Field Values

ACTION_GERUND

public static final java.lang.String ACTION_GERUND
See Also:
Constant Field Values

ACTION_INFINITIVE

public static final java.lang.String ACTION_INFINITIVE
See Also:
Constant Field Values

ACTION_HOW

public static final java.lang.String ACTION_HOW
See Also:
Constant Field Values

ACTION_IMPERATIVE

public static final java.lang.String ACTION_IMPERATIVE
See Also:
Constant Field Values

CONDITION_ASSERT

public static final java.lang.String CONDITION_ASSERT
See Also:
Constant Field Values

CONDITION_IMPERATIVE

public static final java.lang.String CONDITION_IMPERATIVE
See Also:
Constant Field Values

CONDITION_INSTRUCTIONAL

public static final java.lang.String CONDITION_INSTRUCTIONAL
See Also:
Constant Field Values

CONDITION_INFINITIVE

public static final java.lang.String CONDITION_INFINITIVE
See Also:
Constant Field Values

CONDITION_GERUND

public static final java.lang.String CONDITION_GERUND
See Also:
Constant Field Values

CONDITION_HOW

public static final java.lang.String CONDITION_HOW
See Also:
Constant Field Values

TIMELINE_ASSERT

public static final java.lang.String TIMELINE_ASSERT
See Also:
Constant Field Values

TIMELINE_IMPERATIVE

public static final java.lang.String TIMELINE_IMPERATIVE
See Also:
Constant Field Values

TIMELINE_SUBJUNCTIVE

public static final java.lang.String TIMELINE_SUBJUNCTIVE
See Also:
Constant Field Values

TIMELINE_HOW_INSTRUCTIONAL

public static final java.lang.String TIMELINE_HOW_INSTRUCTIONAL
See Also:
Constant Field Values

TIMELINE_HOW_FACTUAL

public static final java.lang.String TIMELINE_HOW_FACTUAL
See Also:
Constant Field Values

REALITY_ACTION

public static final java.lang.String REALITY_ACTION
See Also:
Constant Field Values

REALITY_CONDITION

public static final java.lang.String REALITY_CONDITION
See Also:
Constant Field Values
Constructor Detail

PropositionTypeSelector

public PropositionTypeSelector(SCHSelector parentSelector,
                               GenericScheherID selectedFrame,
                               ValidPropositionParameter param,
                               TimelineID timeline,
                               java.lang.String prompt,
                               SCHVariableType type)
                        throws Scheherexception
Throws:
Scheherexception
Method Detail

getPanel

public javax.swing.JComponent getPanel()
Description copied from interface: SCHSelector
Get the JComponent of the GUI front-end of the selector.

Specified by:
getPanel in interface SCHSelector

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

subSelectorSet

public void subSelectorSet(SCHSelector subSelector)
Description copied from interface: SCHSelector
Inform the Selector that a subordinate selector (such as a sub-selector of PredicateSelector has had a value set.

Specified by:
subSelectorSet in interface SCHSelector

subSelectorSubmitting

public void subSelectorSubmitting()
Description copied from interface: SCHSelector
Indicates to the selector that a subordinate selector (such as the parameters within a ConditionSelector) has been told by the user that their value is final.

Specified by:
subSelectorSubmitting in interface SCHSelector

subSelectorCancelling

public void subSelectorCancelling()
Description copied from interface: SCHSelector
Indicates to the selector that a subordinate selector (such as the parameters within a ConditionSelector) has been told by the user to cancel the selection process.

This is ONLY ever triggered when the PredicateSelector is initialized with the CANCEL_BUTTON parameter set to true (and, of course, the user chooses to click that button).

Specified by:
subSelectorCancelling in interface SCHSelector

selectionReady

public boolean selectionReady()
Description copied from interface: SCHSelector
Returns whether a value has been properly set.

Specified by:
selectionReady in interface SCHSelector

setSelection

public void setSelection(java.lang.Object selection)
                  throws Scheherexception
Description copied from interface: SCHSelector
Set the selection. Throws an exception if the selection is not valid for the selector.

Specified by:
setSelection in interface SCHSelector
Throws:
Scheherexception

getSelection

public java.lang.Object getSelection()
                              throws Scheherexception
Description copied from interface: SCHSelector
Return the value of this selector. Will throw an exception if no value has yet been properly set.

Specified by:
getSelection in interface SCHSelector
Throws:
Scheherexception

redoLayout

public void redoLayout()
Description copied from interface: SCHSelector
Reconstruct the GUI for this selector.

Specified by:
redoLayout in interface SCHSelector

getType

public SCHVariableType getType()
                        throws Scheherexception
Specified by:
getType in interface SCHSelector
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.