Пример #1
0
        /**
         *
         * @return a new instance of LbsDataSubRecord to construct auto-filters
         * @see org.apache.poi.hssf.model.ComboboxShape#createObjRecord(org.apache.poi.hssf.usermodel.HSSFSimpleShape, int)
         */
        public static LbsDataSubRecord CreateAutoFilterInstance()
        {
            LbsDataSubRecord lbs = new LbsDataSubRecord();

            lbs._cbFContinued = 0x1FEE;  //autofilters seem to alway have this magic number
            lbs._iSel         = 0x000;

            lbs._flags            = 0x0301;
            lbs._dropData         = new LbsDropData();
            lbs._dropData._wStyle = LbsDropData.STYLE_COMBO_SIMPLE_DROPDOWN;

            // the number of lines to be displayed in the dropdown
            lbs._dropData._cLine = 8;
            return(lbs);
        }
Пример #2
0
        /**
  *
  * @return a new instance of LbsDataSubRecord to construct auto-filters
  * @see org.apache.poi.hssf.model.ComboboxShape#createObjRecord(org.apache.poi.hssf.usermodel.HSSFSimpleShape, int)
  */
        public static LbsDataSubRecord CreateAutoFilterInstance()
        {
            LbsDataSubRecord lbs = new LbsDataSubRecord();
            lbs._cbFContinued = 0x1FEE;  //autofilters seem to alway have this magic number
            lbs._iSel = 0x000;

            lbs._flags = 0x0301;
            lbs._dropData = new LbsDropData();
            lbs._dropData._wStyle = LbsDropData.STYLE_COMBO_SIMPLE_DROPDOWN;

            // the number of lines to be displayed in the dropdown
            lbs._dropData._cLine = 8;
            return lbs;
        }