Class FormatCellCtrl

java.lang.Object
org.zkoss.zk.ui.select.SelectorComposer<org.zkoss.zul.Window>
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:
  • Field Details

    • 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
  • Constructor Details

    • FormatCellCtrl

      public FormatCellCtrl()
  • Method Details

    • 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 interface org.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
      Overrides:
      doAfterCompose in class RefocusDialogCtrlBase
      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()
    • putFormatItem

      public static void putFormatItem(String c, int i, String f, int ci)