com.lyrisoft.chat.client.gui.awt102
Class AppletGUIFactory

java.lang.Object
  |
  +--com.lyrisoft.chat.client.gui.awt102.GUIFactory
        |
        +--com.lyrisoft.chat.client.gui.awt102.AppletGUIFactory
All Implemented Interfaces:
IChatGUIFactory
Direct Known Subclasses:
EmbeddedAppletGUIFactory

public class AppletGUIFactory
extends GUIFactory
implements IChatGUIFactory

Subclass of GUIFactory specifically for Applets. Overrides some methods so that Panels end up being displayed in the applet rather than in a new window.


Field Summary
protected  ChatClientApplet _applet
           
 
Fields inherited from class com.lyrisoft.chat.client.gui.awt102.GUIFactory
_attributes, _console, _dummyApplet, _inputReceiver, _mainGui, _playSounds, _server
 
Constructor Summary
AppletGUIFactory()
           
 
Method Summary
 IConsole createConsole()
          Overridden.
 ILogin createLoginDialog()
          Construct an ILogin component
 java.awt.Image getImage(java.lang.String name)
           
 java.util.Properties getProperties(java.lang.String name)
           
 void hide(ILogin login)
          Hide an ILogin
 void playAudioClip(java.lang.String name)
          This method probably belongs elsewhere...
 void setApplet(ChatClientApplet a)
          It's ok to ignore this method unless you're implementing a factory made for Applets.
 void show(IConsole c)
          Show an IConsole
 void show(ILogin login)
          Show an ILogin
 
Methods inherited from class com.lyrisoft.chat.client.gui.awt102.GUIFactory
createAboutDialog, createChatRoom, createPrivateChatRoom, createQuery, getAttribute, getMainGui, getPlaySounds, hide, hide, hide, playSounds, setAttribute, setChatServer, setInputReceiver, setMainGui, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lyrisoft.chat.client.gui.IChatGUIFactory
createAboutDialog, createChatRoom, createPrivateChatRoom, createQuery, getAttribute, getMainGui, getPlaySounds, hide, hide, hide, playSounds, setAttribute, setChatServer, setInputReceiver, setMainGui, show, show
 

Field Detail

_applet

protected ChatClientApplet _applet
Constructor Detail

AppletGUIFactory

public AppletGUIFactory()
Method Detail

setApplet

public void setApplet(ChatClientApplet a)
Description copied from interface: IChatGUIFactory
It's ok to ignore this method unless you're implementing a factory made for Applets.
Specified by:
setApplet in interface IChatGUIFactory
Overrides:
setApplet in class GUIFactory

createConsole

public IConsole createConsole()
Overridden. Calls super.createConsole() to create the actual console. Then, puts a note inside the Applet that says "The Chat Program is running in another window.. yadda yadda yadda...". Finally returns the IConsole object
Specified by:
createConsole in interface IChatGUIFactory
Overrides:
createConsole in class GUIFactory
Following copied from interface: com.lyrisoft.chat.client.gui.IChatGUIFactory
Parameters:
inputReceiver - the object that will receive input
mainGui - the ChatGui component
server - the client-side view of the server

createLoginDialog

public ILogin createLoginDialog()
Description copied from interface: IChatGUIFactory
Construct an ILogin component
Specified by:
createLoginDialog in interface IChatGUIFactory
Overrides:
createLoginDialog in class GUIFactory
Following copied from interface: com.lyrisoft.chat.client.gui.IChatGUIFactory
Parameters:
inputReceiver - the object that will receive input

hide

public void hide(ILogin login)
Description copied from interface: IChatGUIFactory
Hide an ILogin
Specified by:
hide in interface IChatGUIFactory
Overrides:
hide in class GUIFactory

show

public void show(ILogin login)
Description copied from interface: IChatGUIFactory
Show an ILogin
Specified by:
show in interface IChatGUIFactory
Overrides:
show in class GUIFactory

show

public void show(IConsole c)
Description copied from interface: IChatGUIFactory
Show an IConsole
Specified by:
show in interface IChatGUIFactory
Overrides:
show in class GUIFactory

getProperties

public java.util.Properties getProperties(java.lang.String name)

getImage

public java.awt.Image getImage(java.lang.String name)
Specified by:
getImage in interface IChatGUIFactory
Overrides:
getImage in class GUIFactory

playAudioClip

public void playAudioClip(java.lang.String name)
Description copied from interface: IChatGUIFactory
This method probably belongs elsewhere... it's here for now because the GUIFactory implementations know how to fetch resources from the resources dir...
Specified by:
playAudioClip in interface IChatGUIFactory
Overrides:
playAudioClip in class GUIFactory


Copyright © 2000-2002 Taso Lyristis