Package io.keikaiex.ui.dialog
Class CustomFiltersCtrl
- java.lang.Object
-
- org.zkoss.zk.ui.select.SelectorComposer<org.zkoss.zul.Window>
-
- io.keikaiex.ui.dialog.impl.DialogCtrlBase
-
- io.keikaiex.ui.dialog.CustomFiltersCtrl
-
- All Implemented Interfaces:
Serializable
,org.zkoss.zk.ui.util.ComponentActivationListener
,org.zkoss.zk.ui.util.ComponentCloneListener
,org.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zul.Window>
public class CustomFiltersCtrl extends DialogCtrlBase
- Author:
- Henri
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
DialogCtrlBase.Entry
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zul.Radiogroup
andor
static String
ARG_ANDOR
static String
ARG_F1_DISPLAY
static String
ARG_F1_OP
static String
ARG_F1_VAL
static String
ARG_F2_DISPLAY
static String
ARG_F2_OP
static String
ARG_F2_VAL
static String
ARG_FILTER_TYPE
static String
ARG_ROW_TEXTS
protected org.zkoss.zul.Listbox
f1operators
protected org.zkoss.zul.ListModelList<SAutoFilter.FilterOp>
f1opsModel
protected org.zkoss.zul.ListModelList<FilterRowInfo>
f1valsModel
protected org.zkoss.zul.Combobox
f1values
protected org.zkoss.zul.Listbox
f2operators
protected org.zkoss.zul.ListModelList<SAutoFilter.FilterOp>
f2opsModel
protected org.zkoss.zul.ListModelList<FilterRowInfo>
f2valsModel
protected org.zkoss.zul.Combobox
f2values
protected org.zkoss.zul.Button
okBtn
static String
URI
-
Fields inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
-
-
Constructor Summary
Constructors Constructor Description CustomFiltersCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SAutoFilter.FilterOp
convertToDateOp(SAutoFilter.FilterOp op)
void
doAfterCompose(org.zkoss.zul.Window comp)
static String
formatDateText(Object val)
protected void
init(SAutoFilter.FilterOp f1op, String f1val, boolean isAnd, SAutoFilter.FilterOp f2op, String f2val, List<FilterRowInfo> rowInfos)
static boolean
isDateOp(SAutoFilter.FilterOp op)
protected org.zkoss.zul.ListModelList
newOps(SAutoFilter.FilterOp op)
void
onCancel()
void
onOK()
static Object
parseInput(String editText)
static void
show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, SAutoFilter filter, int index, SAutoFilter.FilterOp op)
-
Methods inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
detach, getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
-
-
-
-
Field Detail
-
URI
public static String URI
-
ARG_F1_OP
public static String ARG_F1_OP
-
ARG_F2_OP
public static String ARG_F2_OP
-
ARG_F1_VAL
public static String ARG_F1_VAL
-
ARG_F2_VAL
public static String ARG_F2_VAL
-
ARG_F1_DISPLAY
public static String ARG_F1_DISPLAY
-
ARG_F2_DISPLAY
public static String ARG_F2_DISPLAY
-
ARG_ANDOR
public static String ARG_ANDOR
-
ARG_ROW_TEXTS
public static String ARG_ROW_TEXTS
-
ARG_FILTER_TYPE
public static String ARG_FILTER_TYPE
-
f1opsModel
protected org.zkoss.zul.ListModelList<SAutoFilter.FilterOp> f1opsModel
-
f2opsModel
protected org.zkoss.zul.ListModelList<SAutoFilter.FilterOp> f2opsModel
-
f1valsModel
protected org.zkoss.zul.ListModelList<FilterRowInfo> f1valsModel
-
f2valsModel
protected org.zkoss.zul.ListModelList<FilterRowInfo> f2valsModel
-
okBtn
protected org.zkoss.zul.Button okBtn
-
f1operators
protected org.zkoss.zul.Listbox f1operators
-
f1values
protected org.zkoss.zul.Combobox f1values
-
f2operators
protected org.zkoss.zul.Listbox f2operators
-
f2values
protected org.zkoss.zul.Combobox f2values
-
andor
protected org.zkoss.zul.Radiogroup andor
-
-
Method Detail
-
show
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, SAutoFilter filter, int index, SAutoFilter.FilterOp op)
-
convertToDateOp
public static SAutoFilter.FilterOp convertToDateOp(SAutoFilter.FilterOp op)
-
isDateOp
public static boolean isDateOp(SAutoFilter.FilterOp op)
-
init
protected void init(SAutoFilter.FilterOp f1op, String f1val, boolean isAnd, SAutoFilter.FilterOp f2op, String f2val, List<FilterRowInfo> rowInfos)
-
newOps
protected org.zkoss.zul.ListModelList newOps(SAutoFilter.FilterOp op)
-
doAfterCompose
public void doAfterCompose(org.zkoss.zul.Window comp) throws Exception
- Specified by:
doAfterCompose
in interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
- Overrides:
doAfterCompose
in classDialogCtrlBase
- Throws:
Exception
-
onOK
public void onOK()
-
onCancel
public void onCancel()
-
-