|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.AbstractDescriptor
| Field Summary | |
protected LocalizedString |
description
|
protected LocalizedString |
guiName
|
protected String |
key
|
| Constructor Summary | |
protected |
AbstractDescriptor()
|
protected |
AbstractDescriptor(String name)
Create a data type object |
protected |
AbstractDescriptor(String name,
Descriptor descriptor)
|
protected |
AbstractDescriptor(String name,
Descriptor descriptor,
boolean cloneDataForRewrite)
Create a data type object |
| Method Summary | |
Object |
clone()
|
Object |
clone(String name)
|
protected Locale |
getDefaultLocale()
The locale wihch must be used if no locale is specified . |
String |
getDescription()
Returns the description of this object for the default locale. |
String |
getDescription(Locale locale)
Returns the description of this object. |
String |
getGUIName()
Retrieve the GUI name of the field. |
String |
getGUIName(Locale locale)
Retrieve the GUI name of the field depending on specified langauge. |
LocalizedString |
getLocalizedDescription()
Returns the set of (localized) descriptions of this object. |
LocalizedString |
getLocalizedGUIName()
Returns the set of (localized) gui names of this object. |
String |
getName()
Returns the name or 'key' of this data type. |
void |
setDescription(String desc)
Sets the description of this object for the default locale. |
void |
setDescription(String desc,
Locale locale)
Sets the description of this object. |
void |
setGUIName(String g)
Sets the GUI name of this object for the default locale. |
void |
setGUIName(String g,
Locale locale)
Sets the GUI name of this object. |
protected void |
setLocalizedDescription(LocalizedString description)
|
protected void |
setLocalizedGUIName(LocalizedString value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String key
protected LocalizedString description
protected LocalizedString guiName
| Constructor Detail |
protected AbstractDescriptor()
protected AbstractDescriptor(String name)
name - the name of the data type
protected AbstractDescriptor(String name,
Descriptor descriptor,
boolean cloneDataForRewrite)
name - the name of the data typedescriptor -
protected AbstractDescriptor(String name,
Descriptor descriptor)
| Method Detail |
protected Locale getDefaultLocale()
null for the
defaul of this. This method can be overriden if another more logical default is
available. E.g. in BasicField, where the locale of the current cloud is returned here.
public String getName()
getName in interface Descriptorpublic String getDescription(Locale locale)
Descriptor
getDescription in interface Descriptorlocale - The locale for which this must be returned, or null for a default locale.
If no fitting description for the given locale is available, getName() can be returned.
public String getDescription()
Descriptor
getDescription in interface Descriptorpublic LocalizedString getLocalizedDescription()
Descriptor
getLocalizedDescription in interface Descriptorprotected void setLocalizedDescription(LocalizedString description)
public void setDescription(String desc,
Locale locale)
Descriptor
setDescription in interface Descriptordesc - the description as a Stringlocale - The locale for which this is valid, or null for a default locale.public void setDescription(String desc)
Descriptor
setDescription in interface Descriptordesc - the description as a Stringpublic String getGUIName(Locale locale)
getGUIName in interface Descriptorlocale - the locale that determines the language for the GUI name
public String getGUIName()
getGUIName in interface Descriptor
public void setGUIName(String g,
Locale locale)
Descriptor
setGUIName in interface Descriptorlocale - The locale for which this is valid, or null for the default locale.g - the description as a Stringpublic void setGUIName(String g)
Descriptor
setGUIName in interface Descriptorg - the description as a Stringpublic LocalizedString getLocalizedGUIName()
Descriptor
getLocalizedGUIName in interface Descriptorprotected void setLocalizedGUIName(LocalizedString value)
public String toString()
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedException
public Object clone(String name)
throws CloneNotSupportedException
CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||