|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.lyrisoft.chat.client.gui.jfc.SwingGuiFactory
| Constructor Summary | |
SwingGuiFactory()
|
|
| 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()
|
java.util.Properties |
getProperties(java.lang.String name)
|
void |
hide(IChatRoom room)
|
void |
hide(IConsole console)
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 console)
Show an IConsole |
void |
show(ILogin login)
Show an ILogin |
void |
show(IPrivateChatRoom room)
|
static void |
tweakTextFieldSize(javax.swing.JTextField tf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingGuiFactory()
| Method Detail |
public java.awt.Component createAboutDialog()
createAboutDialog in interface IChatGUIFactorypublic 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 ILogin createLoginDialog()
IChatGUIFactorycreateLoginDialog in interface IChatGUIFactorycom.lyrisoft.chat.client.gui.IChatGUIFactoryinputReceiver - the object that will receive inputpublic void show(ILogin login)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void hide(ILogin login)
IChatGUIFactoryhide in interface IChatGUIFactorypublic 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 serverpublic void show(IConsole console)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void hide(IConsole console)
IChatGUIFactoryhide 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 void show(IChatRoom room)
IChatGUIFactoryshow in interface IChatGUIFactorypublic void hide(IChatRoom room)
hide in interface IChatGUIFactorypublic IPrivateChatRoom createPrivateChatRoom(java.lang.String name)
createPrivateChatRoom in interface IChatGUIFactorypublic void show(IPrivateChatRoom room)
show in interface IChatGUIFactorypublic void hide(IPrivateChatRoom room)
hide in interface IChatGUIFactory
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 void setApplet(ChatClientApplet a)
IChatGUIFactorysetApplet in interface IChatGUIFactorypublic java.util.Properties getProperties(java.lang.String name)
public 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 IChatGUIFactorypublic static void tweakTextFieldSize(javax.swing.JTextField tf)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||