|
|||||||||
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 IChatGUIFactory
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 ILogin createLoginDialog()
IChatGUIFactory
createLoginDialog
in interface IChatGUIFactory
com.lyrisoft.chat.client.gui.IChatGUIFactory
inputReceiver
- the object that will receive inputpublic void show(ILogin login)
IChatGUIFactory
show
in interface IChatGUIFactory
public void hide(ILogin login)
IChatGUIFactory
hide
in interface IChatGUIFactory
public 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 void show(IConsole console)
IChatGUIFactory
show
in interface IChatGUIFactory
public void hide(IConsole console)
IChatGUIFactory
hide
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 void show(IChatRoom room)
IChatGUIFactory
show
in interface IChatGUIFactory
public void hide(IChatRoom room)
hide
in interface IChatGUIFactory
public IPrivateChatRoom createPrivateChatRoom(java.lang.String name)
createPrivateChatRoom
in interface IChatGUIFactory
public void show(IPrivateChatRoom room)
show
in interface IChatGUIFactory
public 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 IChatGUIFactory
public void setApplet(ChatClientApplet a)
IChatGUIFactory
setApplet
in interface IChatGUIFactory
public java.util.Properties getProperties(java.lang.String name)
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
public static void tweakTextFieldSize(javax.swing.JTextField tf)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |