|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.util.HTMLElement
Class which is the super-class for ALL the HTMLElements. Includes a parser wich fills all the variables and calls the abstract function generate which will be implemented in a HTMLElement
| Field Summary | |
protected java.lang.String |
cols
added to COLS= |
protected boolean |
empty
The EMPTY tag is present in the macro. |
protected boolean |
ex
if true there is an excluded item |
protected java.lang.String |
exclude
if this element is in the ValueList from the Processor it should be excluded |
protected boolean |
horizontal
The Item list should be HORIZONTAL This is default |
protected int |
max
added to MAX= |
protected boolean |
moredouble
There is a double list of items (from the Processor) |
protected boolean |
moreValues
There is a (single) list of items (from the Processor) |
protected boolean |
multiple
if true it the Element should allow MULTIPLE selection |
protected java.lang.String |
name
The value what will be put after the NAME= tag |
protected boolean |
proc
The PROC tag is present in the macro. |
protected boolean |
procdouble
The DOUBLE tag is present in the macro. |
protected ProcessorInterface |
processor
The processor which will be called by the parse routine. |
protected java.lang.String |
rows
added to ROWS= |
protected boolean |
sel
if true there is a Selected item |
protected java.lang.String |
selected
The element which will be selected (e.g.: <OPTION SELECTED>) |
protected java.lang.String |
size
added to the SIZE= tag |
protected java.lang.String |
sorted
added to Sorted= |
protected scanpage |
sp
page from this request |
protected java.lang.String |
user
The user name that is currently acessing this page |
protected java.lang.String |
values
The value what will be passed to the Processor or will be the value of the item. |
protected java.util.Vector |
valuesList
contains the Vector with the items returned by the ProcessorInteface.getList(value) if the PROC tag is present |
protected boolean |
vertical
The Item list should be VERTICAL (a <BR> tag should be added) |
| Constructor Summary | |
HTMLElement()
empty |
|
| Method Summary | |
protected abstract java.lang.String |
generate()
Should be implemented by the subclass and and should return the generated HTML. |
protected java.lang.String |
generateHTML(scanpage sp,
ProcessorInterface proc,
java.util.Vector macro)
Calls the parser and returns the String returned by generate. |
protected java.lang.String |
getType(java.lang.String str)
Returns the part in front of the '=' char of the String. |
protected java.lang.String |
getValue(java.lang.String str)
Returns the part after the '=' char of the String. |
protected boolean |
parse(java.util.Vector macro)
Reads the Vector and fills all the variables if the corespondending variables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ProcessorInterface processor
protected java.lang.String name
protected java.lang.String values
protected java.util.Vector valuesList
protected java.lang.String size
protected java.lang.String selected
protected java.lang.String rows
protected java.lang.String cols
protected int max
protected java.lang.String sorted
protected java.lang.String exclude
protected boolean ex
protected boolean multiple
protected boolean moreValues
protected boolean moredouble
protected boolean sel
protected boolean vertical
protected boolean horizontal
protected boolean empty
protected boolean proc
protected boolean procdouble
protected java.lang.String user
protected scanpage sp
| Constructor Detail |
public HTMLElement()
| Method Detail |
protected java.lang.String generateHTML(scanpage sp,
ProcessorInterface proc,
java.util.Vector macro)
protected abstract java.lang.String generate()
protected boolean parse(java.util.Vector macro)
protected java.lang.String getType(java.lang.String str)
protected java.lang.String getValue(java.lang.String str)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||