|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataViewConfig
Configuration of the DataView.
| Method Summary | |
|---|---|
void |
addMetadataName(String mdname)
|
DataView |
createDataView(String viewId)
Creates an instance of the DataView associated to this ViewConfig. |
String |
getControlClass(ControlName ui_name)
Gets the class name that represents the UI element identified by ui_name |
Map<String,Object> |
getControlDefaults()
Get the defaults of the fields, as specified in the View configuration. |
ControlName |
getControlName(FieldName field_name)
Gets the name that the given field_name would have in this User Interface. |
Iterator<ControlName> |
getControlNames()
Gets the names of the UI entity fields associated to UI items. |
FieldName |
getFieldName(ControlName ui_name)
Gets the field name associated to the given User Interface object name. |
LocalLabels |
getLocalLabels()
Gets the localized labels for the current view locale. |
String |
getViewClass()
Gets the name of the DataView class associated to this ViewConfig. |
boolean |
isMetadataName(String name)
Checks whether the given name is one of the datasource metadata names associated to the view. |
String |
pickMetadataName()
|
void |
setLocalLabels(LocalLabels labels)
Sets the localized labels for the current view locale. |
void |
setViewClass(String classname)
Sets the name of the class used to produce the DataView |
| Method Detail |
|---|
ControlName getControlName(FieldName field_name)
If there are more than one, returns any of them. If there is none, should return null (some basic implementations may always return a valid control name).
field_name - the (data) field name.
FieldName getFieldName(ControlName ui_name)
String getControlClass(ControlName ui_name)
Iterator<ControlName> getControlNames()
void setViewClass(String classname)
classname - Name of the DataView-inherited class associated to this
ViewConfig.String getViewClass()
void addMetadataName(String mdname)
boolean isMetadataName(String name)
String pickMetadataName()
DataView createDataView(String viewId)
throws DataViewException
viewId - the name of the view.
DataViewExceptionvoid setLocalLabels(LocalLabels labels)
labels - the local labels.LocalLabels getLocalLabels()
Map<String,Object> getControlDefaults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||