public abstract class EntityPropertyViewer extends Object
Constructor and Description |
---|
EntityPropertyViewer(RadDataForm dataForm,
int layoutId,
int headerLayoutId,
int headerViewId,
int editorLayoutId,
int editorViewId,
EntityProperty property)
Creates a new instance of EntityPropertyViewer.
|
Modifier and Type | Method and Description |
---|---|
void |
applyParams(HashMap<String,Object> params) |
View |
getEditorView() |
View |
getHeaderView() |
LabelPosition |
getLabelPosition() |
int |
getLabelWidth() |
View |
imageView() |
boolean |
isEnabled() |
void |
load()
Initializes the editor with the associated property.
|
void |
loadPropertyValue() |
void |
notifyEntityPropertyChanged() |
void |
onDataFormEnabledChanged() |
EntityProperty |
property()
Gets the property associated with this viewer.
|
View |
rootLayout() |
void |
setEditorLayout(int value) |
void |
setEnabled(boolean enabled) |
void |
setHeaderLayout(int value) |
void |
setLabelPosition(LabelPosition labelPosition) |
void |
setLabelWidth(int labelWidth) |
void |
unload()
Frees the viewer from the associated property.
|
void |
updateLayoutWithElements(View rootLayout,
View headerView,
View editorView,
View imageView,
View validationView,
View validationIcon) |
public EntityPropertyViewer(RadDataForm dataForm, int layoutId, int headerLayoutId, int headerViewId, int editorLayoutId, int editorViewId, EntityProperty property)
dataForm
- The data form for this editor.layoutId
- The view layout id.headerViewId
- The id of the header view.editorViewId
- The id of the actual viewer view.property
- Te associated property.public void onDataFormEnabledChanged()
public void setEnabled(boolean enabled)
public LabelPosition getLabelPosition()
public void setLabelPosition(LabelPosition labelPosition)
public int getLabelWidth()
public void setLabelWidth(int labelWidth)
public boolean isEnabled()
public void setEditorLayout(int value)
public void setHeaderLayout(int value)
public void updateLayoutWithElements(View rootLayout, View headerView, View editorView, View imageView, View validationView, View validationIcon)
public void notifyEntityPropertyChanged()
public View rootLayout()
public View imageView()
public View getEditorView()
public View getHeaderView()
public EntityProperty property()
public void load()
public void unload()
public void loadPropertyValue()