org.eclipse.ecf.ui.views
Class ChatWindow

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.window.ApplicationWindow
          extended by org.eclipse.ecf.ui.views.ChatWindow
All Implemented Interfaces:
IIMMessageListener, org.eclipse.jface.operation.IRunnableContext, org.eclipse.jface.window.IShellProvider

public class ChatWindow
extends org.eclipse.jface.window.ApplicationWindow
implements IIMMessageListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
protected  boolean disposed
           
protected  IUser localUser
           
protected  IUser remoteUser
           
protected  org.eclipse.ui.part.ViewPart view
           
 
Fields inherited from class org.eclipse.jface.window.ApplicationWindow
seperator1
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ChatWindow(org.eclipse.ui.part.ViewPart view, String titleBarText, String initOutputText, IUser localUser, IUser remoteUser)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
 void create()
           
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
 void flash()
           
protected  org.eclipse.swt.graphics.Point getInitialSize()
           
 IUser getLocalUser()
           
protected  IUser getRemoteUser()
           
protected  String getShellName()
           
protected  TextChatComposite getTextChatComposite()
           
 void handleMessageEvent(IIMMessageEvent messageEvent)
          Handle message event (reception of chat, typing, or object message).
protected  void handleShellCloseEvent()
           
 boolean hasFocus()
           
 int open()
           
 void openAndFlash()
           
 void setDisposed(String message)
           
 void setLocalUser(IUser localUser)
           
 void setRemoteUser(IUser remoteUser)
           
 void setStatus(String status)
           
 
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addCoolBar, addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, coolBarChildrenExist, createCoolBarControl, createCoolBarManager, createCoolBarManager2, createMenuManager, createStatusLine, createStatusLineManager, createToolBarControl, createToolBarManager, createToolBarManager2, createTrimWidgets, getCoolBarControl, getCoolBarManager, getCoolBarManager2, getFont, getLayout, getMenuBarManager, getSeperator1, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, getToolBarManager2, run, showTopSeperator, toolBarChildrenExist
 
Methods inherited from class org.eclipse.jface.window.Window
constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, initializeBounds, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected org.eclipse.ui.part.ViewPart view

localUser

protected IUser localUser

remoteUser

protected IUser remoteUser

disposed

protected boolean disposed
Constructor Detail

ChatWindow

public ChatWindow(org.eclipse.ui.part.ViewPart view,
                  String titleBarText,
                  String initOutputText,
                  IUser localUser,
                  IUser remoteUser)
Method Detail

getLocalUser

public IUser getLocalUser()

getRemoteUser

protected IUser getRemoteUser()

setStatus

public void setStatus(String status)
Overrides:
setStatus in class org.eclipse.jface.window.ApplicationWindow

getShellName

protected String getShellName()

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.window.ApplicationWindow

getInitialSize

protected org.eclipse.swt.graphics.Point getInitialSize()
Overrides:
getInitialSize in class org.eclipse.jface.window.Window

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Overrides:
createContents in class org.eclipse.jface.window.Window

setLocalUser

public void setLocalUser(IUser localUser)

setRemoteUser

public void setRemoteUser(IUser remoteUser)

getTextChatComposite

protected TextChatComposite getTextChatComposite()

open

public int open()
Overrides:
open in class org.eclipse.jface.window.Window

create

public void create()
Overrides:
create in class org.eclipse.jface.window.Window

hasFocus

public boolean hasFocus()

flash

public void flash()

setDisposed

public void setDisposed(String message)

openAndFlash

public void openAndFlash()

handleShellCloseEvent

protected void handleShellCloseEvent()
Overrides:
handleShellCloseEvent in class org.eclipse.jface.window.Window

handleMessageEvent

public void handleMessageEvent(IIMMessageEvent messageEvent)
Description copied from interface: IIMMessageListener
Handle message event (reception of chat, typing, or object message).

Specified by:
handleMessageEvent in interface IIMMessageListener
Parameters:
messageEvent - the event instance to handle. Will not be null.