|
||||||||||
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="5.5", sinceVersion="4.0") public abstract class BaseSourceField
The base implementation for a source field.
Field Summary | |
---|---|
protected IConverter |
converter
|
protected ISourceFieldDataType |
dataType
|
protected Object |
defaultValue
|
protected Node |
definitionNode
|
protected boolean |
display
|
protected boolean |
doOptionLookup
|
protected boolean |
externalData
|
protected boolean |
getData
|
protected String |
id
|
protected boolean |
introduction
|
protected boolean |
keywords
|
protected boolean |
localize
|
protected Object |
maximumValue
|
protected Object |
minimumValue
|
protected String |
name
|
protected boolean |
parentId
|
protected String |
pattern
|
protected boolean |
primaryName
|
protected boolean |
readOnly
|
protected boolean |
required
|
protected boolean |
requiredWhenVisible
|
protected Source |
source
|
Constructor Summary | |
---|---|
BaseSourceField()
|
Method Summary | |
---|---|
protected Object |
convertToFieldValueClass(Object value,
Locale locale,
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()
|
Node |
getDefaultControlDefinition()
Returns the default control definition to be used for this field. |
Node |
getDefaultInputControlDefinition()
Returns the default input control definition to be used for editing this field's value. |
Object |
getDefaultValue()
|
Node |
getDefaultViewControlDefinition()
Returns the default control definition to be used for viewing this field's value. |
Node |
getDefinitionNode()
|
String |
getId()
|
Object |
getMaximumValue()
|
Object |
getMinimumValue()
|
String |
getName()
|
Class<?> |
getValueClass()
Returns the class this field's possible values are assignable to. |
void |
init(Source source,
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 Node definitionNode
protected String id
protected 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 Object defaultValue
protected String pattern
protected IConverter converter
protected Object minimumValue
protected 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 String getId()
getId
in interface ISourceField
public 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 Object getDefaultValue()
getDefaultValue
in interface ISourceField
public Node getDefinitionNode()
getDefinitionNode
in interface ISourceField
public Object getMinimumValue()
getMinimumValue
in interface ISourceField
public Object getMaximumValue()
getMaximumValue
in interface ISourceField
public void init(Source source, 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 Object convertToFieldValueClass(Object value, Locale locale, 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 Class<?> getValueClass()
This base implemetation defaults to this field's data type value class.
getValueClass
in interface ISourceField
IDouiDataType.getValueClass()
public Node getDefaultControlDefinition() throws PortalException
ISourceField
getDefaultControlDefinition
in interface ISourceField
PortalException
ISourceField.getDefaultInputControlDefinition()
,
ISourceField.getDefaultViewControlDefinition()
public Node getDefaultInputControlDefinition() throws PortalException
ISourceField
getDefaultInputControlDefinition
in interface ISourceField
PortalException
ISourceField.getDefaultControlDefinition()
,
ISourceField.getDefaultViewControlDefinition()
public 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 |