Documentation of 'org.apache.poi.xssf.usermodel.XSSFName' Java class
XSSFName
org.apache.poi.xssf.usermodel

Class XSSFName

  • All Implemented Interfaces:
    Name


    public final class XSSFName
    extends java.lang.Object
    implements Name
    Represents a defined named range in a SpreadsheetML workbook.

    Defined names are descriptive text that is used to represents a cell, range of cells, formula, or constant value. Use easy-to-understand names, such as Products, to refer to hard to understand ranges, such as Sales!C20:C30.

    Example:
    XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sh = wb.createSheet("Sheet1"); //applies to the entire workbook XSSFName name1 = wb.createName(); name1.setNameName("FMLA"); name1.setRefersToFormula("Sheet1!$B$3"); //applies to Sheet1 XSSFName name2 = wb.createName(); name2.setNameName("SheetLevelName"); name2.setComment("This name is scoped to Sheet1"); name2.setLocalSheetId(0); name2.setRefersToFormula("Sheet1!$B$3");
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String BUILTIN_CONSOLIDATE_AREA
      A built-in defined name that refers to a consolidation area
      static java.lang.String BUILTIN_CRITERIA
      A built-in defined name that refers to a range containing the criteria values to be used in applying an advanced filter to a range of data
      static java.lang.String BUILTIN_DATABASE
      A built-in defined name that specified that the range specified is from a database data source
      static java.lang.String BUILTIN_EXTRACT
      this defined name refers to the range containing the filtered output values resulting from applying an advanced filter criteria to a source range
      static java.lang.String BUILTIN_FILTER_DB
      ?an be one of the following this defined name refers to a range to which an advanced filter has been applied.
      static java.lang.String BUILTIN_PRINT_AREA
      A built-in defined name that specifies the workbook's print area
      static java.lang.String BUILTIN_PRINT_TITLE
      A built-in defined name that specifies the row(s) or column(s) to repeat at the top of each printed page.
      static java.lang.String BUILTIN_SHEET_TITLE
      A built-in defined name that refers to a sheet title.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Compares this name to the specified object.
      java.lang.String getComment()
      Returns the comment the user provided when the name was created.
      boolean getFunction()
      Indicates that the defined name refers to a user-defined function.
      int getFunctionGroupId()
      Returns the function group index if the defined name refers to a function.
      java.lang.String getNameName()
      Returns the name that will appear in the user interface for the defined name.
      java.lang.String getRefersToFormula()
      Returns the formula that the name is defined to refer to.
      int getSheetIndex()
      Returns the sheet index this name applies to.
      java.lang.String getSheetName()
      Get the sheets name which this named range is referenced to
      int hashCode() 
      boolean isDeleted()
      Checks if this name points to a cell that no longer exists
      boolean isFunctionName()
      Is the name refers to a user-defined function ?
      void setComment(java.lang.String comment)
      Specifies the comment the user provided when the name was created.
      void setFunction(boolean value)
      Indicates that the defined name refers to a user-defined function.
      void setFunctionGroupId(int functionGroupId)
      Specifies the function group index if the defined name refers to a function.
      void setNameName(java.lang.String name)
      Sets the name that will appear in the user interface for the defined name.
      void setRefersToFormula(java.lang.String formulaText)
      Sets the formula that the name is defined to refer to.
      void setSheetIndex(int index)
      Tell Excel that this name applies to the worksheet with the specified index instead of the entire workbook.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BUILTIN_PRINT_AREA

        public static final java.lang.String BUILTIN_PRINT_AREA
        A built-in defined name that specifies the workbook's print area
        See Also:
        Constant Field Values
      • BUILTIN_PRINT_TITLE

        public static final java.lang.String BUILTIN_PRINT_TITLE
        A built-in defined name that specifies the row(s) or column(s) to repeat at the top of each printed page.
        See Also:
        Constant Field Values
      • BUILTIN_CRITERIA

        public static final java.lang.String BUILTIN_CRITERIA
        A built-in defined name that refers to a range containing the criteria values to be used in applying an advanced filter to a range of data
        See Also:
        Constant Field Values
      • BUILTIN_EXTRACT

        public static final java.lang.String BUILTIN_EXTRACT
        this defined name refers to the range containing the filtered output values resulting from applying an advanced filter criteria to a source range
        See Also:
        Constant Field Values
      • BUILTIN_FILTER_DB

        public static final java.lang.String BUILTIN_FILTER_DB
        ?an be one of the following
      • this defined name refers to a range to which an advanced filter has been applied. This represents the source data range, unfiltered.
      • This defined name refers to a range to which an AutoFilter has been applied
See Also:
Constant Field Values

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.