planetj.database.field
Class URLReferenceField

java.lang.Object
  |
  +--planetj.database.Field
        |
        +--planetj.database.field.StringOrNumberField
              |
              +--planetj.database.field.StringField
                    |
                    +--planetj.database.field.URLReferenceField
All Implemented Interfaces:
Cloneable, ICSVField, IExternallyNamed, IFDFObject, IGuarded, INamed, IXMLObject, Serializable

public class URLReferenceField
extends StringField

Wraps a field that is a url reference.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planetj.database.Field
Field.FieldLocation
 
Field Summary
 
Fields inherited from interface planetj.dataengine.security.IGuarded
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED
 
Constructor Summary
URLReferenceField()
           
 
Method Summary
 String getLinkStyleClass()
          Gets the HTML style class for the link
 String getNewWindowProperties()
          Gets the properties of the window to open the link's target in.
 String getNewWindowTarget()
          Gets the name of the window to open the link's target in.
 String getURL(ExecutingContext executingContext)
          Gets the URL for this URLReferenceField.
 String getURLPrefix(ExecutingContext ec)
          Gets the prefix which is prepended to this field's URL.
static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection sampleData)
          Checks to see the probability that sample data containing the column for the given FieldDescriptor contains a URLReferenceField.
 boolean isOpenInNewWindow()
          Check to see if this URL Reference should open in a new window.
 boolean isURLEncodingNeeded(ExecutingContext ec)
          Tests if the URL need to be encoded so that chars with special meaning like spaces and pound signs are replaced with encoded versions.
 void setLinkStyleClass(String style)
          Sets the HTML style class for the link
 void setNewWindowProperties(String target)
          Sets the properties of the window to open the link's target in.
 void setNewWindowTarget(String target)
          Sets the name of the window to open the link's target in.
 void setURLEncodingNeeded(boolean encodingNeeded)
          Sets if the URL need to be encoded so that chars with special meaning like spaces and pound signs are replaced with encoded versions.
 void setURLPrefix(String uRLPrefix)
          Sets the prefix which is prepended to this field's URL.
 
Methods inherited from class planetj.database.field.StringField
createObject, getCSVField, getExternalValidationKey, getValueAsBoolean, isNumber, isString, isValidLength, setValue
 
Methods inherited from class planetj.database.field.StringOrNumberField
getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueEqual, isValueGreaterThan, isValueLessThan
 
