18 package org.turro.zkoss.filter;
20 import org.turro.string.Strings;
21 import org.turro.elephant.context.ElephantContext;
22 import org.turro.zkoss.grid.PagingGrid;
23 import org.zkoss.zk.ui.event.Event;
24 import org.zkoss.zk.ui.event.EventListener;
25 import org.zkoss.zk.ui.event.Events;
26 import org.zkoss.zul.Textbox;
35 private String webContext;
39 setStyle(
"background-image:url('" + webContext +
"/_zul/images/filter_no.png');background-repeat:no-repeat;padding-left:20px;");
40 addEventListener(Events.ON_OK,
new EventListener() {
42 public void onEvent(Event event)
throws Exception {
46 if(Strings.isBlank(getText())) {
47 setStyle(
"background-image:url('" + webContext +
"/_zul/images/filter_no.png');background-repeat:no-repeat;padding-left:20px;");
49 setStyle(
"background-image:url('" + webContext +
"/_zul/images/filter.png');background-repeat:no-repeat;padding-left:20px;");
static String getRootWebPath()
void setGrid(PagingGrid grid)
void setRefineValue(String value)