Example #1
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()));
        }