|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.source.field.BaseSourceField
@StableMinor(version="6.1", sinceVersion="4.0") public abstract class BaseSourceField
The base implementation for a source field.
Field Summary | |
---|---|
protected IConverter |
converter
|
protected ISourceFieldDataType |
dataType
|
protected java.lang.Object |
defaultValue
|
protected org.w3c.dom.Node |
definitionNode
|
protected boolean |
display
|
protected boolean |
doOptionLookup
|
protected boolean |
externalData
|
protected boolean |
getData
|
protected java.lang.String |
id
|
protected boolean |
introduction
|
protected boolean |
keywords
|
protected boolean |
localize
|
protected java.lang.Object |
maximumValue
|
protected java.lang.Object |
minimumValue
|
protected java.lang.String |
name
|
protected boolean |
parentId
|
protected java.lang.String |
pattern
|
protected boolean |
primaryName
|
protected boolean |
readOnly
|
protected boolean |
required
|
protected boolean |
requiredWhenVisible
|
protected Source |
source
|
Constructor Summary | |
---|---|
BaseSourceField()
|
Method Summary | |
---|---|
protected java.lang.Object |
convertToFieldValueClass(java.lang.Object value,
java.util.Locale locale,
java.lang.String pattern)
Converts the given object to the this field's value class. |
protected IConverter |
createConverter()
Factory method that creates a converter instance for this field. |
protected ISourceFieldDataType |
createDataType()
Factory method that creates a data type instance for this field. |
IConverter |
getConverter()
Returns the default converter for this field's values. |
ISourceFieldDataType |
getDataType()
|
org.w3c.dom.Node |
getDefaultControlDefinition()
Returns the default control definition to be used for this field. |
org.w3c.dom.Node |
getDefaultInputControlDefinition()
Returns the default input control definition to be used for editing this field's value. |
java.lang.Object |
getDefaultValue()
|
org.w3c.dom.Node |
getDefaultViewControlDefinition()
Returns the default control definition to be used for viewing this field's value. |
org.w3c.dom.Node |
getDefinitionNode()
|
java.lang.String |
getId()
|
java.lang.Object |
getMaximumValue()
|
java.lang.Object |
getMinimumValue()
|
java.lang.String |
getName()
|
java.lang.Class<?> |
getValueClass()
Returns the class this field's possible values are assignable to. |
void |
init(Source source,
org.w3c.dom.Node fieldNode)
Initializes this source field. |
boolean |
isDisplay()
|
boolean |
isExternalData()
|
boolean |
isGetData()
|
boolean |
isIntroduction()
|
boolean |
isKeywords()
|
boolean |
isLocalize()
|
boolean |
isParentId()
|
boolean |
isPrimaryName()
|
boolean |
isReadOnly()
Returns true if this field is read-only and should not be rendered editable. |
boolean |
isRequired()
|
boolean |
isRequiredWhenVisible()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Source source
protected org.w3c.dom.Node definitionNode
protected java.lang.String id
protected java.lang.String name
protected boolean primaryName
protected boolean introduction
protected boolean keywords
protected boolean display
protected boolean externalData
protected boolean getData
protected boolean required
protected boolean requiredWhenVisible
protected boolean parentId
protected boolean doOptionLookup
protected boolean readOnly
protected ISourceFieldDataType dataType
protected java.lang.Object defaultValue
protected java.lang.String pattern
protected IConverter converter
protected java.lang.Object minimumValue
protected java.lang.Object maximumValue
protected boolean localize
Constructor Detail |
---|
public BaseSourceField()
Method Detail |
---|
public boolean isIntroduction()
isIntroduction
in interface ISourceField
public boolean isKeywords()
isKeywords
in interface ISourceField
public ISourceFieldDataType getDataType()
getDataType
in interface ISourceField
public java.lang.String getId()
getId
in interface ISourceField
public java.lang.String getName()
getName
in interface ISourceField
public boolean isDisplay()
isDisplay
in interface ISourceField
public boolean isLocalize()
public boolean isPrimaryName()
isPrimaryName
in interface ISourceField
public boolean isExternalData()
isExternalData
in interface ISourceField
public boolean isGetData()
isGetData
in interface ISourceField
public boolean isRequired()
isRequired
in interface ISourceField
public boolean isRequiredWhenVisible()
isRequiredWhenVisible
in interface ISourceField
public boolean isParentId()
isParentId
in interface ISourceField
public boolean isReadOnly()
ISourceField
isReadOnly
in interface ISourceField
public java.lang.Object getDefaultValue()
getDefaultValue
in interface ISourceField
public org.w3c.dom.Node getDefinitionNode()
getDefinitionNode
in interface ISourceField
public java.lang.Object getMinimumValue()
getMinimumValue
in interface ISourceField
public java.lang.Object getMaximumValue()
getMaximumValue
in interface ISourceField
public void init(Source source, org.w3c.dom.Node fieldNode) throws PortalException
ISourceField
init
in interface ISourceField
source
- the source this field will belong to.fieldNode
- the xml node that contains this field's definition.
PortalException
- if this field could not be initialized.protected ISourceFieldDataType createDataType() throws PortalException
init(Source, Node)
.
PortalException
protected IConverter createConverter() throws PortalException
init(Source, Node)
.
PortalException
public IConverter getConverter()
ISourceField
getConverter
in interface ISourceField
protected java.lang.Object convertToFieldValueClass(java.lang.Object value, java.util.Locale locale, java.lang.String pattern) throws PortalException
value
- the object to be converted.locale
- the locale to be used in conversion.pattern
- the pattern to be used in conversion.
PortalException
#getValueClass()}
public java.lang.Class<?> getValueClass()
This base implemetation defaults to this field's data type value class.
getValueClass
in interface ISourceField
IDouiDataType.getValueClass()
public org.w3c.dom.Node getDefaultControlDefinition() throws PortalException
ISourceField
getDefaultControlDefinition
in interface ISourceField
PortalException
ISourceField.getDefaultInputControlDefinition()
,
ISourceField.getDefaultViewControlDefinition()
public org.w3c.dom.Node getDefaultInputControlDefinition() throws PortalException
ISourceField
getDefaultInputControlDefinition
in interface ISourceField
PortalException
ISourceField.getDefaultControlDefinition()
,
ISourceField.getDefaultViewControlDefinition()
public org.w3c.dom.Node getDefaultViewControlDefinition() throws PortalException
ISourceField
getDefaultViewControlDefinition
in interface ISourceField
PortalException
ISourceField.getDefaultInputControlDefinition()
,
ISourceField.getDefaultControlDefinition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |