public final class LiveDataAdapter extends TextEncodableAdapter
Modifier | Constructor and Description |
---|---|
protected |
LiveDataAdapter() |
Modifier and Type | Method and Description |
---|---|
static void |
action(Object target,
FieldTransfer ft,
Editor ed)
This implements the action() method in FieldListener.
|
static void |
fieldChanged(Object target,
FieldTransfer ft,
Editor ed)
This implements the fieldChanged() method in FieldListener.
|
static void |
fieldEvent(Object target,
FieldTransfer ft,
Editor ed,
Object event)
This implements the fieldEvent() method in FieldListener.
|
static Editor |
getEditor(Object target,
int options)
This creates a new Editor Object - you should not override this method,
rather you should override the addToPanel() method to provide a custom
Editor for your LiveData.
|
static boolean |
isNamed(Object target,
String name)
By default this does a direct comparison between name and getName().
|
decode, decodeFields, decodeFields, encode, encodeFields, encodeFields, textDecode, textEncode
public static void action(Object target, FieldTransfer ft, Editor ed)
target
- The object being adapted.ft
- The FieldTransfer object representing the changed field.ed
- The Editor from which the event came.public static void fieldChanged(Object target, FieldTransfer ft, Editor ed)
If the field is of type ewe.ui.MenuItem then the method action(String name,Editor ed) is called with the "name" parameter being set to the "action" member of the selected MenuItem.
Otherwise the fieldChanged(String fieldName,Editor ed) method is called with the fieldName of the FieldTransfer object.
ft
- The FieldTransfer object representing the changed field.ed
- The Editor from which the event came.public static void fieldEvent(Object target, FieldTransfer ft, Editor ed, Object event)
public static Editor getEditor(Object target, int options)
public static boolean isNamed(Object target, String name)
Named.isNamed(java.lang.String)