All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class guinea.ui.remote.RemoteSubjectUIServer
java.lang.Object
   |
   +----guinea.ui.remote.RemoteObjectHelper
           |
           +----guinea.ui.remote.RemoteSubjectUIServer
  -  public class RemoteSubjectUIServer
  
-  extends RemoteObjectHelper
  
-  implements SubjectUI, WarningDisplayer, MCLLControl, Serializable
   
  Constructor Index
  -   · 
	RemoteSubjectUIServer(RemotePipe, String)
  
 -  
 
  Method Index
  -   · 
	addSubjectUIListener(SubjectUIListener)
  
 -  Add a SubjectUI listener to receive events from this UI.
  
 -   · 
	close()
  
 -  Close the UI window.
  
 -   · 
	dispose()
  
 -  
  
 -   · 
	doRemoteCommand(int, Object[], RemoteCommand)
  
 -  
  
 -   · 
	getControl(String)
  
 -  
  
 -   · 
	getControlNames()
  
 -  Gets a array of control component names.
  
 -   · 
	getControls()
  
 -  Gets the dictionary containing the control components with the name 
as the key.
Deprecated.
  
 -   · 
	getControlValue(String)
  
 -  
  
 -   · 
	getMonitorNames()
  
 -  Gets a array of monitor component names.
  
 -   · 
	getQuestion(String)
  
 -  
  
 -   · 
	getQuestionNames()
  
 -  Gets a array of question component names.
  
 -   · 
	getQuestions()
  
 -  Gets the dictionary containing the question components with the name 
as the key.
Deprecated.
  
 -   · 
	getRemoteType()
  
 -  
  
 -   · 
	isEnabled()
  
 -  Returns whether all the UI components are enabled.
  
 -   · 
	isTimeoutVisible()
  
 -  See if warning indicator is visible to the subject.
  
 -   · 
	open()
  
 -  Open the UI window.
  
 -   · 
	removeSubjectUIListener(SubjectUIListener)
  
 -  Remove a SubjectUI listener from this UI.
  
 -   · 
	reset()
  
 -  Resets the UI to default state.
  
 -   · 
	resetTimeout()
  
 -  Reset the indicator to default state.
  
 -   · 
	setControlsEnabled(boolean)
  
 -  Enable or disable all control components.
  
 -   · 
	setControlValue(String, Object)
  
 -  
  
 -   · 
	setDoneEnabled(boolean)
  
 -  Enable or disable the DONE-button that the subject uses to indicate
that he/she has completed grading (or whatever) the current test 
item.
  
 -   · 
	setEnabled(boolean)
  
 -  Enable or disable all controls, questions and the DONE-button.
  
 -   · 
	setMCLL(Volume)
  
 -  Set the MCL Level on the MCLL dialog.
  
 -   · 
	setMCLLLimits(Volume, Volume)
  
 -  Set the limits of the level the subject can select.
  
 -   · 
	setMCLLText(String)
  
 -  Set the text to show in MCLL controller.
  
 -   · 
	setMCLLTitle(String)
  
 -  Set the title of the MCLL dialog window.
  
 -   · 
	setMCLLVisible(boolean)
  
 -  Make the MCLL setting dialog visible or hide it.
  
 -   · 
	setMonitorValue(String, Object)
  
 -  
  
 -   · 
	setQuestionAnswer(String, Object)
  
 -  
  
 -   · 
	setQuestionsEnabled(boolean)
  
 -  Enable or disable all question or answer components.
  
 -   · 
	setTimeoutTimes(int)
  
 -  Set the timeout time.
  
 -   · 
	setTimeoutTimes(int, int)
  
 -  Set the timeout time and warning time.
  
 -   · 
	setTimeoutVisible(boolean)
  
 -  Set visibility of warning indicator.
  
 -   · 
	startTimeoutWarning()
  
 -  Start the countdown display.
  
 -   · 
	toString(Object[])
  
 -  
  
 -   · 
	toString(Object[], boolean)
  
 -  
 
  Constructors
 · 
RemoteSubjectUIServer
 public RemoteSubjectUIServer(RemotePipe pipe,
                              String name)
  Methods
 · 
getRemoteType
 public int getRemoteType()
  
    -  Overrides:
    
 -  getRemoteType in class RemoteObjectHelper
  
 
 
 · 
open
 public void open()
  -  Open the UI window.
 
 · 
close
 public void close()
  -  Close the UI window.
 
 · 
setEnabled
 public void setEnabled(boolean enabled)
  -  Enable or disable all controls, questions and the DONE-button.
 
 · 
isEnabled
 public boolean isEnabled()
  -  Returns whether all the UI components are enabled.
 
 · 
setQuestionsEnabled
 public void setQuestionsEnabled(boolean enabled)
  -  Enable or disable all question or answer components.
 
 · 
setControlsEnabled
 public void setControlsEnabled(boolean enabled)
  -  Enable or disable all control components.
 
 · 
setDoneEnabled
 public void setDoneEnabled(boolean enabled)
  -  Enable or disable the DONE-button that the subject uses to indicate