Methods inherited from class planetj.database.Field
addFieldClassForDataClass, addPropertyChangeListener, appendSQLColumnDefinition, appendSQLNameAndValue, appendSQLNameAndValue, clearValidationExceptions, cloneField, commitValue, concat, create, create, createFromDataType, divide, equals, executeGetterMethod, executeSetterMethod, getAssociationOperation, getAttribute, getAutoUpdateValue, getColumnSpan, getConfigProperty, getCurrentValue, getCurrentValueAsString, getDataSQLOperation, getDate, getDefaultExternalName, getDefaultUsageId, getDefaultValue, getDisplayHeight, getDisplayLength, getDisplayOrder, getDisplayValue, getDisplayWidth, getExternalName, getFDFData, getFieldClassForDataClass, getFieldDescriptor, getFieldDescriptorSource, getFieldIncrementor, getIndex, getLibrary, getLibraryName, getMaxLength, getMaxLength, getMetaDataSystemAlias, getName, getOldValue, getOldValueAsString, getPossibleValues, getPossibleValues, getPreferredDisplayLength, getPreferredJavaDataType, getRow, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQLColumnDefinition, getSQLColumnDefinition, getSQLNameAndDefaultValue, getSQLNameAndValue, getSQLNameAndValue, getSQLObject, getSQLType, getSQLType, getSQLTypeName, getSQLTypeName, getSQLValue, getSQLValue, getStaticAttribute, getStyleClass, getStyleClass, getSystem, getSystemAlias, getSystemURL, getTable, getTableName, getValidationExceptions, getValidationInvalidLengthString, getValidationInvalidMinLengthString, getValidationInvalidValueString, getValidationInvalidValueString, getValidationRequiredString, getValidValuesString, getValue, getValueAsByte, getValueAsDate, getValueAsDouble, getValueAsFloat, getValueAsFullLengthString, getValueAsInt, getValueAsLong, getValueAsNumber, getValueAsShort, getValueAsString, getXMLData, getXMLTag, handlePossibleValueOperation, hasMultipleStyleClasses, hasOldValue, hasPossibleValuesKeyClassOrOp, hasPossibleValuesSQLOperation, hasPossibleValuesSQLOperation, hasValue, isApplicable, isAuthorizedForEdit, isAuthorizedForRead, isAutoUpdateValue, isBoolean, isChanged, isContainsValue, isCurrentValueField, isCurrentValueString, isDate, isDecimalSQLType, isDecimalSQLType, isDefaultValue, isDerived, isDisplayable, isFieldContentDisplayable, isFieldValueDatabaseDefault, isFieldValueNotBlank, isFieldValueNull, isFileUpload, isGuarded, isHelpTextPresent, isInitialized, isNumeric, isNumericSQLType, isNumericSQLType, isPassword, isPhysical, isPossibleValuesSearch, isReadOnly, isReadOnly, isRequired, isRequired, isRequiredOnSearch, isSkeleton, isStringSQLType, isStringSQLType, isTime, isUpdateable, isValidationRequiredForAutoPopulate, isValidLength, isValidMinLength, isValidRequired, isValidRequired, isValidValue, isValidValue, isValueEqualToString, lessThan, removePropertyChangeListener, rollbackChanges, setAttribute, setChanged, setClonedValues, setDate, setFieldContentDisplayable, setFieldDescriptor, setInitialValue, setInitialValueAsString, setMaxLength, setName, setRow, setSavepoint, setSQLType, setSQLTypeName, setStaticAttribute, setTable, setValue, setValue, setValueAsString, setValueToDefault, toString, toUpperCase, validate, validate, validate
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLReferenceField

public URLReferenceField()
Method Detail

getLinkStyleClass

public String getLinkStyleClass()
Gets the HTML style class for the link


getNewWindowProperties

public String getNewWindowProperties()
Gets the properties of the window to open the link's target in. This only applies if the target is being opened in a new window


getNewWindowTarget

public String getNewWindowTarget()
Gets the name of the window to open the link's target in. This only applies if the target is being opened in a new window


getURL

public String getURL(ExecutingContext executingContext)
              throws CMException
Gets the URL for this URLReferenceField.

CMException

getURLPrefix

public String getURLPrefix(ExecutingContext ec)
Gets the prefix which is prepended to this field's URL. By default, the prefix is "http://"


guessFieldClassProbability

public static short guessFieldClassProbability(FieldDescriptorRow pFDRow,
                                               RowCollection sampleData)
Checks to see the probability that sample data containing the column for the given FieldDescriptor contains a URLReferenceField. This method takes an educated guess.


isOpenInNewWindow

public boolean isOpenInNewWindow()
Check to see if this URL Reference should open in a new window.


isURLEncodingNeeded

public boolean isURLEncodingNeeded(ExecutingContext ec)
Tests if the URL need to be encoded so that chars with special meaning like spaces and pound signs are replaced with encoded versions. If these chars are present in the link and you want them to stay there, this value should be set to false


setLinkStyleClass

public void setLinkStyleClass(String style)
Sets the HTML style class for the link


setNewWindowProperties

public void setNewWindowProperties(String target)
Sets the properties of the window to open the link's target in. This only applies if the target is being opened in a new window


setNewWindowTarget

public void setNewWindowTarget(String target)
Sets the name of the window to open the link's target in. This only applies if the target is being opened in a new window


setURLEncodingNeeded

public void setURLEncodingNeeded(boolean encodingNeeded)
Sets if the URL need to be encoded so that chars with special meaning like spaces and pound signs are replaced with encoded versions. If these chars are present in the link and you want them to stay there, this value should be set to false


setURLPrefix

public void setURLPrefix(String uRLPrefix)
Sets the prefix which is prepended to this field's URL. By default, the prefix is "http://"