com.leafdigital.irc.api
Class ServerRearrangeMsg

java.lang.Object
  extended by leafchat.core.api.Msg
      extended by com.leafdigital.irc.api.ServerMsg
          extended by com.leafdigital.irc.api.ServerRearrangeMsg

public class ServerRearrangeMsg
extends ServerMsg

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

NONE

public static final int NONE
No user response yet

See Also:
Constant Field Values

CONFIRM

public static final int CONFIRM
User confirms inclusion

See Also:
Constant Field Values

REJECT

public static final int REJECT
User rejects inclusion

See Also:
Constant Field Values

info

public static MessageInfo info
Information about message for scripting system.

Constructor Detail

ServerRearrangeMsg

public ServerRearrangeMsg(Server s,
                          java.lang.String host,
                          java.lang.String network,
                          java.lang.String other)
Constructor called if a new network would be created.

Parameters:
s - Server that sent this line
host - Hostname of server
network - Name of newly-created network
other - Other server that would be added alongside

ServerRearrangeMsg

public ServerRearrangeMsg(Server s,
                          java.lang.String host,
                          java.lang.String network)
Constructor called if server would be added to existing network

Parameters:
s - Server that sent this line
host - Hostname of server
network - Name of network for addition
Method Detail

getText

public java.lang.String getText()
Returns:
Text (XML) for dialog

getButtonConfirm

public java.lang.String getButtonConfirm()
Returns:
Text for confirm button

getButtonOther

public java.lang.String getButtonOther()
Returns:
Text for other button

confirm

public void confirm()
Call to indicate that user clicked 'yes' to approve this change


reject

public void reject()
Call to indicate user rejected change


getResult

public int getResult()
Returns:
User's response

updateSequence

public void updateSequence(int sequence)
Used internally to correct the sequence number.

Parameters:
sequence - Right sequence number


Copyright © 2011 Samuel Marshall. All rights reserved.