Package de.mhus.lib.form
Class DummyDataSource
- java.lang.Object
-
- de.mhus.lib.core.MLog
-
- de.mhus.lib.form.FormControlAdapter
-
- de.mhus.lib.form.DummyDataSource
-
- All Implemented Interfaces:
ILog,DataSource,FormControl
public class DummyDataSource extends FormControlAdapter implements DataSource
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.form.FormControlAdapter
form
-
Fields inherited from interface de.mhus.lib.form.DataSource
CAPTION, DESCRIPTION, EDITABLE, EDITOR_EDITABLE, ENABLED, ITEMS, VALUE, VISIBLE
-
-
Constructor Summary
Constructors Constructor Description DummyDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachedForm(MForm form)Call if the control is added to the form.voidfocus(UiComponent component)The component gets focus.booleangetBoolean(UiComponent component, String name, boolean def)intgetInt(UiComponent component, String name, int def)DataSourcegetNext()ObjectgetObject(UiComponent component, String name, Object def)ObjectgetObject(String name, Object def)StringgetString(UiComponent component, String name, String def)booleannewValue(UiComponent component, Object newValue)Set a new value to the component.voidreverted(UiComponent component)The value was reverted.voidsetObject(UiComponent component, String name, Object value)voidvalueSet(UiComponent component)The method is called after every value update.-
Methods inherited from class de.mhus.lib.form.FormControlAdapter
doAction, newValueError, setup
-
-
-
-
Method Detail
-
getBoolean
public boolean getBoolean(UiComponent component, String name, boolean def)
- Specified by:
getBooleanin interfaceDataSource
-
getInt
public int getInt(UiComponent component, String name, int def)
- Specified by:
getIntin interfaceDataSource
-
getString
public String getString(UiComponent component, String name, String def)
- Specified by:
getStringin interfaceDataSource
-
getObject
public Object getObject(UiComponent component, String name, Object def)
- Specified by:
getObjectin interfaceDataSource
-
getObject
public Object getObject(String name, Object def)
- Specified by:
getObjectin interfaceDataSource
-
setObject
public void setObject(UiComponent component, String name, Object value)
- Specified by:
setObjectin interfaceDataSource
-
focus
public void focus(UiComponent component)
Description copied from interface:FormControlThe component gets focus.- Specified by:
focusin interfaceFormControl- Overrides:
focusin classFormControlAdapter
-
newValue
public boolean newValue(UiComponent component, Object newValue)
Description copied from interface:FormControlSet a new value to the component. Return true if the value is valid.- Specified by:
newValuein interfaceFormControl- Overrides:
newValuein classFormControlAdapter- Returns:
- If the value was accepted.
-
reverted
public void reverted(UiComponent component)
Description copied from interface:FormControlThe value was reverted.- Specified by:
revertedin interfaceFormControl- Overrides:
revertedin classFormControlAdapter
-
attachedForm
public void attachedForm(MForm form)
Description copied from interface:FormControlCall if the control is added to the form. Remember the form object.- Specified by:
attachedFormin interfaceFormControl- Overrides:
attachedFormin classFormControlAdapter
-
getNext
public DataSource getNext()
- Specified by:
getNextin interfaceDataSource
-
valueSet
public void valueSet(UiComponent component)
Description copied from interface:FormControlThe method is called after every value update.- Specified by:
valueSetin interfaceFormControl- Overrides:
valueSetin classFormControlAdapter
-
-