public class TinyWebDB extends AndroidNonvisibleComponent implements Component
form
ACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF
Constructor and Description |
---|
TinyWebDB(ComponentContainer container)
Creates a new TinyWebDB component.
|
Modifier and Type | Method and Description |
---|---|
void |
GetValue(java.lang.String tag)
GetValue asks the Web service to get the value stored under the given tag.
|
void |
GotValue(java.lang.String tagFromWebDB,
java.lang.Object valueFromWebDB)
Indicates that a GetValue server request has succeeded.
|
java.lang.String |
ServiceURL()
Returns the URL of the web service database.
|
void |
ServiceURL(java.lang.String url)
Specifies the URL of the Web service.
|
void |
StoreValue(java.lang.String tag,
java.lang.Object valueToStore)
Asks the Web service to store the given value under the given tag
|
void |
ValueStored()
Event indicating that a StoreValue server request has succeeded.
|
void |
WebServiceError(java.lang.String message)
Indicates that the communication with the Web service signaled an error
|
getDispatchDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDispatchDelegate
public TinyWebDB(ComponentContainer container)
container
- the Form that this component is contained in.public java.lang.String ServiceURL()
public void ServiceURL(java.lang.String url)
public void StoreValue(java.lang.String tag, java.lang.Object valueToStore)
tag
- The tag to usevalueToStore
- The value to store. Can be any type of value (e.g.
number, text, boolean or list).public void ValueStored()
public void GetValue(java.lang.String tag)
tag
- The tag whose value is to be retrieved.public void GotValue(java.lang.String tagFromWebDB, java.lang.Object valueFromWebDB)
valueFromWebDB
- the value that was returned. Can be any type of value
(e.g. number, text, boolean or list).public void WebServiceError(java.lang.String message)
message
- the error message