|
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.GmsRtViewDsConnInfo
public class GmsRtViewDsConnInfo
The GmsRtViewDsConnInfo class contains the information to create a named connection to a datasource.
To customize this class for a given application, add named fields to the Exemplar to hold the information needed. ConnInfo objects, with their custom fields, are created and edited via the Application Options dialog.
| Field Summary |
|---|
| Fields inherited from class com.sl.gmsjrtview.GmsRtViewDataObject |
|---|
name |
| Constructor Summary | |
|---|---|
GmsRtViewDsConnInfo(java.lang.String name,
GmsRtViewDs owner)
Create a ConnInfo object with the specified parameters. |
|
| 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 |
boolean |
equals(java.lang.Object o)
Compares this ConnInfo object to the specified object. |
java.lang.String |
getConnString()
Returns a string representation of the ConnInfo object. |
java.lang.String |
getDataField(java.lang.String fieldName)
Return a String containing the value of the named field. |
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. |
GmsRtViewDs |
getOwner()
Returns the datasource owning this ConnInfo object. |
long |
getRetryDelay()
Gets the amount of time to delay when retrying a connection attempt. |
int |
hashCode()
Returns a hash code for this ConnInfo object. |
boolean |
isConnected()
Tests if this connection is connected. |
boolean |
isRetryDelayed()
Tests if there is a nonzero retry delay time. |
boolean |
isScrambledField(java.lang.String name)
Test if the named field a scrambled field. |
void |
setDisconnected()
Marks this connInfo object as disconnected. |
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 |
setRetryDelay(long retryDelay)
Sets the (amount of time to delay when retrying a connection attempt. |
| Methods inherited from class com.sl.gmsjrtview.GmsRtViewDataObject |
|---|
addListener, applyDataToListener, applyDataToListeners, getColumnNames, getColumnNames, getData, getDataField, getListeners, getName, getVarNames, isEmpty, removeListener, removeListener, toString, updateDataField |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GmsRtViewDsConnInfo(java.lang.String name,
GmsRtViewDs owner)
name - the name of the connection. This is used in the Attach
to Data dialog.| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare this ConnInfo object against.
public java.lang.String getConnString()
public GmsRtViewDs getOwner()
public final long getRetryDelay()
public int hashCode()
hashCode in class java.lang.Objectpublic final boolean isConnected()
public final boolean isRetryDelayed()
public final void setDisconnected()
public boolean setFieldValue(java.lang.String fieldName,
java.lang.String fieldValue)
fieldName - the name of the fieldfieldValue - the value of the field
public final void setRetryDelay(long retryDelay)
retryDelay - the retry delay time in in milliseconds.public 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 | |||||||