|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cs.ai.kreator.ui.gui.components.controller.QueryPreviewGuideController edu.cs.ai.kreator.ui.gui.components.controller.EvidencePreviewGuideController
public class EvidencePreviewGuideController
A class observing and previewing the construction of custom evidences. Actually the evidences dont support specific domains, only the value true or false.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.cs.ai.kreator.ui.gui.components.controller.QueryPreviewGuideController |
---|
QueryPreviewGuideController.KeyListener, QueryPreviewGuideController.ParameterPair |
Field Summary | |
---|---|
protected java.lang.Boolean |
defaultValue
|
protected java.lang.String |
evidenceValue
String encoding the evidenceValue. |
protected static java.lang.String |
LINK_ID_EVIDENCE
URL ID linking to the STATE_RESULT |
Fields inherited from class edu.cs.ai.kreator.ui.gui.components.controller.QueryPreviewGuideController |
---|
ACTION_CHANGED, ACTION_DO, allowConstantAppending, doLabel, internalStateChange, language, LINK_ID_DO, LINK_ID_PREDICATE, LINK_ID_PREFIX_PARAMETER, outputPane, parameters, predicate, state, STATE_NO_KNOWLEDGEBASE, STATE_PREDICATE, workList |
Constructor Summary | |
---|---|
EvidencePreviewGuideController(PreviewGuideControls controls)
Ctor |
Method Summary | |
---|---|
protected boolean |
applyWorkListSelection()
This method apply the selection change in the work list. |
protected java.lang.String |
buildGuideOutput()
Builds the guide line output helping the user performing the next step. |
protected java.lang.String |
buildPreviewOutput()
Builds the preview output string showing the user what he had constructed so far. |
protected void |
checkStateValid(int newState)
|
AtomExpression |
getEvidence()
|
int |
getStateCount()
|
protected int |
getStateResultId()
|
boolean |
isValid()
|
protected void |
onHyperlinkEvent(javax.swing.event.HyperlinkEvent e)
Decide what to do if the user clicks a hyperlink Sub classes defining more hyperlinks should override this method to add the wished functionality when the user clicks on the link. |
protected void |
processStateNavigation(java.awt.event.KeyEvent event)
Navigate through different states by a given KeyEvent. |
void |
reset(java.lang.String reason)
|
protected void |
switchState(int newState)
Switch the current state to newState |
Methods inherited from class edu.cs.ai.kreator.ui.gui.components.controller.QueryPreviewGuideController |
---|
addActionListener, buildErrorOutput, changeWorkListContent, getQuery, informActionListener, removeActionListener, reset, reset, setLanguage, setParameter, updateOutput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Boolean defaultValue
protected java.lang.String evidenceValue
protected static final java.lang.String LINK_ID_EVIDENCE
Constructor Detail |
---|
public EvidencePreviewGuideController(PreviewGuideControls controls)
controls
- field
- button
- Method Detail |
---|
public int getStateCount()
getStateCount
in class QueryPreviewGuideController
public void reset(java.lang.String reason)
reset
in class QueryPreviewGuideController
public boolean isValid()
isValid
in class QueryPreviewGuideController
public AtomExpression getEvidence()
protected java.lang.String buildPreviewOutput()
QueryPreviewGuideController
buildPreviewOutput
in class QueryPreviewGuideController
protected java.lang.String buildGuideOutput()
QueryPreviewGuideController
buildGuideOutput
in class QueryPreviewGuideController
protected void switchState(int newState)
QueryPreviewGuideController
switchState
in class QueryPreviewGuideController
protected void checkStateValid(int newState)
checkStateValid
in class QueryPreviewGuideController
protected boolean applyWorkListSelection()
QueryPreviewGuideController
applyWorkListSelection
in class QueryPreviewGuideController
protected void processStateNavigation(java.awt.event.KeyEvent event)
QueryPreviewGuideController
processStateNavigation
in class QueryPreviewGuideController
event
- reference to the KeyEventprotected void onHyperlinkEvent(javax.swing.event.HyperlinkEvent e)
QueryPreviewGuideController
onHyperlinkEvent
in class QueryPreviewGuideController
e
- Reference to the HyperLinkEventprotected int getStateResultId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |