|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.ui.DataViewMap
public class DataViewMap
A Map-based DataViewConfig implementation.
| Constructor Summary | |
|---|---|
DataViewMap()
|
|
| Method Summary | |
|---|---|
void |
addMetadataName(String mdname)
|
DataView |
createDataView(String viewname)
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 control name associated to the given entity. |
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 control 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. |
void |
loadDefaultConfig(Iterator<FieldName> names)
Configure a basic DataViewConfig with UI name == field name, and the default UI class. |
static void |
main(String[] args)
Testdrive method used to read a UI spec from an XML file, and print it again. |
void |
parseXml(InputStream is)
Fill this view config with an XML descriptor. |
String |
pickMetadataName()
|
void |
putFieldView(FieldName fieldname,
ControlName uiname,
String uiclassname)
Adds a fieldname/controlname/classname set to this view map. |
void |
setDefaultUIClass(String classname)
|
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 |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataViewMap()
| Method Detail |
|---|
public void loadDefaultConfig(Iterator<FieldName> names)
public void parseXml(InputStream is)
throws DataViewException,
IOException
is - the Stream with the XML descriptor.
DataViewException - if anything wrong was found in the descriptor.
IOException - for I/O error when reading the descriptor.
public void putFieldView(FieldName fieldname,
ControlName uiname,
String uiclassname)
fieldname - the name of the field being aded.uiname - the name of the user interface control being aded.uiclassname - the name of the UI control class.public void setDefaultUIClass(String classname)
public ControlName getControlName(FieldName field_name)
If there is none, returns null.
getControlName in interface DataViewConfigfield_name - the entity name.
public FieldName getFieldName(ControlName ui_name)
getFieldName in interface DataViewConfigui_name - the control name.
public String getControlClass(ControlName ui_name)
DataViewConfig
getControlClass in interface DataViewConfigpublic Iterator<ControlName> getControlNames()
DataViewConfig
getControlNames in interface DataViewConfigpublic Map<String,Object> getControlDefaults()
DataViewConfig
getControlDefaults in interface DataViewConfigpublic String getViewClass()
DataViewConfig
getViewClass in interface DataViewConfigpublic void setViewClass(String classname)
DataViewConfig
setViewClass in interface DataViewConfigclassname - Name of the DataView-inherited class associated to this
ViewConfig.
public DataView createDataView(String viewname)
throws DataViewException
DataViewConfig
createDataView in interface DataViewConfigviewname - the name of the view.
DataViewExceptionpublic void setLocalLabels(LocalLabels labels)
DataViewConfig
setLocalLabels in interface DataViewConfiglabels - the local labels.public LocalLabels getLocalLabels()
DataViewConfig
getLocalLabels in interface DataViewConfigpublic void addMetadataName(String mdname)
addMetadataName in interface DataViewConfigpublic boolean isMetadataName(String name)
DataViewConfig
isMetadataName in interface DataViewConfigpublic String pickMetadataName()
pickMetadataName in interface DataViewConfigpublic String toString()
toString in class Objectpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||