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 class
FormatCellCtrl.FormatItem
static class
FormatCellCtrl.InnerFillPattern
static class
FormatCellCtrl.InnerRotation
-
Nested classes/interfaces inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
DialogCtrlBase.Entry
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARG_BACKGROUND_CODE
static String
ARG_FILL_COLOR_CODE
static String
ARG_FILL_PATTERN_CODE
static String
ARG_FORMAT_CODE
static String
ARG_ROTATION_CODE
protected Color
backColor
protected org.zkoss.zkex.zul.Colorbox
backColorbox
protected String[]
categories
protected Color
fillColor
protected org.zkoss.zkex.zul.Colorbox
fillColorbox
static Map<String,FormatCellCtrl.FormatItem>
FORMAT_ITEMS
protected String
formatCode
protected org.zkoss.zul.Listbox
mfn_category
protected org.zkoss.zk.ui.Component
mfn_custom_box
protected org.zkoss.zul.Textbox
mfn_custom_value
protected org.zkoss.zul.Listbox
mfn_general
protected CellStyle.FillPattern
pattern
protected boolean
patternChanged
protected org.zkoss.zul.Combobox
patternCombobox
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerFillPattern>
patternListmodel
protected int
rotation
protected org.zkoss.zul.Combobox
rotationCombobox
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerRotation>
rotationListmodel
protected org.zkoss.zul.Listbox
selectedCategory
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 FormatCellCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAfterCompose(org.zkoss.zul.Window comp)
void
onBackColorChange()
void
onCancel()
void
onClick$okBtn()
void
onSelect$mfn_category(org.zkoss.zk.ui.event.SelectEvent event)
protected void
openFormatList(String category, int index)
static void
putFormatItem(String c, int i, String f, int ci)
protected void
selectOption(org.zkoss.zul.Listbox lb)
static void
show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, String formatCode, Color backColor, Color fillColor, CellStyle.FillPattern fillPattern, int rotation, Spreadsheet ss)
protected void
showSelectFormatDialog()
-
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:
doAfterCompose
in interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
- Overrides:
doAfterCompose
in 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()
-
-