Package io.keikaiex.ui.dialog
Class CustomSortCtrl
- java.lang.Object
-
- org.zkoss.zk.ui.select.SelectorComposer<org.zkoss.zul.Window>
-
- io.keikaiex.ui.dialog.impl.DialogCtrlBase
-
- io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
-
- io.keikaiex.ui.dialog.CustomSortCtrl
-
- 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 CustomSortCtrl extends RefocusDialogCtrlBase
- Author:
- Sam, dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CustomSortCtrl.SortAlgorithmCombobox
class
CustomSortCtrl.SortIndexCombobox
static class
CustomSortCtrl.SortRule
-
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.Button
addBtn
static String
ARG_CASE_SENSITIVE
static String
ARG_HAS_HEADER
static String
ARG_ORIENTATION
static String
ARG_RULES
static String
ARG_SELECTION
static String
ARG_SHEET
protected List<String>
availableSortIndex
protected org.zkoss.zul.Checkbox
caseSensitiveBox
protected org.zkoss.zul.Button
delBtn
protected org.zkoss.zul.Button
downBtn
protected org.zkoss.zul.Checkbox
hasHeaderBox
protected org.zkoss.zul.Caption
rangeCaption
protected AreaRef
selection
protected Sheet
sheet
protected org.zkoss.zul.Combobox
sortOrientationBox
protected org.zkoss.zul.Listbox
sortRuleBox
protected org.zkoss.zul.ListModelList<CustomSortCtrl.SortRule>
sortRuleModel
Selected sort level target by userprotected org.zkoss.zul.ListitemRenderer
sortRuleRenderer
protected org.zkoss.zul.Button
upBtn
static String
URI
-
Fields inherited from class io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
ARG_SPREADSHEET
-
Fields inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
-
-
Constructor Summary
Constructors Constructor Description CustomSortCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkDuplicateSortIndex(List<CustomSortCtrl.SortRule> list)
protected boolean
checkEmptySortRule(List<CustomSortCtrl.SortRule> list)
void
doAfterCompose(org.zkoss.zul.Window comp)
void
onCancel()
void
onCheck$hasHeaderBox()
void
onClick$addBtn()
void
onClick$delBtn()
void
onClick$downBtn()
void
onClick$okBtn()
void
onClick$upBtn()
void
onSelect$sortOrientationBox()
void
onSelect$sortRuleBox()
protected void
refreshSortRule()
static void
show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Sheet sheet, AreaRef selection, Spreadsheet ss)
protected void
updateAvailableList()
protected void
updateButtons()
-
Methods inherited from class io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
detach
-
Methods inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
-
-
-
-
Field Detail
-
URI
public static String URI
-
ARG_SELECTION
public static String ARG_SELECTION
-
ARG_SHEET
public static String ARG_SHEET
-
ARG_CASE_SENSITIVE
public static String ARG_CASE_SENSITIVE
-
ARG_HAS_HEADER
public static String ARG_HAS_HEADER
-
ARG_ORIENTATION
public static String ARG_ORIENTATION
-
ARG_RULES
public static String ARG_RULES
-
sortRuleModel
protected org.zkoss.zul.ListModelList<CustomSortCtrl.SortRule> sortRuleModel
Selected sort level target by user
-
rangeCaption
protected org.zkoss.zul.Caption rangeCaption
-
sortRuleBox
protected org.zkoss.zul.Listbox sortRuleBox
-
caseSensitiveBox
protected org.zkoss.zul.Checkbox caseSensitiveBox
-
hasHeaderBox
protected org.zkoss.zul.Checkbox hasHeaderBox
-
sortOrientationBox
protected org.zkoss.zul.Combobox sortOrientationBox
-
addBtn
protected org.zkoss.zul.Button addBtn
-
delBtn
protected org.zkoss.zul.Button delBtn
-
upBtn
protected org.zkoss.zul.Button upBtn
-
downBtn
protected org.zkoss.zul.Button downBtn
-
selection
protected AreaRef selection
-
sheet
protected Sheet sheet
-
sortRuleRenderer
protected org.zkoss.zul.ListitemRenderer sortRuleRenderer
-
-
Method Detail
-
show
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Sheet sheet, AreaRef selection, Spreadsheet ss)
-
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 classRefocusDialogCtrlBase
- Throws:
Exception
-
refreshSortRule
protected void refreshSortRule()
-
updateAvailableList
protected void updateAvailableList()
-
onSelect$sortRuleBox
public void onSelect$sortRuleBox()
-
updateButtons
protected void updateButtons()
-
onClick$addBtn
public void onClick$addBtn()
-
onClick$delBtn
public void onClick$delBtn()
-
onClick$upBtn
public void onClick$upBtn()
-
onClick$downBtn
public void onClick$downBtn()
-
onClick$okBtn
public void onClick$okBtn()
-
checkEmptySortRule
protected boolean checkEmptySortRule(List<CustomSortCtrl.SortRule> list)
-
checkDuplicateSortIndex
protected boolean checkDuplicateSortIndex(List<CustomSortCtrl.SortRule> list)
-
onCheck$hasHeaderBox
public void onCheck$hasHeaderBox()
-
onSelect$sortOrientationBox
public void onSelect$sortOrientationBox()
-
onCancel
public void onCancel()
-
-