edu.indiana.iucbrf.ccbr.conversationblock
Class InstructionImpl

java.lang.Object
  extended by edu.indiana.iucbrf.ccbr.conversationblock.InstructionImpl
All Implemented Interfaces:
ConversationBlock, Instruction, SwingRepresentable, java.io.Serializable

public class InstructionImpl
extends java.lang.Object
implements Instruction

An Instruction is a presentation of information, with no request for input.

See Also:
Serialized Form

Field Summary
protected  java.lang.String text
           
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
protected InstructionImpl()
           
  InstructionImpl(java.lang.String text)
          Creates a new instance of Instruction
 
Method Summary
 java.lang.String getButtonText()
           
 FeatureInputPanel getFeatureInputPanel(CCBRDomain domain, boolean allowUnknowns)
           
 java.lang.String getText()
           
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected java.lang.String text
Constructor Detail

InstructionImpl

protected InstructionImpl()

InstructionImpl

public InstructionImpl(java.lang.String text)
Creates a new instance of Instruction

Method Detail

getFeatureInputPanel

public FeatureInputPanel getFeatureInputPanel(CCBRDomain domain,
                                              boolean allowUnknowns)
Specified by:
getFeatureInputPanel in interface ConversationBlock

getButtonText

public java.lang.String getButtonText()
Specified by:
getButtonText in interface ConversationBlock

getText

public java.lang.String getText()
Specified by:
getText in interface ConversationBlock

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable