예제 #1
0
        /**
         * Accessor for the last column
         *
         * @return the last column
         */
        public int getLastColumn()
        {
            if (dvParser == null)
            {
                initialize();
            }

            return(dvParser.getLastColumn());
        }
예제 #2
0
        /**
         * Gets the range of cells to which the data validation applies.  If the
         * validation applies to just this cell, this will be reflected in the
         * returned range
         *
         * @return the range to which the same validation extends, or NULL if this
         *         cell doesn't have a validation
         */
        public virtual Range getSharedDataValidationRange()
        {
            if (!dataValidation)
            {
                return(null);
            }

            DVParser dvp = getDVParser();

            return(new SheetRangeImpl(writableCell.getSheet(),
                                      dvp.getFirstColumn(),
                                      dvp.getFirstRow(),
                                      dvp.getLastColumn(),
                                      dvp.getLastRow()));
        }