public class FormatCellCtrl extends RefocusDialogCtrlBase
Modifier and Type | Class and Description |
---|---|
static class |
FormatCellCtrl.FormatItem |
static class |
FormatCellCtrl.InnerFillPattern |
static class |
FormatCellCtrl.InnerRotation |
DialogCtrlBase.Entry
Modifier and Type | Field and 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 |
ARG_SPREADSHEET
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
Constructor and Description |
---|
FormatCellCtrl() |
Modifier and Type | Method and 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() |
detach
getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
public static String ARG_FORMAT_CODE
public static String ARG_BACKGROUND_CODE
public static String ARG_FILL_COLOR_CODE
public static String ARG_FILL_PATTERN_CODE
public static String ARG_ROTATION_CODE
public static String URI
public static Map<String,FormatCellCtrl.FormatItem> FORMAT_ITEMS
protected String formatCode
protected Color backColor
protected Color fillColor
protected CellStyle.FillPattern pattern
protected int rotation
protected String[] categories
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerFillPattern> patternListmodel
protected boolean patternChanged
protected org.zkoss.zul.ListModelList<FormatCellCtrl.InnerRotation> rotationListmodel
protected org.zkoss.zul.Listbox mfn_category
protected org.zkoss.zul.Listbox mfn_general
protected org.zkoss.zk.ui.Component mfn_custom_box
protected org.zkoss.zul.Textbox mfn_custom_value
protected org.zkoss.zul.Listbox selectedCategory
protected org.zkoss.zkex.zul.Colorbox backColorbox
protected org.zkoss.zkex.zul.Colorbox fillColorbox
protected org.zkoss.zul.Combobox patternCombobox
protected org.zkoss.zul.Combobox rotationCombobox
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)
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
public void onSelect$mfn_category(org.zkoss.zk.ui.event.SelectEvent event)
protected void selectOption(org.zkoss.zul.Listbox lb)
protected void openFormatList(String category, int index)
public void onClick$okBtn()
protected void showSelectFormatDialog()
public void onBackColorChange()
public void onCancel()
Copyright © 2020. All rights reserved.