net.sf.mmapps.modules.config.implementation
Class BasicFieldConfiguration
java.lang.Object
net.sf.mmapps.modules.config.implementation.BasicFieldConfiguration
- All Implemented Interfaces:
- FieldConfiguration
- public class BasicFieldConfiguration
- extends java.lang.Object
- implements FieldConfiguration
- Version:
- $Id: BasicFieldConfiguration.java,v 1.2 2004/05/18 13:53:51 keesj Exp $
- Author:
- Kees Jongenburger
Field Summary |
(package private) java.util.Properties |
descriptions
|
(package private) java.lang.String |
docType
|
(package private) java.lang.String |
editorPos
|
(package private) java.util.Properties |
guiNames
|
(package private) java.lang.String |
guitype
|
(package private) boolean |
isKey
|
(package private) boolean |
isNotNull
|
(package private) java.lang.String |
listPos
|
(package private) java.lang.String |
name
|
(package private) java.lang.String |
searchPos
|
(package private) java.lang.String |
size
|
(package private) java.lang.String |
state
|
(package private) java.lang.String |
type
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
java.lang.String name
type
java.lang.String type
size
java.lang.String size
guitype
java.lang.String guitype
isKey
boolean isKey
isNotNull
boolean isNotNull
state
java.lang.String state
docType
java.lang.String docType
guiNames
java.util.Properties guiNames
descriptions
java.util.Properties descriptions
editorPos
java.lang.String editorPos
searchPos
java.lang.String searchPos
listPos
java.lang.String listPos
BasicFieldConfiguration
protected BasicFieldConfiguration()
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface FieldConfiguration
getName
public java.lang.String getName()
- Specified by:
getName
in interface FieldConfiguration
- Returns:
- the name of the field
setType
public void setType(java.lang.String type)
- Specified by:
setType
in interface FieldConfiguration
setSize
public void setSize(java.lang.String size)
- Specified by:
setSize
in interface FieldConfiguration
getType
public java.lang.String getType()
- Specified by:
getType
in interface FieldConfiguration
- Returns:
- the mmbase-type of the field
getSize
public java.lang.String getSize()
- Description copied from interface:
FieldConfiguration
- if applicable this methods returns the size of the field
- Specified by:
getSize
in interface FieldConfiguration
- Returns:
- the size of the field
setGUIType
public void setGUIType(java.lang.String guitype)
- Specified by:
setGUIType
in interface FieldConfiguration
getGUIType
public java.lang.String getGUIType()
- Description copied from interface:
FieldConfiguration
- some applications need to know how to display the field
this method returns a "hint" on how to display the field
- Specified by:
getGUIType
in interface FieldConfiguration
- Returns:
- a "hint" on howto display a field
setDocType
public void setDocType(java.lang.String docType)
- Specified by:
setDocType
in interface FieldConfiguration
getDocType
public java.lang.String getDocType()
- Specified by:
getDocType
in interface FieldConfiguration
- Returns:
- the doctype of the field (only for xml types)
setGUIName
public void setGUIName(java.lang.String lang,
java.lang.String value)
- Specified by:
setGUIName
in interface FieldConfiguration
getGUIName
public java.lang.String getGUIName(java.lang.String lang)
- Specified by:
getGUIName
in interface FieldConfiguration
- Returns:
- a human readable fieldname
setState
public void setState(java.lang.String state)
- Specified by:
setState
in interface FieldConfiguration
getState
public java.lang.String getState()
- Specified by:
getState
in interface FieldConfiguration
- Returns:
- the mmbase-state of the field
setIsKey
public void setIsKey(boolean value)
- Specified by:
setIsKey
in interface FieldConfiguration
isKey
public boolean isKey()
- Specified by:
isKey
in interface FieldConfiguration
- Returns:
- the if the field is a key
setIsNotNull
public void setIsNotNull(boolean value)
- Specified by:
setIsNotNull
in interface FieldConfiguration
isNotNull
public boolean isNotNull()
- Specified by:
isNotNull
in interface FieldConfiguration
- Returns:
- the if the field may be null
setEditorPosition
public void setEditorPosition(java.lang.String pos)
- Specified by:
setEditorPosition
in interface FieldConfiguration
getEditorPosition
public java.lang.String getEditorPosition()
- Specified by:
getEditorPosition
in interface FieldConfiguration
setListPosition
public void setListPosition(java.lang.String pos)
- Specified by:
setListPosition
in interface FieldConfiguration
getListPosition
public java.lang.String getListPosition()
- Specified by:
getListPosition
in interface FieldConfiguration
setSearchPosition
public void setSearchPosition(java.lang.String pos)
- Specified by:
setSearchPosition
in interface FieldConfiguration
getSearchPosition
public java.lang.String getSearchPosition()
- Specified by:
getSearchPosition
in interface FieldConfiguration
getGUINames
public java.util.Properties getGUINames()
- Specified by:
getGUINames
in interface FieldConfiguration
getDescriptions
public java.util.Properties getDescriptions()
- Specified by:
getDescriptions
in interface FieldConfiguration
- Returns:
- the descriptions of the fields
setDescription
public void setDescription(java.lang.String lang,
java.lang.String description)
- Specified by:
setDescription
in interface FieldConfiguration
getDescription
public java.lang.String getDescription(java.lang.String lang)
- Specified by:
getDescription
in interface FieldConfiguration
- Returns:
- the description of the fields in a certain language
Copyright © 2003-2004 mmapps. All Rights Reserved.