Package io.keikaiex.ui.dialog
Class FormatCellCtrl
- 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.FormatCellCtrl
-
- All Implemented Interfaces:
java.io.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 FormatCellCtrl extends RefocusDialogCtrlBase
- Author:
- Sam, dennis, JerryChen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormatCellCtrl.FormatItemstatic classFormatCellCtrl.InnerFillPatternstatic classFormatCellCtrl.InnerRotation-
Nested classes/interfaces inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
DialogCtrlBase.Entry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARG_BACKGROUND_CODEstatic java.lang.StringARG_FILL_COLOR_CODEstatic java.lang.StringARG_FILL_PATTERN_CODEstatic java.lang.StringARG_FORMAT_CODEstatic java.lang.StringARG_ROTATION_CODEprotected io.keikai.api.model.ColorbackColorprotected org.zkoss.zkex.zul.ColorboxbackColorboxprotected java.lang.String[]categoriesprotected io.keikai.api.model.ColorfillColorprotected org.zkoss.zkex.zul.ColorboxfillColorboxstatic java.util.Map<java.lang.String,FormatCellCtrl.FormatItem>FORMAT_ITEMSprotected java.lang.StringformatCodeprotected org.zkoss.zul.Listboxmfn_categoryprotected org.zkoss.zk.ui.Componentmfn_custom_boxprotected org.zkoss.zul.Textboxmfn_custom_valueprotected org.zkoss.zul.Listboxmfn_generalprotected io.keikai.api.model.CellStyle.FillPatternpatternprotected booleanpatternChangedprotected org.zkoss.zul.ComboboxpatternComboboxprotected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerFillPattern>patternListmodelprotected introtationprotected org.zkoss.zul.ComboboxrotationComboboxprotected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerRotation>rotationListmodelprotected org.zkoss.zul.ListboxselectedCategorystatic java.lang.StringURI-
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 FormatCellCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoAfterCompose(org.zkoss.zul.Window comp)voidonBackColorChange()voidonCancel()voidonClick$okBtn()voidonSelect$mfn_category(org.zkoss.zk.ui.event.SelectEvent event)protected voidopenFormatList(java.lang.String category, int index)static voidputFormatItem(java.lang.String c, int i, java.lang.String f, int ci)protected voidselectOption(org.zkoss.zul.Listbox lb)static voidshow(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, java.lang.String formatCode, io.keikai.api.model.Color backColor, io.keikai.api.model.Color fillColor, io.keikai.api.model.CellStyle.FillPattern fillPattern, int rotation, io.keikai.ui.Spreadsheet ss)protected voidshowSelectFormatDialog()-
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
-
ARG_FORMAT_CODE
public static java.lang.String ARG_FORMAT_CODE
-
ARG_BACKGROUND_CODE
public static java.lang.String ARG_BACKGROUND_CODE
-
ARG_FILL_COLOR_CODE
public static java.lang.String ARG_FILL_COLOR_CODE
-
ARG_FILL_PATTERN_CODE
public static java.lang.String ARG_FILL_PATTERN_CODE
-
ARG_ROTATION_CODE
public static java.lang.String ARG_ROTATION_CODE
-
URI
public static java.lang.String URI
-
FORMAT_ITEMS
public static java.util.Map<java.lang.String,FormatCellCtrl.FormatItem> FORMAT_ITEMS
-
formatCode
protected java.lang.String formatCode
-
backColor
protected io.keikai.api.model.Color backColor
-
fillColor
protected io.keikai.api.model.Color fillColor
-
pattern
protected io.keikai.api.model.CellStyle.FillPattern pattern
-
rotation
protected int rotation
-
categories
protected java.lang.String[] categories
-
patternListmodel
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerFillPattern> patternListmodel
-
patternChanged
protected boolean patternChanged
-
rotationListmodel
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerRotation> rotationListmodel
-
mfn_category
protected org.zkoss.zul.Listbox mfn_category
-
mfn_general
protected org.zkoss.zul.Listbox mfn_general
-
mfn_custom_box
protected org.zkoss.zk.ui.Component mfn_custom_box
-
mfn_custom_value
protected org.zkoss.zul.Textbox mfn_custom_value
-
selectedCategory
protected org.zkoss.zul.Listbox selectedCategory
-
backColorbox
protected org.zkoss.zkex.zul.Colorbox backColorbox
-
fillColorbox
protected org.zkoss.zkex.zul.Colorbox fillColorbox
-
patternCombobox
protected org.zkoss.zul.Combobox patternCombobox
-
rotationCombobox
protected org.zkoss.zul.Combobox rotationCombobox
-
-
Method Detail
-
show
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, java.lang.String formatCode, io.keikai.api.model.Color backColor, io.keikai.api.model.Color fillColor, io.keikai.api.model.CellStyle.FillPattern fillPattern, int rotation, io.keikai.ui.Spreadsheet ss)
-
doAfterCompose
public void doAfterCompose(org.zkoss.zul.Window comp) throws java.lang.Exception- Specified by:
doAfterComposein interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>- Overrides:
doAfterComposein classRefocusDialogCtrlBase- Throws:
java.lang.Exception
-
onSelect$mfn_category
public void onSelect$mfn_category(org.zkoss.zk.ui.event.SelectEvent event)
-
selectOption
protected void selectOption(org.zkoss.zul.Listbox lb)
-
openFormatList
protected void openFormatList(java.lang.String category, int index)
-
onClick$okBtn
public void onClick$okBtn()
-
showSelectFormatDialog
protected void showSelectFormatDialog()
-
onBackColorChange
public void onBackColorChange()
-
onCancel
public void onCancel()
-
putFormatItem
public static void putFormatItem(java.lang.String c, int i, java.lang.String f, int ci)
-
-