i3mclient.shapeboard
Class ShapeBoard

java.lang.Object
  |
  +--i3mclient.shapeboard.ShapeBoard
All Implemented Interfaces:
DisposeListener, EventListener, MessageListener, MouseListener, MouseMoveListener, SelectionListener, ServerMethodListener, ShellListener, SMSendMessageListener, org.eclipse.swt.internal.SWTEventListener

public class ShapeBoard
extends Object
implements MouseListener, MouseMoveListener, DisposeListener, MessageListener, ShellListener, SelectionListener, SMSendMessageListener

The logic of the shapeboard

Author:
Henning Schaefer
See Also:
ShapeBoardPanel

Constructor Summary
ShapeBoard(long setDiscussionID)
          Constructor.
 
Method Summary
 void addErrorListener(ErrorListener listener)
          Add a listener for errors.
 void addShapeBoardListener(ShapeBoardListener listener)
          Add a listener for shapeboard changes.
 void i3mServerException(I3MServerException exception)
          Called if a server exception is thrown.
 void init()
          Init rest.
 void messageReceived(MessageData message)
          Called if Polling receives a new message from Server.
 void mouseDoubleClick(MouseEvent event)
           
 void mouseDown(MouseEvent event)
           
 void mouseMove(MouseEvent event)
           
 void mouseUp(MouseEvent event)
           
 void removeErrorListener(ErrorListener listener)
          Remove a listener for errors.
 void removeShapeBoardListener(ShapeBoardListener listener)
          Remove a listener for shapeboard changes.
 void sendMessageDone(MessageData message)
          Called if sendMessage was successfull.
 void shellActivated(ShellEvent arg0)
           
 void shellClosed(ShellEvent event)
           
 void shellDeactivated(ShellEvent arg0)
           
 void shellDeiconified(ShellEvent arg0)
           
 void shellIconified(ShellEvent arg0)
           
 void widgetDefaultSelected(SelectionEvent event)
           
 void widgetDisposed(DisposeEvent event)
           
 void widgetSelected(SelectionEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeBoard

public ShapeBoard(long setDiscussionID)
Constructor.

Parameters:
setDiscussionID - The discussionID of the discussion which this shapeboard belongs to
Method Detail

init

public void init()
Init rest.


addShapeBoardListener

public void addShapeBoardListener(ShapeBoardListener listener)
Add a listener for shapeboard changes.

Parameters:
listener - The listener which will be informed about shapeboard changes

removeShapeBoardListener

public void removeShapeBoardListener(ShapeBoardListener listener)
Remove a listener for shapeboard changes.

Parameters:
listener - The listener which will be no longer informed about shapeboard changes

mouseDown

public void mouseDown(MouseEvent event)
Specified by:
mouseDown in interface MouseListener

mouseUp

public void mouseUp(MouseEvent event)
Specified by:
mouseUp in interface MouseListener

mouseDoubleClick

public void mouseDoubleClick(MouseEvent event)
Specified by:
mouseDoubleClick in interface MouseListener

mouseMove

public void mouseMove(MouseEvent event)
Specified by:
mouseMove in interface MouseMoveListener

widgetDisposed

public void widgetDisposed(DisposeEvent event)
Specified by:
widgetDisposed in interface DisposeListener

messageReceived

public void messageReceived(MessageData message)
Description copied from interface: MessageListener
Called if Polling receives a new message from Server.

Specified by:
messageReceived in interface MessageListener
Parameters:
message - The new received message

shellClosed

public void shellClosed(ShellEvent event)
Specified by:
shellClosed in interface ShellListener

shellActivated

public void shellActivated(ShellEvent arg0)
Specified by:
shellActivated in interface ShellListener

shellDeactivated

public void shellDeactivated(ShellEvent arg0)
Specified by:
shellDeactivated in interface ShellListener

shellDeiconified

public void shellDeiconified(ShellEvent arg0)
Specified by:
shellDeiconified in interface ShellListener

shellIconified

public void shellIconified(ShellEvent arg0)
Specified by:
shellIconified in interface ShellListener

addErrorListener

public void addErrorListener(ErrorListener listener)
Add a listener for errors.

Parameters:
listener - The listener which will be informed about errors

removeErrorListener

public void removeErrorListener(ErrorListener listener)
Remove a listener for errors.

Parameters:
listener - The listener which will be no longer informed about errors

widgetSelected

public void widgetSelected(SelectionEvent event)
Specified by:
widgetSelected in interface SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent event)
Specified by:
widgetDefaultSelected in interface SelectionListener

sendMessageDone

public void sendMessageDone(MessageData message)
Description copied from interface: SMSendMessageListener
Called if sendMessage was successfull.

Specified by:
sendMessageDone in interface SMSendMessageListener
Parameters:
message - The message which was sent

i3mServerException

public void i3mServerException(I3MServerException exception)
Description copied from interface: ServerMethodListener
Called if a server exception is thrown.

Specified by:
i3mServerException in interface ServerMethodListener
Parameters:
exception - The converted I3M-server exception