|
|||||||||
| 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 IChatGUIFactorypublic ChatGUI getMainGui()
getMainGui in interface IChatGUIFactorypublic void setInputReceiver(IChatClientInputReceiver inputReceiver)
setInputReceiver in interface IChatGUIFactorypublic void setChatServer(IChatServer server)
setChatServer in interface IChatGUIFactorypublic IChatRoom createChatRoom(java.lang.String name)
IChatGUIFactorycreateChatRoom in interface IChatGUIFactorycom.lyrisoft.chat.client.gui.IChatGUIFactoryname - 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 IChatGUIFactorypublic ILogin createLoginDialog()
IChatGUIFactorycreateLoginDialog in interface IChatGUIFactorycom.lyrisoft.chat.client.gui.IChatGUIFactoryinputReceiver - the object that will receive inputpublic IConsole createConsole()
IChatGUIFactorycreateConsole in interface IChatGUIFactorycom.lyrisoft.chat.client.gui.IChatGUIFactoryinputReceiver - the object that will receive inputmainGui - the ChatGui componentserver - the client-side view of the server
public IQuery createQuery(java.lang.String title,
java.lang.String choiceLabel,
java.lang.String[] choices,
boolean showTextField,
java.lang.String textFieldLabel)
createQuery in interface IChatGUIFactorypublic java.awt.Component createAboutDialog()
createAboutDialog in interface IChatGUIFactorypublic void hide(IChatRoom room)
hide in interface IChatGUIFactorypublic void show(IChatRoom room)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void hide(ILogin login)
IChatGUIFactoryhide in interface IChatGUIFactorypublic void show(ILogin login)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void show(IConsole c)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void hide(IConsole c)
IChatGUIFactoryhide in interface IChatGUIFactorypublic void show(IPrivateChatRoom room)
show in interface IChatGUIFactorypublic void hide(IPrivateChatRoom room)
hide in interface IChatGUIFactorypublic void setApplet(ChatClientApplet a)
IChatGUIFactorysetApplet in interface IChatGUIFactorypublic java.awt.Image getImage(java.lang.String name)
getImage in interface IChatGUIFactorypublic void playAudioClip(java.lang.String name)
IChatGUIFactoryplayAudioClip in interface IChatGUIFactorypublic void playSounds(boolean b)
playSounds in interface IChatGUIFactorypublic boolean getPlaySounds()
getPlaySounds in interface IChatGUIFactory
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface IChatGUIFactorypublic 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 | ||||||||