|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestBoxBase.RestSuggestCallback
public class MultivalueSuggestBoxBase.RestSuggestCallback
A custom callback that has the original SuggestOracle.Request and SuggestOracle.Callback
Method Summary | |
---|---|
void |
error(RESTException e)
Called when the REST endpoint return successfully with an error message in the payload. |
void |
error(java.lang.String message)
Called when there is an unexpected error. |
void |
success(MultivalueSuggestBoxBase.OptionResultSet optResults)
Called when your REST call succeeds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void success(MultivalueSuggestBoxBase.OptionResultSet optResults)
RESTObjectCallBack
Called when your REST call succeeds.
Success is defined as a call that contacted the server and the server returned a valid JSON response.
success
in interface RESTObjectCallBack<MultivalueSuggestBoxBase.OptionResultSet>
optResults
- The marshalled object from the REST callpublic void error(java.lang.String message)
RESTObjectCallBack
Called when there is an unexpected error.
These errors are results like network failures and other reasons the server can't be contacted. This method is also called when the server returns a result that isn't valid JSON data.
error
in interface RESTObjectCallBack<MultivalueSuggestBoxBase.OptionResultSet>
message
- The error message from the serverpublic void error(RESTException e)
RESTObjectCallBack
Called when the REST endpoint return successfully with an error message in the payload.
This method is called when the server returned valid JSON in the format of a Spiffy UI RESTException
error
in interface RESTObjectCallBack<MultivalueSuggestBoxBase.OptionResultSet>
e
- the RESTException returned from the serverRESTException
|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |