|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lyrisoft.chat.client.gui.awt102.GUIFactory
An IGUIFactory implementation that creates AWT 1.0.2 compliant widgets.
Field Summary | |
protected java.util.Hashtable |
_attributes
|
protected ConsoleFrame |
_console
|
protected java.applet.Applet |
_dummyApplet
|
protected IChatClientInputReceiver |
_inputReceiver
|
protected ChatGUI |
_mainGui
|
protected boolean |
_playSounds
|
protected IChatServer |
_server
|
Constructor Summary | |
GUIFactory()
|
Method Summary | |
java.awt.Component |
createAboutDialog()
|
IChatRoom |
createChatRoom(java.lang.String name)
Construct an IChatRoom component. |
IConsole |
createConsole()
Construct an IConsole component |
ILogin |
createLoginDialog()
Construct an ILogin component |
IPrivateChatRoom |
createPrivateChatRoom(java.lang.String name)
|
IQuery |
createQuery(java.lang.String title,
java.lang.String choiceLabel,
java.lang.String[] choices,
boolean showTextField,
java.lang.String textFieldLabel)
|
java.lang.Object |
getAttribute(java.lang.String name)
|
java.awt.Image |
getImage(java.lang.String name)
|
ChatGUI |
getMainGui()
|
boolean |
getPlaySounds()
|
void |
hide(IChatRoom room)
|
void |
hide(IConsole c)
Hide an IConsole |
void |
hide(ILogin login)
Hide an ILogin |
void |
hide(IPrivateChatRoom room)
|
void |
playAudioClip(java.lang.String name)
This method probably belongs elsewhere... |
void |
playSounds(boolean b)
|
void |
setApplet(ChatClientApplet a)
It's ok to ignore this method unless you're implementing a factory made for Applets. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setChatServer(IChatServer server)
|
void |
setInputReceiver(IChatClientInputReceiver inputReceiver)
|
void |
setMainGui(ChatGUI mainGui)
|
void |
show(IChatRoom room)
Show and IChatRoom |
void |
show(IConsole c)
Show an IConsole |
void |
show(ILogin login)
Show an ILogin |
void |
show(IPrivateChatRoom room)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ChatGUI _mainGui
protected IChatServer _server
protected IChatClientInputReceiver _inputReceiver
protected java.applet.Applet _dummyApplet
protected boolean _playSounds
protected java.util.Hashtable _attributes
protected ConsoleFrame _console
Constructor Detail |
public GUIFactory()
Method Detail |
public void setMainGui(ChatGUI mainGui)
setMainGui
in interface IChatGUIFactory
public ChatGUI getMainGui()
getMainGui
in interface IChatGUIFactory
public void setInputReceiver(IChatClientInputReceiver inputReceiver)
setInputReceiver
in interface IChatGUIFactory
public void setChatServer(IChatServer server)
setChatServer
in interface IChatGUIFactory
public IChatRoom createChatRoom(java.lang.String name)
IChatGUIFactory
createChatRoom
in interface IChatGUIFactory
com.lyrisoft.chat.client.gui.IChatGUIFactory
name
- the name of the chat roommainGui
- the ChatGui componentinputReceiver
- the object that will receive inputserver
- the client-side view of the serverpublic IPrivateChatRoom createPrivateChatRoom(java.lang.String name)
createPrivateChatRoom
in interface IChatGUIFactory
public ILogin createLoginDialog()
IChatGUIFactory
createLoginDialog
in interface IChatGUIFactory
com.lyrisoft.chat.client.gui.IChatGUIFactory
inputReceiver
- the object that will receive inputpublic IConsole createConsole()
IChatGUIFactory
createConsole
in interface IChatGUIFactory
com.lyrisoft.chat.client.gui.IChatGUIFactory
inputReceiver
- the object that will receive inputmainGui
- the ChatGui componentserver
- the client-side view of the serverpublic IQuery createQuery(java.lang.String title, java.lang.String choiceLabel, java.lang.String[] choices, boolean showTextField, java.lang.String textFieldLabel)
createQuery
in interface IChatGUIFactory
public java.awt.Component createAboutDialog()
createAboutDialog
in interface IChatGUIFactory
public void hide(IChatRoom room)
hide
in interface IChatGUIFactory
public void show(IChatRoom room)
IChatGUIFactory
show
in interface IChatGUIFactory
public void hide(ILogin login)
IChatGUIFactory
hide
in interface IChatGUIFactory
public void show(ILogin login)
IChatGUIFactory
show
in interface IChatGUIFactory
public void show(IConsole c)
IChatGUIFactory
show
in interface IChatGUIFactory
public void hide(IConsole c)
IChatGUIFactory
hide
in interface IChatGUIFactory
public void show(IPrivateChatRoom room)
show
in interface IChatGUIFactory
public void hide(IPrivateChatRoom room)
hide
in interface IChatGUIFactory
public void setApplet(ChatClientApplet a)
IChatGUIFactory
setApplet
in interface IChatGUIFactory
public java.awt.Image getImage(java.lang.String name)
getImage
in interface IChatGUIFactory
public void playAudioClip(java.lang.String name)
IChatGUIFactory
playAudioClip
in interface IChatGUIFactory
public void playSounds(boolean b)
playSounds
in interface IChatGUIFactory
public boolean getPlaySounds()
getPlaySounds
in interface IChatGUIFactory
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface IChatGUIFactory
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface IChatGUIFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |