|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects that construct GUI objects. GUI objects are never instantiated directly; they always get created via an instance of this interface and are used through their interfaces. This allows various GUI implementations to be written, plugged in, and used. To create a new GUI, implement all of the interfaces in this package.
IChatRoom
,
IConsole
,
ILogin
,
IYesNo
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 rl)
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 rl)
Show an IConsole |
void |
show(ILogin login)
Show an ILogin |
void |
show(IPrivateChatRoom room)
|
Method Detail |
public java.awt.Component createAboutDialog()
public void setMainGui(ChatGUI mainGui)
public ChatGUI getMainGui()
public void setInputReceiver(IChatClientInputReceiver inputReceiver)
public void setChatServer(IChatServer server)
public ILogin createLoginDialog()
inputReceiver
- the object that will receive inputpublic IChatRoom createChatRoom(java.lang.String name)
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)
public IConsole createConsole()
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)
public void show(IPrivateChatRoom room)
public void hide(IPrivateChatRoom room)
public void show(IChatRoom room)
public void hide(IChatRoom room)
public void hide(ILogin login)
public void show(ILogin login)
public void hide(IConsole rl)
public void show(IConsole rl)
public void setApplet(ChatClientApplet a)
public java.awt.Image getImage(java.lang.String name)
public void playAudioClip(java.lang.String name)
public void playSounds(boolean b)
public boolean getPlaySounds()
public void setAttribute(java.lang.String name, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |