|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.bridge.util.AbstractDescriptor
public abstract class 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 | |
|---|---|
AbstractDescriptor |
clone()
|
AbstractDescriptor |
clone(String name)
|
protected Locale |
getDefaultLocale()
The locale which 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 descriptor. |
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()
LocalizedString.getDefault()
This method can be overriden if another more logical default is
available. E.g. in BasicField the locale of the current cloud is returned.
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)
protected void setLocalizedGUIName(LocalizedString value)
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 Descriptorg - the description as a Stringlocale - The locale for which this is valid, or null for the default locale.public void setGUIName(String g)
Descriptor
setGUIName in interface Descriptorg - the description as a Stringpublic LocalizedString getLocalizedGUIName()
Descriptor
getLocalizedGUIName in interface Descriptorpublic String toString()
toString in class Objectpublic AbstractDescriptor clone()
clone in interface PublicCloneable<AbstractDescriptor>clone in class Objectpublic AbstractDescriptor clone(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||