|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--au.edu.swin.synergy.kernel.BCommandEvent | +--au.edu.swin.synergy.plugin.command.event.BStandardOutCE
This is the event which should be used whenever a general dialog with the user is required. It provides a means of both asking the user for a response to the query provided as well as simply notifying them of something.
The handler of this event may be either the BCommandLine or the BWindowManager, or anything else that registers itself as the listener for BStandardOutCE's.
Field Summary | |
static int |
kCancel
The users response in the "cancelative" |
static int |
kDefaultOption
Indicates to use the default "ok" option for the user |
static int |
kError
Indicates that this is an error message |
static int |
kInfo
Indicates that this is an information message |
static int |
kNo
The users response in the negative |
static int |
kOK
The users response in the affirmative, this is the equivalent to kYes but included for ease of use reasons. |
static int |
kOkCancelOption
Indicates to use the default "ok/cancel" option for the user |
static int |
kQuestion
Indicates that this is an information message |
static int |
kWarning
Indicates that this is a warning message |
static int |
kYes
The users response in the affirmative |
static int |
kYesNoCancelOption
Indicates to use the default "yes/no/cancel" option for the user |
static int |
kYesNoOption
Indicates to use the default "yes/no" option for the user |
Fields inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
connectionID,
index,
kBroadcast,
kClient,
kClientDone,
kLocal,
kServer,
kServerDone,
networkStatus,
serialVersionUID |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
BStandardOutCE(Object source,
String message)
Cretaes a new BStandardOutCE to be sent to the plugin responsible for such events. |
|
BStandardOutCE(Object source,
String message,
boolean requiresResponse,
BCommandComplete completionObject)
Cretaes a new BStandardOutCE to be sent to the plugin responsible for such events. |
|
BStandardOutCE(Object source,
String message,
boolean requiresResponse,
int messageType,
BCommandComplete completionObject)
Cretaes a new BStandardOutCE to be sent to the plugin responsible for such events. |
Method Summary | |
String |
getMessage()
Gets the message to be displayed to the user. |
int |
getMessageType()
Gets the type of message being displayed. |
int |
getUserResponse()
When the completion object is called, calling this method will supply the users response to the message. |
int |
getUserResponseOption()
Gets the response the user should select if they want to respond in the affirmative. |
boolean |
isResponseRequired()
Indicates whether the user should be prompted for a response to the message displayed. |
void |
setMessageType(int messageType)
Sets the type of message being displayed. |
void |
setUserResponse(int userResponse)
Allows the handling module to set the response the user selected in the event so that the source of the event can receive the response. |
void |
setUserResponseOption(int userResponseOption)
This will set the options the user has to response to one of the predefined values provided in this class. |
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
decrementThreadCount,
doComplete,
doInit,
getAutoComplete,
getCompletionObject,
getCompletionStatus,
getConnectionID,
getIndex,
getNetworkStatus,
getPipe,
getUndoable,
setAutoComplete,
setCompletionObject,
setCompletionStatus,
setConnectionID,
setIndex,
setNetworkStatus,
setPipe,
setThreadCount,
setUndoable |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int kError
public static final int kInfo
public static final int kQuestion
public static final int kWarning
public static final int kDefaultOption
public static final int kYesNoOption
public static final int kYesNoCancelOption
public static final int kOkCancelOption
public static final int kYes
public static final int kNo
public static final int kOK
public static final int kCancel
Constructor Detail |
public BStandardOutCE(Object source, String message)
source
- The source of the eventmessage
- The message for the userpublic BStandardOutCE(Object source, String message, boolean requiresResponse, BCommandComplete completionObject)
source
- The source of the eventmessage
- The message for the userrequiresResponse
- True to get a response back, false otherwisecompletionObject
- The class to be told when the user respondspublic BStandardOutCE(Object source, String message, boolean requiresResponse, int messageType, BCommandComplete completionObject)
source
- The source of the eventmessage
- The message for the userrequiresResponse
- True to get a response back, false otherwisecompletionObject
- The class to be told when the user respondsMethod Detail |
public String getMessage()
public boolean isResponseRequired()
public int getUserResponseOption()
public void setUserResponseOption(int userResponseOption)
userResponseOption
- kDefaultOption, kOkCancelOption, kYesNoCancelOption, kYesNoOptionpublic void setUserResponse(int userResponse)
userResponse
- The response from the user kYes, kNo, kCancelpublic int getUserResponse()
public void setMessageType(int messageType)
messageType
- kInfo or kErrorpublic int getMessageType()
messageType
- kInfo or kError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |