|
SL-GMS Enterprise RTView Customization | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sl.gmsjrtview.GmsRtViewDataObject
com.sl.gmsjrtviewds.GmsRtViewDataObject
public class GmsRtViewDataObject
The GmsRtViewDataObject class implements a data attachment between an Enterprise RTView object and a custom datasource. Data attachments are made to attributes of graphical objects in the Enterprise RTView Builder.
This class allows an arbitrary number of named fields to be
defined in order to specify a data attachment. These fields are
defined on an exemplar data object during datasource initialization,
in the method
GmsRtViewDs.initDataObjectExemplar().
All subsequent data objects are created with the fields defined
on this exemplar.
Fields are added to the exemplar using the
addField(String) or
addField(String, String)
methods. The second method allows the application to specify the
DialogFieldType
used to represent the field in the Attach To Data Dialog of the
Enterprise RTView Builder.
Two additonal methods are provided to add scrambled fields,
addScrambledField(String)
and
addScrambledField(String, String).
Scrambled fields are identical to other fields except that they are
not serialized to Enterprise RTView Display files in plain-text.
The serialized form of the data object is known as a dsstring. The dsstring for this class uses the following pattern:
dskey {field1name=field1value field2name=field2value}
where dskey is the datasource key, followed by
a series of fields enclosed in braces. Each field has a URL-encoded
field name followed by an equals sign and a URL-encoded (and optionally
scrambled) field value.
Note that field names may not begin with two underscore characters, as these field names are reserved for use by Enterprise RTView.
| Field Summary | |
|---|---|
GmsRtViewDs |
owner
|
| Fields inherited from class com.sl.gmsjrtview.GmsRtViewDataObject |
|---|
name |
| Method Summary | |
|---|---|
boolean |
addField(java.lang.String name)
Add a new field to the object. |
boolean |
addField(java.lang.String name,
java.lang.String dialogFieldType)
Add a new field to the object and specifies the user interface element that will be used to represent the field in a dialog. |
boolean |
addScrambledField(java.lang.String name)
Add a new scrambled field to the object. |
boolean |
addScrambledField(java.lang.String name,
java.lang.String dialogFieldType)
Add a new scrambled field to the object and specifies the user interface element that will be used to represent the field in a dialog. |
protected static java.util.LinkedHashMap |
copyFieldAttrs(java.util.LinkedHashMap exemplarFieldAttrs)
Copy field attrs |
java.lang.String |
getColumnFilterColumnNames()
Return a semicolon separated list of column names that will be used for column filtering. |
java.lang.String |
getDataField(java.lang.String fieldName)
Return a String containing the value of the named field. |
java.lang.String |
getDataKey()
Return the data key for this object. |
java.lang.String[] |
getDataKeyColumnFields()
Return the names of the fields in the dsstring that uniquely identify a data table. |
java.lang.String |
getDsString()
Return a string representation of the data object. |
java.util.List |
getFieldChoices(java.lang.String fieldName)
Return a List of possible values for the named field when displayed in a dialog. |
java.util.List |
getFieldNames()
Return a List containing the names of all defined fields. |
java.lang.String |
getFieldSubstitutionValue(java.lang.String fieldName)
Return the value of the named field with available substitutions applied. |
DialogFieldState |
getFieldUIState(java.lang.String fieldName)
Return a DialogFieldState value representing the user interface state of the named field when displayed in a dialog. |
DataFieldValidity |
getFieldValidity(java.lang.String fieldName)
Return a DataFieldValidity value representing the validity of the value in the named field. |
java.lang.String |
getFieldValue(java.lang.String fieldName)
Return a String containing the value of the named field. |
java.lang.String[] |
getIndexColumnFields()
Get the names of fields that identify the index columns for this data object. |
java.lang.String |
getRowFilterColumnName()
Return the name of the column that will be used for row filtering. |
java.lang.String |
getRowFilterValue()
Return the value to match in the column used for row filtering. |
boolean |
isScrambledField(java.lang.String name)
Test if the named field a scrambled field. |
boolean |
isUpdateModeEnabled()
Is the update mode (and thus update mode fields) enabled? |
void |
setAvailableColumns(java.util.Set availableColumns)
Set the set of column names available for row and column filtering. |
void |
setColumnFilterColumnNames(java.lang.String columnNames)
Set the names of the columns that will be used for column filtering. |
void |
setDataKeyColumnFields(java.lang.String[] fieldNames)
Set the names of the fields in the dsstring that uniquely identify a data table. |
void |
setFieldChoices(java.lang.String fieldName,
java.util.Set choices)
Set the possible values for the named field when displayed in a dialog. |
void |
setFieldUIState(java.lang.String fieldName,
DialogFieldState state)
Set the user interface state of the named field when displayed in a dialog. |
void |
setFieldValidity(java.lang.String fieldName,
DataFieldValidity validity)
Set the validity of the value in the named field. |
boolean |
setFieldValue(java.lang.String fieldName,
java.lang.String fieldValue)
Set the value of the named field. |
void |
setIndexColumnFields(java.lang.String[] fieldNames)
Set the names of fields that identify the index columns for this data object. |
void |
setRowFilterColumnName(java.lang.String columnName)
Set the name of the column that will be used for row filtering. |
void |
setRowFilterValue(java.lang.String value)
Set the value to match in the column used for row filtering. |
void |
setUpdateModeEnabled(boolean enabled)
Set the update mode fields enabled (or disabled) |
java.lang.String |
toString()
|
| Methods inherited from class com.sl.gmsjrtview.GmsRtViewDataObject |
|---|
addListener, applyDataToListener, applyDataToListeners, getColumnNames, getColumnNames, getData, getDataField, getListeners, getName, getVarNames, isEmpty, removeListener, removeListener, updateDataField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sl.gmsjrtview.GmsRtViewDataObjectType |
|---|
addListener, applyDataToListener, applyDataToListeners, getName, isEmpty, removeListener, removeListener |
| Methods inherited from interface com.sl.gmsjrt.GmsDataObjectType |
|---|
getData, getDataField |
| Methods inherited from interface java.util.Comparator |
|---|
compare, equals |
| Field Detail |
|---|
public GmsRtViewDs owner
| Method Detail |
|---|
public java.lang.String getColumnFilterColumnNames()
public java.lang.String getDataKey()
public java.lang.String[] getDataKeyColumnFields()
public java.lang.String getDsString()
public java.lang.String[] getIndexColumnFields()
public java.lang.String getRowFilterColumnName()
public java.lang.String getRowFilterValue()
public boolean isUpdateModeEnabled()
public void setAvailableColumns(java.util.Set availableColumns)
availableColumns - The set of column names available
for row and column filtering.public void setColumnFilterColumnNames(java.lang.String columnNames)
columnNames - column names used for column filteringpublic void setDataKeyColumnFields(java.lang.String[] fieldNames)
fieldNames - the names of the data key column fields
public boolean setFieldValue(java.lang.String fieldName,
java.lang.String fieldValue)
fieldName - the name of the fieldfieldValue - the value of the field
public void setIndexColumnFields(java.lang.String[] fieldNames)
fieldNames - the names of the index column fieldspublic void setRowFilterColumnName(java.lang.String columnName)
columnName - the name of the row filter columnpublic void setRowFilterValue(java.lang.String value)
value - the value to match in the column used for row filteringpublic void setUpdateModeEnabled(boolean enabled)
enabled - public java.lang.String toString()
toString in class com.sl.gmsjrtview.GmsRtViewDataObjectpublic boolean addField(java.lang.String name)
name - the name of the field
public boolean addField(java.lang.String name,
java.lang.String dialogFieldType)
name - the name of the field.dialogFieldType - how the field will be displayed in a dialog.
public boolean addScrambledField(java.lang.String name)
name - The name of the field to add.
public boolean addScrambledField(java.lang.String name,
java.lang.String dialogFieldType)
name - The name of the fielddialogFieldType - how the field will be displayed in a dialog.
protected static java.util.LinkedHashMap copyFieldAttrs(java.util.LinkedHashMap exemplarFieldAttrs)
exemplarFieldAttrs -
public java.lang.String getDataField(java.lang.String fieldName)
getDataField in interface com.sl.gmsjrt.GmsDataObjectTypegetDataField in class com.sl.gmsjrtview.GmsRtViewDataObjectfieldName - the name of the field
public java.util.List getFieldChoices(java.lang.String fieldName)
fieldName - the name of the field to return
public java.util.List getFieldNames()
public java.lang.String getFieldSubstitutionValue(java.lang.String fieldName)
fieldName - the name of the field to return
public DialogFieldState getFieldUIState(java.lang.String fieldName)
fieldName - the name of the field to return
public DataFieldValidity getFieldValidity(java.lang.String fieldName)
fieldName - the name of the field to return
public java.lang.String getFieldValue(java.lang.String fieldName)
fieldName - the name of the field
public boolean isScrambledField(java.lang.String name)
name - The name of the field
public void setFieldChoices(java.lang.String fieldName,
java.util.Set choices)
fieldName - the name of the field to returnchoices - a List of possible values for the named field
public void setFieldUIState(java.lang.String fieldName,
DialogFieldState state)
fieldName - the name of the field to returnstate - a DialogFieldState value representing the user interface state
of the named field:
public void setFieldValidity(java.lang.String fieldName,
DataFieldValidity validity)
fieldName - the name of the field to returnvalidity - a DataFieldValidity value representing the validity
of the value of the named field:
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||