public class CustomSortCtrl extends RefocusDialogCtrlBase
Modifier and Type | Class and Description |
---|---|
class |
CustomSortCtrl.SortAlgorithmCombobox |
class |
CustomSortCtrl.SortIndexCombobox |
static class |
CustomSortCtrl.SortRule |
DialogCtrlBase.Entry
Modifier and Type | Field and 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 user
|
protected org.zkoss.zul.ListitemRenderer |
sortRuleRenderer |
protected org.zkoss.zul.Button |
upBtn |
static String |
URI |
ARG_SPREADSHEET
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
Constructor and Description |
---|
CustomSortCtrl() |
Modifier and Type | Method and 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() |
detach
getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
public static String URI
public static String ARG_SELECTION
public static String ARG_SHEET
public static String ARG_CASE_SENSITIVE
public static String ARG_HAS_HEADER
public static String ARG_ORIENTATION
public static String ARG_RULES
protected org.zkoss.zul.ListModelList<CustomSortCtrl.SortRule> sortRuleModel
protected org.zkoss.zul.Caption rangeCaption
protected org.zkoss.zul.Listbox sortRuleBox
protected org.zkoss.zul.Checkbox caseSensitiveBox
protected org.zkoss.zul.Checkbox hasHeaderBox
protected org.zkoss.zul.Combobox sortOrientationBox
protected org.zkoss.zul.Button addBtn
protected org.zkoss.zul.Button delBtn
protected org.zkoss.zul.Button upBtn
protected org.zkoss.zul.Button downBtn
protected AreaRef selection
protected Sheet sheet
protected org.zkoss.zul.ListitemRenderer sortRuleRenderer
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Sheet sheet, AreaRef selection, Spreadsheet ss)
public void doAfterCompose(org.zkoss.zul.Window comp) throws Exception
doAfterCompose
in interface org.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
doAfterCompose
in class RefocusDialogCtrlBase
Exception
protected void refreshSortRule()
protected void updateAvailableList()
public void onSelect$sortRuleBox()
protected void updateButtons()
public void onClick$addBtn()
public void onClick$delBtn()
public void onClick$upBtn()
public void onClick$downBtn()
public void onClick$okBtn()
protected boolean checkEmptySortRule(List<CustomSortCtrl.SortRule> list)
protected boolean checkDuplicateSortIndex(List<CustomSortCtrl.SortRule> list)
public void onCheck$hasHeaderBox()
public void onSelect$sortOrientationBox()
public void onCancel()
Copyright © 2020. All rights reserved.