|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.relayirc.chatengine.ChatOptions
User's option settings. Includes identification information like nick name and user name. Includes name of currently select IRC server and a list of other IRC servers.
Constructor Summary | |
ChatOptions()
|
Method Summary | |
void |
addChannel(Channel chan)
Add channel to list of IRC channels frequented by user. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addServer(Server svr)
Add server to user's list of IRC servers. |
void |
addUser(User user)
Add user to list of users. |
java.lang.String |
getAltNick()
Get alternate user's nick name, to be used if primary nick name is already in use by somebody else. |
Channel |
getChannelAt(int index)
Get channel by index. |
int |
getChannelCount()
Get number of channels. |
java.lang.Object |
getCustomOption(java.lang.String key)
Get custom option, keyed by name. |
java.lang.String |
getDisplayColor(java.lang.String type)
Gets name of color to be used for display of specified type of chat messages. |
java.lang.String |
getFontName()
Get name of font to be used for message display. |
int |
getFontSize()
Get point size of font to be used for message display. |
int |
getFontStyle()
Get style of font to be used for message display. |
java.lang.String |
getFullName()
Get full name of user. |
java.lang.String |
getNick()
Get user's nick name. |
Server |
getServer()
Get name of IRC chat server. |
Server |
getServerAt(int index)
Get user by index. |
int |
getServerCount()
Get number of users. |
ServerList |
getServerList()
Get vector of servers |
java.util.Vector |
getServers()
Get vector of servers |
User |
getUserAt(int index)
Get user by index. |
int |
getUserCount()
Get number of users. |
java.lang.String |
getUserName()
Get user's full name. |
void |
initNewOptions()
Initialize with some useful default values. |
boolean |
isStatusBarEnabled()
Returns true if status bar is to be shown. |
void |
removeChannel(Channel channel)
Remove channel. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removeServer(Server svr)
Remove server from user's list of IRC servers. |
void |
removeUser(User user)
Remove user from user's list of favorite users. |
void |
setAltNick(java.lang.String str)
Get alternate user's nick name, to be used if primary nick name is already in use by somebody else. |
void |
setCustomOption(java.lang.String key,
java.lang.Object value)
Set custom option, keyed by name. |
void |
setDisplayColor(java.lang.String type,
java.lang.String col)
Sets name of color to be use for display of specified type of chat messages. |
void |
setFontName(java.lang.String str)
Set name of font to be used for message display. |
void |
setFontSize(int size)
Set point size of font to be used for message display. |
void |
setFontStyle(int style)
|
void |
setFullName(java.lang.String str)
Set full name of user. |
void |
setNick(java.lang.String str)
Set user's nick name. |
void |
setServer(Server svr)
Set current chat server. |
void |
setStatusBarEnabled(boolean flag)
Enable/disable display of status bar. |
void |
setUserName(java.lang.String str)
Set users full name. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ChatOptions()
Method Detail |
public void initNewOptions()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public java.lang.String getAltNick()
public void setAltNick(java.lang.String str)
str
- New alternate nick name.public void addChannel(Channel chan)
public int getChannelCount()
public Channel getChannelAt(int index)
public void removeChannel(Channel channel)
public void setCustomOption(java.lang.String key, java.lang.Object value)
public java.lang.Object getCustomOption(java.lang.String key)
public java.lang.String getDisplayColor(java.lang.String type)
type
- Type of chat message.public void setDisplayColor(java.lang.String type, java.lang.String col)
type
- Type of chat message.col
- Name of color.public java.lang.String getNick()
public void setNick(java.lang.String str)
str
- New nick name.public java.lang.String getFontName()
public void setFontName(java.lang.String str)
public int getFontSize()
public void setFontSize(int size)
public int getFontStyle()
public void setFontStyle(int style)
public java.lang.String getFullName()
public void setFullName(java.lang.String str)
public Server getServer()
public void setServer(Server svr)
public void addServer(Server svr)
public void removeServer(Server svr)
public java.util.Vector getServers()
public ServerList getServerList()
public int getServerCount()
public Server getServerAt(int index)
public void setStatusBarEnabled(boolean flag)
public boolean isStatusBarEnabled()
public java.lang.String getUserName()
public void setUserName(java.lang.String str)
str
- New name.public void addUser(User user)
public int getUserCount()
public User getUserAt(int index)
public void removeUser(User user)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |