Package io.keikaiex.ui.dialog
Class DataValidationCtrl
- 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.DataValidationCtrl
-
- 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 DataValidationCtrl extends RefocusDialogCtrlBase
- Author:
- JerryChen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataValidationCtrl.AlertStyle
static class
DataValidationCtrl.AllowPair
static class
DataValidationCtrl.DataPair
-
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.Combobox
allowCombobox
protected org.zkoss.zul.ListModelList<DataValidationCtrl.AllowPair>
allowListmodel
static String
ARG_ALERT_STYLE_CODE
static String
ARG_ERROR_MESSAGE_CODE
static String
ARG_ERROR_TITLE_CODE
static String
ARG_IGNORE_BLANK_CODE
static String
ARG_IN_CELL_DROPDOWN_CODE
static String
ARG_INPUT_MESSAGE_CODE
static String
ARG_INPUT_TITLE_CODE
static String
ARG_OPERATOR_TYPE_CODE
static String
ARG_PARAM1_CODE
static String
ARG_PARAM2_CODE
static String
ARG_SHOW_ERROR_CODE
static String
ARG_SHOW_INPUT_CODE
static String
ARG_VALIDATION_CODE
static String
ARG_VALIDATION_TYPE_CODE
protected org.zkoss.zul.Combobox
dataCombobox
protected org.zkoss.zul.ListModelList<DataValidationCtrl.DataPair>
dataListmodel
protected org.zkoss.zul.Checkbox
errorMsgCheckbox
protected org.zkoss.zul.Textbox
errorMsgTextbox
protected org.zkoss.zul.Combobox
errorStyleCombobox
protected org.zkoss.zul.Textbox
errorTitleTextbox
protected org.zkoss.zul.Checkbox
ignoreBlankCheckbox
protected org.zkoss.zul.Checkbox
inCellDropdownCheckbox
protected org.zkoss.zul.Label
inCellDropdownLabel
protected org.zkoss.zul.Checkbox
inputMsgCheckbox
protected org.zkoss.zul.Textbox
inputMsgTextbox
protected org.zkoss.zul.Textbox
inputTitleTextbox
protected org.zkoss.zul.Label
param1Label
protected org.zkoss.zul.Textbox
param1Textbox
protected org.zkoss.zul.Label
param2Label
protected org.zkoss.zul.Textbox
param2Textbox
protected org.zkoss.zul.ListModelList<DataValidationCtrl.AlertStyle>
styleListmodel
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 DataValidationCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAfterCompose(org.zkoss.zul.Window comp)
protected void
initDefaultErrorAlert()
protected void
initDefaultInputMsg()
protected void
initErrorAlert(Validation validation)
protected void
initInputMsg(Validation validation)
protected void
initSettings(Validation validation)
void
onCancel()
void
onCheck$errorMsgCheckbox()
void
onCheck$msgCheckbox()
void
onClear()
void
onClick$okBtn()
void
onSelect$allowCombobox()
void
onSelect$dataCombobox()
static void
show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Validation validation, Spreadsheet ss)
protected void
updateCascade()
protected void
updateCheckbox()
protected void
updateDataType()
protected void
updateParameter()
-
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_VALIDATION_CODE
public static String ARG_VALIDATION_CODE
-
ARG_VALIDATION_TYPE_CODE
public static String ARG_VALIDATION_TYPE_CODE
-
ARG_OPERATOR_TYPE_CODE
public static String ARG_OPERATOR_TYPE_CODE
-
ARG_IGNORE_BLANK_CODE
public static String ARG_IGNORE_BLANK_CODE
-
ARG_IN_CELL_DROPDOWN_CODE
public static String ARG_IN_CELL_DROPDOWN_CODE
-
ARG_PARAM1_CODE
public static String ARG_PARAM1_CODE
-
ARG_PARAM2_CODE
public static String ARG_PARAM2_CODE
-
ARG_SHOW_INPUT_CODE
public static String ARG_SHOW_INPUT_CODE
-
ARG_INPUT_TITLE_CODE
public static String ARG_INPUT_TITLE_CODE
-
ARG_INPUT_MESSAGE_CODE
public static String ARG_INPUT_MESSAGE_CODE
-
ARG_SHOW_ERROR_CODE
public static String ARG_SHOW_ERROR_CODE
-
ARG_ALERT_STYLE_CODE
public static String ARG_ALERT_STYLE_CODE
-
ARG_ERROR_TITLE_CODE
public static String ARG_ERROR_TITLE_CODE
-
ARG_ERROR_MESSAGE_CODE
public static String ARG_ERROR_MESSAGE_CODE
-
allowListmodel
protected org.zkoss.zul.ListModelList<DataValidationCtrl.AllowPair> allowListmodel
-
dataListmodel
protected org.zkoss.zul.ListModelList<DataValidationCtrl.DataPair> dataListmodel
-
styleListmodel
protected org.zkoss.zul.ListModelList<DataValidationCtrl.AlertStyle> styleListmodel
-
allowCombobox
protected org.zkoss.zul.Combobox allowCombobox
-
dataCombobox
protected org.zkoss.zul.Combobox dataCombobox
-
ignoreBlankCheckbox
protected org.zkoss.zul.Checkbox ignoreBlankCheckbox
-
inCellDropdownCheckbox
protected org.zkoss.zul.Checkbox inCellDropdownCheckbox
-
inCellDropdownLabel
protected org.zkoss.zul.Label inCellDropdownLabel
-
param1Textbox
protected org.zkoss.zul.Textbox param1Textbox
-
param2Textbox
protected org.zkoss.zul.Textbox param2Textbox
-
param1Label
protected org.zkoss.zul.Label param1Label
-
param2Label
protected org.zkoss.zul.Label param2Label
-
inputMsgCheckbox
protected org.zkoss.zul.Checkbox inputMsgCheckbox
-
inputTitleTextbox
protected org.zkoss.zul.Textbox inputTitleTextbox
-
inputMsgTextbox
protected org.zkoss.zul.Textbox inputMsgTextbox
-
errorMsgCheckbox
protected org.zkoss.zul.Checkbox errorMsgCheckbox
-
errorStyleCombobox
protected org.zkoss.zul.Combobox errorStyleCombobox
-
errorTitleTextbox
protected org.zkoss.zul.Textbox errorTitleTextbox
-
errorMsgTextbox
protected org.zkoss.zul.Textbox errorMsgTextbox
-
-
Method Detail
-
show
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Validation validation, 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
-
initErrorAlert
protected void initErrorAlert(Validation validation)
-
initDefaultErrorAlert
protected void initDefaultErrorAlert()
-
initInputMsg
protected void initInputMsg(Validation validation)
-
initDefaultInputMsg
protected void initDefaultInputMsg()
-
initSettings
protected void initSettings(Validation validation)
-
updateCascade
protected void updateCascade()
-
updateCheckbox
protected void updateCheckbox()
-
updateParameter
protected void updateParameter()
-
updateDataType
protected void updateDataType()
-
onSelect$allowCombobox
public void onSelect$allowCombobox()
-
onSelect$dataCombobox
public void onSelect$dataCombobox()
-
onCheck$msgCheckbox
public void onCheck$msgCheckbox()
-
onCheck$errorMsgCheckbox
public void onCheck$errorMsgCheckbox()
-
onClick$okBtn
public void onClick$okBtn()
-
onCancel
public void onCancel()
-
onClear
public void onClear()
-
-