that he/she has completed grading (or whatever) the current test 
item.
 
 · 
reset
 public void reset()
  -  Resets the UI to default state.  Eesets all controls, questions and 
other buttons (Done-button).
 
 · 
dispose
 public void dispose()
 · 
getQuestions
 public Dictionary getQuestions()
-  Note: getQuestions() is deprecated.
  
-  Gets the dictionary containing the question components with the name 
as the key.
  
 · 
getControls
 public Dictionary getControls()
-  Note: getControls() is deprecated.
  
-  Gets the dictionary containing the control components with the name 
as the key.
  
 · 
getControl
 public ControlInterface getControl(String cname)
 · 
getQuestion
 public QuestionInterface getQuestion(String qname)
 · 
getQuestionNames
 public String[] getQuestionNames()
  -  Gets a array of question component names.
 
 · 
getControlNames
 public String[] getControlNames()
  -  Gets a array of control component names.
 
 · 
getMonitorNames
 public String[] getMonitorNames()
  -  Gets a array of monitor component names.
 
 · 
setQuestionAnswer
 public void setQuestionAnswer(String qname,
                               Object value)
 · 
setControlValue
 public void setControlValue(String cname,
                             Object value)
 · 
getControlValue
 public Object getControlValue(String cname)
 · 
setMonitorValue
 public void setMonitorValue(String mname,
                             Object value)
 · 
addSubjectUIListener
 public synchronized void addSubjectUIListener(SubjectUIListener listener)
  -  Add a SubjectUI listener to receive events from this UI.
  
    -  Parameters:
    
 -  listener - a listener
    
 -  See Also:
    
 -  SubjectUIListener
  
 
 
 
 · 
removeSubjectUIListener
 public synchronized void removeSubjectUIListener(SubjectUIListener listener)
  -  Remove a SubjectUI listener from this UI.
  
    -  Parameters:
    
 -  listener - a listener
    
 -  See Also:
    
 -  SubjectUIListener
  
 
 
 
 · 
setTimeoutVisible
 public void setTimeoutVisible(boolean visible)
  -  Set visibility of warning indicator.
  
    -  Parameters:
    
 -  visble - true makes the indicator visible to subject.
  
 
 
 
 · 
isTimeoutVisible
 public boolean isTimeoutVisible()
  -  See if warning indicator is visible to the subject.
  
    -  Returns:
    
 -  true if visible, otherwise false.
  
 
 
 
 · 
setTimeoutTimes
 public void setTimeoutTimes(int timeoutTime,
                             int warningTime)
  -  Set the timeout time and warning time.
  
    -  Parameters:
    
 -  timeoutTime - the point of time when the indicator is to timeout
(in milliseconds).
    
-  warningTime - when to show that time is about to run out.  It is
the number of milliseconds before the timeout.
    
  -  See Also:
    
 -  currentTimeMillis
  
 
 
 
 · 
setTimeoutTimes
 public void setTimeoutTimes(int timeoutTime)
  -  Set the timeout time.  No warning is shown before going directly to 
timeout.
  
    -  Parameters:
    
 -  timeoutTime - the point of time when the indicator is to timeout
(in milliseconds).
  
 
 
 
 · 
startTimeoutWarning
 public void startTimeoutWarning()
  -  Start the countdown display.  Times have to have been initialized 
before starting.
 
 · 
resetTimeout
 public void resetTimeout()
  -  Reset the indicator to default state.
 
 · 
setMCLLLimits
 public void setMCLLLimits(Volume min,
                           Volume max)
  -  Set the limits of the level the subject can select.
  
    -  Parameters:
    
 -  min - the minimum level.
    
-  max - the maximum level.
  
  
 
 
 · 
setMCLLText
 public void setMCLLText(String text)
  -  Set the text to show in MCLL controller.
  
    -  Parameters:
    
 -  text - the text.
  
 
 
 
 · 
setMCLLTitle
 public void setMCLLTitle(String title)
  -  Set the title of the MCLL dialog window.
  
    -  Parameters:
    
 -  title - the title.
  
 
 
 
 · 
setMCLL
 public void setMCLL(Volume level)
  -  Set the MCL Level on the MCLL dialog.
  
    -  Parameters:
    
 -  level - the volume level.
  
 
 
 
 · 
setMCLLVisible
 public void setMCLLVisible(boolean visible)
  -  Make the MCLL setting dialog visible or hide it.
  
    -  Parameters:
    
 -  visible - set to true to pop up the MCL level control,
false to hide it.
  
 
 
 
 · 
doRemoteCommand
 protected Object doRemoteCommand(int com,
                                  Object args[],
                                  RemoteCommand command)
  
    -  Overrides:
    
 -  doRemoteCommand in class RemoteObjectHelper
  
 
 
 · 
toString
 public static String toString(Object a[])
 · 
toString
 public static String toString(Object a[],
                               boolean showClasses)
All Packages  Class Hierarchy  This Package  Previous  Next  Index