|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.formview.displayer.DisplayerConfig
public class DisplayerConfig
Description : Displayers Config.
| Field Summary | |
|---|---|
protected org.apache.commons.collections.FastHashMap |
hBehaviours
FastHashMap of Behaviours stored under
a name key. |
protected org.apache.commons.collections.FastHashMap |
hProperties
FastHashMap of Propertis stored under
a name key. |
protected java.util.ArrayList |
lBehaviours
List of Behaviours. |
protected static org.apache.commons.logging.Log |
log
|
protected java.util.ArrayList |
lProperties
List of Propertys. |
| Constructor Summary | |
|---|---|
DisplayerConfig()
|
|
| Method Summary | |
|---|---|
void |
addBehaviour(Behaviour behaviour)
|
void |
addBehaviour(java.lang.String name,
Behaviour behaviour)
|
void |
addProperty(Property property)
|
void |
addProperty(java.lang.String name,
Property property)
|
java.lang.String |
getAttributesName()
Return attribute names to parse for a displayer. |
java.lang.String |
getName()
Return name of displayer for specific HTML element Name of displayer must be the same name of HTML element. |
void |
processHTML(FieldView field,
java.lang.String defaultBehaviour,
java.util.Map contextValuesMap,
au.id.jericho.lib.html.Element htmlElement,
au.id.jericho.lib.html.OutputDocument htmlOutputDocument)
Transform current HTML element by adding (before, after HTML element) another HTML content, by adding HTML attribute to HTML element or by replacing HTML element by another HTML content. |
void |
setAttributesName(java.lang.String attributesName)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected org.apache.commons.collections.FastHashMap hProperties
FastHashMap of Propertis stored under
a name key.
protected java.util.ArrayList lProperties
Propertys. Used to maintain
the order they were added in although individual
Propertys can be retrieved using
Map of Propertys.
protected org.apache.commons.collections.FastHashMap hBehaviours
FastHashMap of Behaviours stored under
a name key.
protected java.util.ArrayList lBehaviours
Behaviours. Used to maintain
the order they were added in although individual
Behaviours can be retrieved using
Map of Behaviours.
| Constructor Detail |
|---|
public DisplayerConfig()
| Method Detail |
|---|
public java.lang.String getName()
IHTMLDisplayer
getName in interface IHTMLDisplayerpublic void setName(java.lang.String name)
public java.lang.String getAttributesName()
IHTMLDisplayer
getAttributesName in interface IHTMLDisplayerpublic void setAttributesName(java.lang.String attributesName)
public void addProperty(Property property)
public void addProperty(java.lang.String name,
Property property)
public void addBehaviour(Behaviour behaviour)
public void addBehaviour(java.lang.String name,
Behaviour behaviour)
public java.lang.String toString()
toString in class java.lang.Object
public void processHTML(FieldView field,
java.lang.String defaultBehaviour,
java.util.Map contextValuesMap,
au.id.jericho.lib.html.Element htmlElement,
au.id.jericho.lib.html.OutputDocument htmlOutputDocument)
IHTMLDisplayer
processHTML in interface IHTMLDisplayerfield - characteristics (MAXLENGTH, REQUIRED, DATE).
ATTENTION !!! this parameter can be null, when field are not
defined into XML config form-view.xml.defaultBehaviour - global behaviour of your form.contextValuesMap - Map which contains keys/values context,
which can be use to generate HTML (eg: key=${maxlength}
value=50, you can use into HTML String
and replace key by
value to generate .htmlElement - HTML (in) elementhtmlOutputDocument - HTML output document which contains
the whole HTML content after trenasformation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||