|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.relayirc.chatengine.User
Represents the current user or a user who has been queried via WHOIS. Although this class claims to have property change support, listeners will only be notified when you call the onUpdateComplete method.
The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL
Original Code: Relay IRC Chat EngineConstructor Summary | |
User(java.lang.String nick)
Construct user object for user specified by nick. |
|
User(java.lang.String nick,
java.lang.String altNick,
java.lang.String userName,
java.lang.String fullName)
Construct user object for user specified by nick. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Property change support. |
boolean |
equals(java.lang.Object obj)
User objects are equal if they have the same nick name. |
java.lang.String |
getAltNick()
Get user's alternate nickname, only valid for current user. |
java.lang.String |
getChannels()
Get list of user's channels as reported by last WHOIS reply. |
java.lang.String |
getDescription()
Get current user's comments on this user. |
java.lang.String |
getFullName()
Get user's full-name. |
java.lang.String |
getHostName()
Get name of computer on which user's client is running. |
int |
getIdleTime()
Get user's idle time as reported by last WHOIS reply. |
java.lang.String |
getName()
Get user's IRC handle (same as nick). |
java.lang.String |
getNick()
Get user's IRC handle. |
java.lang.String |
getServerDesc()
Get description of user's server as reported by last WHOIS reply. |
java.lang.String |
getServerName()
Get name of IRC server user is using. |
java.util.Date |
getSignonTime()
Get user's signon time as reported by last WHOIS reply. |
java.util.Date |
getUpdateTime()
Get time of last WHOIS reply. |
java.lang.String |
getUserName()
Get login name reported to IRC by user's ident daemon. |
boolean |
isOnline()
Get user's online status (TODO!) |
void |
onUpdateComplete()
Notify listeners that user has been updated. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Property change support. |
void |
setAltNick(java.lang.String altnick)
Set user's alternate nickname, only valid for current user. |
void |
setChannels(java.lang.String channels)
Set list of user's channels as reported by last WHOIS reply. |
void |
setDescription(java.lang.String desc)
Set current user's comments on this user. |
void |
setFullName(java.lang.String fullName)
Set user's full-name. |
void |
setHostName(java.lang.String hostName)
Set name of computer on which user's client is running. |
void |
setIdleTime(int idleTime)
Set user's idle time as reported by last WHOIS reply. |
void |
setName(java.lang.String nick)
Set user's IRC handle (same as nick). |
void |
setNick(java.lang.String nick)
Set user's IRC handle. |
void |
setOnline(boolean isOnline)
Set user's online status (TODO!) |
void |
setServerDesc(java.lang.String serverDesc)
Set description of user's server as reported by last WHOIS reply. |
void |
setServerName(java.lang.String serverName)
Set name of IRC server user is using. |
void |
setSignonTime(java.util.Date signonTime)
Set user's signon time as reported by last WHOIS reply. |
void |
setUpdateTime(java.util.Date updateTime)
Set time of last WHOIS reply. |
void |
setUserName(java.lang.String userName)
Set login name reported to IRC by user's ident daemon. |
java.lang.String |
toDescription()
Creates detailed multi-line description of user. |
java.lang.String |
toString()
Return string representation of user for display purpses. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public User(java.lang.String nick)
public User(java.lang.String nick, java.lang.String altNick, java.lang.String userName, java.lang.String fullName)
Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void onUpdateComplete()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public java.lang.String getDescription()
getDescription
in interface IChatObject
public void setDescription(java.lang.String desc)
setDescription
in interface IChatObject
public java.lang.String getAltNick()
public void setAltNick(java.lang.String altnick)
public java.lang.String getNick()
public void setNick(java.lang.String nick)
public java.lang.String getName()
public void setName(java.lang.String nick)
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.lang.String getFullName()
public void setFullName(java.lang.String fullName)
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
public java.lang.String getServerName()
public void setServerName(java.lang.String serverName)
public java.lang.String getServerDesc()
public void setServerDesc(java.lang.String serverDesc)
public java.lang.String getChannels()
public void setChannels(java.lang.String channels)
public boolean isOnline()
public void setOnline(boolean isOnline)
public int getIdleTime()
public void setIdleTime(int idleTime)
public java.util.Date getSignonTime()
public void setSignonTime(java.util.Date signonTime)
public java.util.Date getUpdateTime()
public void setUpdateTime(java.util.Date updateTime)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |