|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.feedback.StatusFeedback
public class StatusFeedback
Feedback object to carry status messages to client. This class can be used by server-side emthods to push status messages to a client while an operation is being performed.
This class implements Externalizable as a performance improvement over Serializable.
If any of the elements in the textInserts array is itself an array, then the
implementation will use the multi-object WTMessage.getMessages(String,String,Object[])
API to generate a multi-object status message.
Supported API: true
Extendable: true
| Constructor Summary | |
|---|---|
StatusFeedback()
Public no-arg constructor required by Externalizable. |
|
StatusFeedback(String status)
Construct a new StatusFeedback object to carry the given status string. |
|
StatusFeedback(String resource_bundle,
String key)
Construct a new StatusFeedback object to carry a localizable status message. |
|
StatusFeedback(String resource_bundle,
String key,
Object[] params)
Construct a new StatusFeedback object to carry a localizable status message
that includes argument substitution. |
|
| Method Summary | |
|---|---|
void |
execute()
Perform feedback operation in client. |
void |
readExternal(ObjectInput input_stream)
Called during marshaling on the client side. |
void |
writeExternal(ObjectOutput output_stream)
Called during marshaling on the server side. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatusFeedback()
public StatusFeedback(String status)
StatusFeedback object to carry the given status string.
status - the status message
public StatusFeedback(String resource_bundle,
String key)
StatusFeedback object to carry a localizable status message.
resource_bundle - the name of the base resource bundle subclass containing
the localizable messagekey - the key associated with the localizable messageResourceBundle,
MessageFormat
public StatusFeedback(String resource_bundle,
String key,
Object[] params)
StatusFeedback object to carry a localizable status message
that includes argument substitution.
resource_bundle - the name of the base resource bundle subclass containing
the localizable messagekey - the key associated with the localizable messageparams - an optional set of objects to be formatted into
the localizable message textResourceBundle,
MessageFormat| Method Detail |
|---|
public void execute()
WTThread, the thread's status property is set to this objects status
value. If the calling thread is not an instance of WTThread, the
status is sent to the current thread's WTContext object's
showStatus messages, which typically displays it in a browser window's
status area.
execute in interface MethodFeedback
public void readExternal(ObjectInput input_stream)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput output_stream)
throws IOException
writeExternal in interface ExternalizableIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||