apps.mtdesktop.tabletop
Class TabletopContentManager

java.lang.Object
  extended by apps.mtdesktop.tabletop.TabletopContentManager
All Implemented Interfaces:
FtpServerServlet.FtpServletListener, MessageProcessor

public class TabletopContentManager
extends java.lang.Object
implements FtpServerServlet.FtpServletListener, MessageProcessor

The Class TabletopContentManager.


Nested Class Summary
static interface TabletopContentManager.DesktopKeyboardListener
          The listener interface for receiving desktopKeyboard events.
static interface TabletopContentManager.DesktopMouseListener
          The listener interface for receiving desktopMouse events.
static interface TabletopContentManager.TabletopContentManagerListener
          The listener interface for receiving tabletopContentManager events.
 
Field Summary
static float MAX_SCALE
          The max scale.
static float MIN_SCALE
          The min scale.
 
Constructor Summary
TabletopContentManager(ContentSystem contentSystem, DefaultSynergyNetApp app)
          Instantiates a new tabletop content manager.
 
Method Summary
 void addDesktopKeyboardListener(TabletopContentManager.DesktopKeyboardListener l)
          Adds the desktop keyboard listener.
 void addDesktopMouseListener(TabletopContentManager.DesktopMouseListener l)
          Adds the desktop mouse listener.
 void addListener(TabletopContentManager.TabletopContentManagerListener listener)
          Adds the listener.
 void fileDownloaded(java.io.File file)
          File downloaded.
 void fileUploaded(TableIdentity tableId, java.lang.String assetId, java.io.File f)
          File uploaded.
 BasketManager getBasketManager()
          Gets the basket manager.
 MultiUserNotepad getPad()
          Gets the pad.
 java.util.Map<TableIdentity,java.util.List<ContentItem>> getTableItems()
          Gets the table items.
 void process(java.lang.Object obj)
          Process.
 void registerMouseCursor(TableIdentity tableId)
          Register mouse cursor.
 void removeDesktopKeyboardListener(TabletopContentManager.DesktopKeyboardListener l)
          Removes the desktop keyboard listener.
 void removeDesktopKeyboardListeners()
          Removes the desktop keyboard listeners.
 void removeDesktopMouseListener(TabletopContentManager.DesktopMouseListener l)
          Removes the desktop mouse listener.
 void removeDesktopMouseListeners()
          Removes the desktop mouse listeners.
 void unregisterMouseCursor(TableIdentity tableId)
          Unregister mouse cursor.
 void update(float tpf)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SCALE

public static float MAX_SCALE
The max scale.


MIN_SCALE

public static float MIN_SCALE
The min scale.

Constructor Detail

TabletopContentManager

public TabletopContentManager(ContentSystem contentSystem,
                              DefaultSynergyNetApp app)
Instantiates a new tabletop content manager.

Parameters:
contentSystem - the content system
app - the app
Method Detail

addDesktopKeyboardListener

public void addDesktopKeyboardListener(TabletopContentManager.DesktopKeyboardListener l)
Adds the desktop keyboard listener.

Parameters:
l - the l

addDesktopMouseListener

public void addDesktopMouseListener(TabletopContentManager.DesktopMouseListener l)
Adds the desktop mouse listener.

Parameters:
l - the l

addListener

public void addListener(TabletopContentManager.TabletopContentManagerListener listener)
Adds the listener.

Parameters:
listener - the listener

fileDownloaded

public void fileDownloaded(java.io.File file)
Description copied from interface: FtpServerServlet.FtpServletListener
File downloaded.

Specified by:
fileDownloaded in interface FtpServerServlet.FtpServletListener
Parameters:
file - the file

fileUploaded

public void fileUploaded(TableIdentity tableId,
                         java.lang.String assetId,
                         java.io.File f)
Description copied from interface: FtpServerServlet.FtpServletListener
File uploaded.

Specified by:
fileUploaded in interface FtpServerServlet.FtpServletListener
Parameters:
tableId - the peer id
assetId - the asset id
f - the file

getBasketManager

public BasketManager getBasketManager()
Gets the basket manager.

Returns:
the basket manager

getPad

public MultiUserNotepad getPad()
Gets the pad.

Returns:
the pad

getTableItems

public java.util.Map<TableIdentity,java.util.List<ContentItem>> getTableItems()
Gets the table items.

Returns:
the table items

process

public void process(java.lang.Object obj)
Description copied from interface: MessageProcessor
Process.

Specified by:
process in interface MessageProcessor
Parameters:
obj - the obj

registerMouseCursor

public void registerMouseCursor(TableIdentity tableId)
Register mouse cursor.

Parameters:
tableId - the table id

removeDesktopKeyboardListener

public void removeDesktopKeyboardListener(TabletopContentManager.DesktopKeyboardListener l)
Removes the desktop keyboard listener.

Parameters:
l - the l

removeDesktopKeyboardListeners

public void removeDesktopKeyboardListeners()
Removes the desktop keyboard listeners.


removeDesktopMouseListener

public void removeDesktopMouseListener(TabletopContentManager.DesktopMouseListener l)
Removes the desktop mouse listener.

Parameters:
l - the l

removeDesktopMouseListeners

public void removeDesktopMouseListeners()
Removes the desktop mouse listeners.


unregisterMouseCursor

public void unregisterMouseCursor(TableIdentity tableId)
Unregister mouse cursor.

Parameters:
tableId - the table id

update

public void update(float tpf)
Update.

Parameters:
tpf - the tpf