◆ getAttribute()
Object org.turro.jpa.search.DaoHtmlSearch.getAttribute |
( |
IConstructor |
constructor, |
|
|
String |
attribute |
|
) |
| |
Definition at line 244 of file DaoHtmlSearch.java.
245 checkAttributtes(constructor);
246 return attributes.get(attribute);
◆ getInstance()
Definition at line 59 of file DaoHtmlSearch.java.
60 DaoHtmlSearch search = (DaoHtmlSearch) constructor.getSessionAttribute(context +
"-search");
62 search =
new DaoHtmlSearch(context);
63 if(!search.isEmpty()) {
64 constructor.setSessionAttribute(context +
"-search", search);
69 if(search !=
null) search.loadValues(constructor);
◆ getIterator()
◆ getTagCloudString()
String org.turro.jpa.search.DaoHtmlSearch.getTagCloudString |
( |
| ) |
|
◆ getTagsString()
String org.turro.jpa.search.DaoHtmlSearch.getTagsString |
( |
| ) |
|
◆ hasAttribute()
boolean org.turro.jpa.search.DaoHtmlSearch.hasAttribute |
( |
IConstructor |
constructor, |
|
|
String |
attribute |
|
) |
| |
Definition at line 239 of file DaoHtmlSearch.java.
240 checkAttributtes(constructor);
241 return attributes.containsKey(attribute);
◆ isSingleInput()
boolean org.turro.jpa.search.DaoHtmlSearch.isSingleInput |
( |
| ) |
|
Definition at line 86 of file DaoHtmlSearch.java.
88 for(DaoSearchKey dsk : values()) {
89 if(
"input".equals(dsk.getTag())) {
◆ isTagCloud()
boolean org.turro.jpa.search.DaoHtmlSearch.isTagCloud |
( |
| ) |
|
Definition at line 96 of file DaoHtmlSearch.java.
97 for(DaoSearchKey dsk : values()) {
98 if(
"tag-cloud".equals(dsk.getTag())) {
◆ render() [1/2]
String org.turro.jpa.search.DaoHtmlSearch.render |
( |
IConstructor |
constructor | ) |
|
Definition at line 125 of file DaoHtmlSearch.java.
126 if(ElephantMarker.existsTemplate(constructor,
false,
"iterator",
"search")) {
127 ElephantMarker em =
new ElephantMarker(constructor);
128 em.put(
"iterator", iterator);
129 em.put(
"keys",
this);
130 if(!Strings.isBlank(tagRoot)) {
131 em.put(
"tags", TagCloud.getTags(constructor, tagRoot));
133 return em.parse(Strings.isBlank(root,
"iterator"), Strings.isBlank(
template,
"search"));
135 return render(constructor,
null);
String render(IConstructor constructor)
◆ render() [2/2]
Definition at line 139 of file DaoHtmlSearch.java.
140 HTMLGenerator hg =
new HTMLGenerator();
141 hg.startTag(
"div",
"class=\"" +
getSclass() +
"\"");
142 hg.startTag(
"form",
"action='" + ElephantContext.getRootWebPath() + context +
"' method='get' accept-charset='UTF-8'");
144 hg.startTable(
"cellpadding='1' cellspacing='1' style='width:100%'")
147 for(String key : keySet()) {
148 DaoSearchKey dsk =
get(key);
149 renderKey(constructor, hg, dsk, renderer);
152 return hg.toString();
◆ renderInstance()
static void org.turro.jpa.search.DaoHtmlSearch.renderInstance |
( |
IConstructor |
constructor | ) |
|
|
static |
Definition at line 48 of file DaoHtmlSearch.java.
49 DaoHtmlSearch dhs = DaoHtmlSearch.getInstance(constructor, ElephantContext.getContextVariable(constructor));
52 constructor.getOut().print(dhs.render(constructor));
53 }
catch (IOException ex) {
54 Logger.getLogger(DaoHtmlSearch.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ setAttribute()
void org.turro.jpa.search.DaoHtmlSearch.setAttribute |
( |
IConstructor |
constructor, |
|
|
String |
attribute, |
|
|
Object |
value |
|
) |
| |
Definition at line 249 of file DaoHtmlSearch.java.
250 checkAttributtes(constructor);
251 attributes.put(attribute, value);
◆ setIterator()
void org.turro.jpa.search.DaoHtmlSearch.setIterator |
( |
IContentIterator |
iterator | ) |
|
◆ setTagCloudString()
void org.turro.jpa.search.DaoHtmlSearch.setTagCloudString |
( |
String |
tagCloudString | ) |
|
◆ setTagRoot()
void org.turro.jpa.search.DaoHtmlSearch.setTagRoot |
( |
String |
tagRoot | ) |
|
◆ setTagsString()
void org.turro.jpa.search.DaoHtmlSearch.setTagsString |
( |
String |
tagsString | ) |
|
The documentation for this class was generated from the following file: