19 package org.turro.marker.construct;
21 import org.turro.elephant.context.IConstructor;
22 import org.turro.marker.ElephantMarker;
31 this.cssClass = cssClass;
36 this.cssStyle = cssStyle;
51 this.caption = caption;
72 marker.
put(
"class", cssClass);
73 marker.
put(
"style", cssStyle);
74 marker.
put(
"start", start);
75 marker.
put(
"end", end);
76 marker.
put(
"caption", caption);
77 marker.
put(
"image", image);
78 marker.
put(
"url", url);
79 marker.
put(
"level", level);
80 marker.
process(
"web/utils", type.toString().toLowerCase());
85 private String cssClass, cssStyle, caption, image, url;
86 private boolean start, end;
91 private enum MarkersType {
92 SEGMENT, HEADER, DIVIDER, LINK, CARD, CARDS;
98 return new Markers(MarkersType.SEGMENT);
102 return new Markers(MarkersType.HEADER);
106 return new Markers(MarkersType.DIVIDER);
110 return new Markers(MarkersType.LINK);
114 return new Markers(MarkersType.CARD);
118 return new Markers(MarkersType.CARDS);
121 private final MarkersType type;
123 private Markers(MarkersType type) {
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
Markers cssClass(String cssClass)
void render(IConstructor constructor)
Markers caption(String caption)
Markers image(String image)
Markers cssStyle(String cssStyle)