|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleafchat.core.api.Msg
com.leafdigital.irc.api.ServerMsg
com.leafdigital.irc.api.ServerRearrangeMsg
public class ServerRearrangeMsg
Sent to inform the UI part that the server preferences could be rearranged if user confirms it. IRC UI plugin will display a dialog in response to this message.
Field Summary | |
---|---|
static int |
CONFIRM
User confirms inclusion |
static MessageInfo |
info
Information about message for scripting system. |
static int |
NONE
No user response yet |
static int |
REJECT
User rejects inclusion |
Fields inherited from class leafchat.core.api.Msg |
---|
PRIORITY_AFTERNORMAL, PRIORITY_BEFORENORMAL, PRIORITY_EARLY, PRIORITY_FIRST, PRIORITY_LAST, PRIORITY_LATE, PRIORITY_NORMAL |
Constructor Summary | |
---|---|
ServerRearrangeMsg(Server s,
java.lang.String host,
java.lang.String network)
Constructor called if server would be added to existing network |
|
ServerRearrangeMsg(Server s,
java.lang.String host,
java.lang.String network,
java.lang.String other)
Constructor called if a new network would be created. |
Method Summary | |
---|---|
void |
confirm()
Call to indicate that user clicked 'yes' to approve this change |
java.lang.String |
getButtonConfirm()
|
java.lang.String |
getButtonOther()
|
int |
getResult()
|
java.lang.String |
getText()
|
void |
reject()
Call to indicate user rejected change |
void |
updateSequence(int sequence)
Used internally to correct the sequence number. |
Methods inherited from class com.leafdigital.irc.api.ServerMsg |
---|
getServer |
Methods inherited from class leafchat.core.api.Msg |
---|
isHandled, isStopped, markHandled, markStopped, sequenceBefore, setSequence, setSequence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int CONFIRM
public static final int REJECT
public static MessageInfo info
Constructor Detail |
---|
public ServerRearrangeMsg(Server s, java.lang.String host, java.lang.String network, java.lang.String other)
s
- Server that sent this linehost
- Hostname of servernetwork
- Name of newly-created networkother
- Other server that would be added alongsidepublic ServerRearrangeMsg(Server s, java.lang.String host, java.lang.String network)
s
- Server that sent this linehost
- Hostname of servernetwork
- Name of network for additionMethod Detail |
---|
public java.lang.String getText()
public java.lang.String getButtonConfirm()
public java.lang.String getButtonOther()
public void confirm()
public void reject()
public int getResult()
public void updateSequence(int sequence)
sequence
- Right sequence number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |