apps.mathpadapp.controllerapp.assignmentcontroller
Class ResultDialog

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.util.MTFrame
          extended by apps.mathpadapp.controllerapp.assignmentcontroller.ResultDialog
All Implemented Interfaces:
ControllerManager.ControllerNetworkListener, NetworkedContentManager.NetworkListener

public class ResultDialog
extends MTFrame
implements ControllerManager.ControllerNetworkListener

The Class ResultDialog.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Field Summary
 ResultList resultListPanel
          The result list panel.
static int windowHeight
          The Constant windowHeight.
static int windowWidth
          The Constant windowWidth.
 
Constructor Summary
ResultDialog(java.lang.String assignmentId, ContentSystem contentSystem, ControllerManager controllerManager)
          Instantiates a new result dialog.
 
Method Summary
 void close()
          Close.
 ResultList getResultList()
          Gets the result list.
 void projectorFound(TableIdentity tableId, boolean isLeaseSuccessful)
          Projector found.
 void remoteDesktopContentReceived(TableIdentity tableId, java.util.HashMap<UserIdentity,MathToolInitSettings> items)
          Remote desktop content received.
 void resultsReceivedFromUser(TableIdentity tableId, UserIdentity userId, AssignmentInfo assignInfo)
          Results received from user.
 void syncDataReceived(TableIdentity sender, java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> mathPadSyncData)
          Sync data received.
 void tableIdReceived(TableIdentity tableId)
          Table id received.
 void userIdsReceived(TableIdentity tableId, java.util.List<UserIdentity> userIds)
          User ids received.
 void userMathPadReceived(TableIdentity tableId, UserIdentity userId, MathToolInitSettings mathToolSettings)
          User math pad received.
 void userRegistrationReceived(TableIdentity tableId, UserIdentity userId)
          User registration received.
 void userUnregistrationReceived(TableIdentity tableId, UserIdentity userId)
          User unregistration received.
 
Methods inherited from class apps.mathpadapp.util.MTFrame
getTitle, getTopBar, getWindow, setHeight, setTitle, setWidth
 
Methods inherited from class apps.mathpadapp.conceptmapping.GraphNode
addConceptMapListener, fireNodeConnected, fireNodeDisconnected, getClosePoint, getGraphManager, getIncomingLinks, getLinkPoint, getLocation, getName, getNodeItem, getOutgoingLinks, isLinkable, registerIncomingLink, registerOutgoingLink, remove, removeConceptMapListeners, setClosePoint, setLinkable, setLinkPoint, setLocation, unregisterAllLinks, unregisterLink, updateConnectionPoints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windowHeight

public static final int windowHeight
The Constant windowHeight.

See Also:
Constant Field Values

windowWidth

public static final int windowWidth
The Constant windowWidth.

See Also:
Constant Field Values

resultListPanel

public ResultList resultListPanel
The result list panel.

Constructor Detail

ResultDialog

public ResultDialog(java.lang.String assignmentId,
                    ContentSystem contentSystem,
                    ControllerManager controllerManager)
Instantiates a new result dialog.

Parameters:
assignmentId - the assignment id
contentSystem - the content system
controllerManager - the controller manager
Method Detail

close

public void close()
Description copied from class: MTFrame
Close.

Overrides:
close in class MTFrame

getResultList

public ResultList getResultList()
Gets the result list.

Returns:
the result list

projectorFound

public void projectorFound(TableIdentity tableId,
                           boolean isLeaseSuccessful)
Description copied from interface: ControllerManager.ControllerNetworkListener
Projector found.

Specified by:
projectorFound in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
isLeaseSuccessful - the is lease successful

remoteDesktopContentReceived

public void remoteDesktopContentReceived(TableIdentity tableId,
                                         java.util.HashMap<UserIdentity,MathToolInitSettings> items)
Description copied from interface: ControllerManager.ControllerNetworkListener
Remote desktop content received.

Specified by:
remoteDesktopContentReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
items - the items

resultsReceivedFromUser

public void resultsReceivedFromUser(TableIdentity tableId,
                                    UserIdentity userId,
                                    AssignmentInfo assignInfo)
Description copied from interface: ControllerManager.ControllerNetworkListener
Results received from user.

Specified by:
resultsReceivedFromUser in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id
assignInfo - the assign info

syncDataReceived

public void syncDataReceived(TableIdentity sender,
                             java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> mathPadSyncData)
Description copied from interface: ControllerManager.ControllerNetworkListener
Sync data received.

Specified by:
syncDataReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
sender - the sender
mathPadSyncData - the math pad sync data

tableIdReceived

public void tableIdReceived(TableIdentity tableId)
Description copied from interface: ControllerManager.ControllerNetworkListener
Table id received.

Specified by:
tableIdReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id

userIdsReceived

public void userIdsReceived(TableIdentity tableId,
                            java.util.List<UserIdentity> userIds)
Description copied from interface: ControllerManager.ControllerNetworkListener
User ids received.

Specified by:
userIdsReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userIds - the user ids

userMathPadReceived

public void userMathPadReceived(TableIdentity tableId,
                                UserIdentity userId,
                                MathToolInitSettings mathToolSettings)
Description copied from interface: ControllerManager.ControllerNetworkListener
User math pad received.

Specified by:
userMathPadReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id
mathToolSettings - the math tool settings

userRegistrationReceived

public void userRegistrationReceived(TableIdentity tableId,
                                     UserIdentity userId)
Description copied from interface: ControllerManager.ControllerNetworkListener
User registration received.

Specified by:
userRegistrationReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id

userUnregistrationReceived

public void userUnregistrationReceived(TableIdentity tableId,
                                       UserIdentity userId)
Description copied from interface: ControllerManager.ControllerNetworkListener
User unregistration received.

Specified by:
userUnregistrationReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id