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:
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 StringARG_BACKGROUND_CODEstatic StringARG_FILL_COLOR_CODEstatic StringARG_FILL_PATTERN_CODEstatic StringARG_FORMAT_CODEstatic StringARG_ROTATION_CODEprotected ColorbackColorprotected org.zkoss.zkex.zul.ColorboxbackColorboxprotected String[]categoriesprotected ColorfillColorprotected org.zkoss.zkex.zul.ColorboxfillColorboxstatic Map<String,FormatCellCtrl.FormatItem>FORMAT_ITEMSprotected StringformatCodeprotected org.zkoss.zul.Listboxmfn_categoryprotected org.zkoss.zk.ui.Componentmfn_custom_boxprotected org.zkoss.zul.Textboxmfn_custom_valueprotected org.zkoss.zul.Listboxmfn_generalprotected 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 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(String category, int index)static voidputFormatItem(String c, int i, String f, int ci)protected voidselectOption(org.zkoss.zul.Listbox lb)static voidshow(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, String formatCode, Color backColor, Color fillColor, CellStyle.FillPattern fillPattern, int rotation, 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 String ARG_FORMAT_CODE
-
ARG_BACKGROUND_CODE
public static String ARG_BACKGROUND_CODE
-
ARG_FILL_COLOR_CODE
public static String ARG_FILL_COLOR_CODE
-
ARG_FILL_PATTERN_CODE
public static String ARG_FILL_PATTERN_CODE
-
ARG_ROTATION_CODE
public static String ARG_ROTATION_CODE
-
URI
public static String URI
-
FORMAT_ITEMS
public static Map<String,FormatCellCtrl.FormatItem> FORMAT_ITEMS
-
formatCode
protected String formatCode
-
backColor
protected Color backColor
-
fillColor
protected Color fillColor
-
pattern
protected CellStyle.FillPattern pattern
-
rotation
protected int rotation
-
categories
protected 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, String formatCode, Color backColor, Color fillColor, CellStyle.FillPattern fillPattern, int rotation, Spreadsheet ss)
-
doAfterCompose
public void doAfterCompose(org.zkoss.zul.Window comp) throws Exception- Specified by:
doAfterComposein interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>- Overrides:
doAfterComposein classRefocusDialogCtrlBase- Throws:
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(String category, int index)
-
onClick$okBtn
public void onClick$okBtn()
-
showSelectFormatDialog
protected void showSelectFormatDialog()
-
onBackColorChange
public void onBackColorChange()
-
onCancel
public void onCancel()
-
-