public abstract class HTMLElement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected 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 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 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 ProcessorModule |
processor
The processor which will be called by the parse routine.
|
protected String |
rows
added to ROWS=
|
protected boolean |
sel
if true there is a Selected item
|
protected String |
selected
The element which will be selected (e.g.: <OPTION SELECTED>)
|
protected String |
size
added to the SIZE= tag
|
protected String |
sorted
added to Sorted=
|
protected scanpage |
sp
page from this request
|
protected String |
user
The user name that is currently acessing this page
|
protected String |
values
The value what will be passed to the Processor or will be the value
of the item.
|
protected List |
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 and Description |
|---|
HTMLElement()
empty
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
generate()
Should be implemented by the subclass and and should return the generated HTML.
|
protected String |
generateHTML(scanpage sp,
ProcessorModule proc,
Vector macro)
Calls the parser and returns the String returned by generate.
|
protected String |
getType(String str)
Returns the part in front of the '=' char of the String.
|
protected String |
getValue(String str)
Returns the part after the '=' char of the String.
|
protected boolean |
parse(Vector macro)
Reads the Vector and fills all the variables if the corespondending variables.
|
protected ProcessorModule processor
protected String name
protected String values
protected List valuesList
protected String size
protected String selected
protected String rows
protected String cols
protected int max
protected String sorted
protected 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 String user
protected scanpage sp
protected String generateHTML(scanpage sp, ProcessorModule proc, Vector macro)
protected abstract String generate()
protected boolean parse(Vector macro)
protected String getType(String str)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}