Package org.openxava.util.meta
Class MetaElement
- java.lang.Object
-
- org.openxava.util.meta.MetaElement
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MetaApplication
,MetaController
,MetaControllerElement
,MetaMember
,MetaModel
,MetaModule
,MetaView
public abstract class MetaElement extends java.lang.Object implements java.io.Serializable
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getDescription(java.util.Locale locale)
protected java.lang.String
getDescription(java.util.Locale locale, java.lang.String id)
java.lang.String
getDescription(javax.servlet.ServletRequest request)
abstract java.lang.String
getId()
Unique id of element, normally used to search the label in the resources files.java.lang.String
getLabel()
java.lang.String
getLabel(java.util.Locale locale)
For refine the label calculationprotected java.lang.String
getLabel(java.util.Locale locale, java.lang.String id)
Implementation of label obtaining.java.lang.String
getLabel(javax.servlet.ServletRequest request)
protected java.util.Locale
getLocale(javax.servlet.ServletRequest request)
java.lang.String
getName()
java.lang.String
getPlaceholder()
java.lang.String
getPlaceholder(java.util.Locale locale)
protected java.lang.String
getPlaceholder(java.util.Locale locale, java.lang.String id)
protected boolean
has18nLabel()
protected boolean
hasName()
void
setDescription(java.lang.String newDescription)
void
setLabel(java.lang.String newLabel)
void
setName(java.lang.String newName)
void
setPlaceholder(java.lang.String placeholder)
-
-
-
Method Detail
-
has18nLabel
protected boolean has18nLabel()
-
hasName
protected boolean hasName()
-
getLabel
public java.lang.String getLabel()
-
getLabel
public java.lang.String getLabel(javax.servlet.ServletRequest request)
-
getLocale
protected java.util.Locale getLocale(javax.servlet.ServletRequest request)
-
getLabel
public java.lang.String getLabel(java.util.Locale locale)
For refine the label calculation
-
getLabel
protected java.lang.String getLabel(java.util.Locale locale, java.lang.String id)
Implementation of label obtaining.
-
getId
public abstract java.lang.String getId()
Unique id of element, normally used to search the label in the resources files.
-
getName
public java.lang.String getName()
- Returns:
- java.lang.String Not null
-
setLabel
public void setLabel(java.lang.String newLabel)
-
setName
public void setName(java.lang.String newName)
-
getDescription
public java.lang.String getDescription()
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
getDescription
protected java.lang.String getDescription(java.util.Locale locale, java.lang.String id)
-
getDescription
public java.lang.String getDescription(javax.servlet.ServletRequest request)
-
setDescription
public void setDescription(java.lang.String newDescription)
-
getPlaceholder
public java.lang.String getPlaceholder()
-
getPlaceholder
public java.lang.String getPlaceholder(java.util.Locale locale)
-
getPlaceholder
protected java.lang.String getPlaceholder(java.util.Locale locale, java.lang.String id)
-
setPlaceholder
public void setPlaceholder(java.lang.String placeholder)
-
-