Java Doc for NameRecord.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hssf » record » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hssf.record 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hssf.record.Record
      org.apache.poi.hssf.record.NameRecord

NameRecord
public class NameRecord extends Record (Code)
Title: Name Record (aka Named Range)

Description: Defines a named range within a workbook.

REFERENCE:


author:
   Libin Roman (Vista Portal LDT. Developer)
author:
   Sergei Kozello (sergeikozello at mail.ru)
author:
   Glen Stampoultzis (glens at apache.org)
version:
   1.0-pre



Field Summary
final public static  byteBUILTIN_AUTO_ACTIVATE
    
final public static  byteBUILTIN_AUTO_CLOSE
    
final public static  byteBUILTIN_AUTO_DEACTIVATE
    
final public static  byteBUILTIN_AUTO_OPEN
    
final public static  byteBUILTIN_CONSOLIDATE_AREA
    
final public static  byteBUILTIN_CRITERIA
    
final public static  byteBUILTIN_DATABASE
    
final public static  byteBUILTIN_DATA_FORM
    
final public static  byteBUILTIN_PRINT_AREA
    
final public static  byteBUILTIN_PRINT_TITLE
    
final public static  byteBUILTIN_RECORDER
    
final public static  byteBUILTIN_SHEET_TITLE
    
final public static  shortOPT_BINDATA
    
final public static  shortOPT_BUILTIN
    
final public static  shortOPT_COMMAND_NAME
    
final public static  shortOPT_COMPLEX
    
final public static  shortOPT_FUNCTION_NAME
    
final public static  shortOPT_HIDDEN_NAME
    
final public static  shortOPT_MACRO
    
final public static  shortsid
    

Constructor Summary
public  NameRecord()
    
public  NameRecord(RecordInputStream in)
     Constructs a Name record and sets its fields appropriately.
public  NameRecord(byte builtin, short index)
    

Method Summary
protected  voidfillFields(RecordInputStream in)
     called by the constructor, should set class level fields.
public  StringgetAreaReference(Workbook book)
    
public  bytegetBuiltInName()
    
public  bytegetCompressedUnicodeFlag()
    
public  bytegetCustomMenuLength()
    
public  StringgetCustomMenuText()
    
public  shortgetDefinitionLength()
    
public  StringgetDescriptionText()
    
public  bytegetDescriptionTextLength()
    
public  shortgetEqualsToIndexToSheet()
    
public  shortgetExternSheetNumber()
    
public  bytegetFnGroup()
    
public  bytegetHelpTopicLength()
    
public  StringgetHelpTopicText()
    
public  shortgetIndexToSheet()
     Convenience method to retrieve the index the name refers to.
public  bytegetKeyboardShortcut()
    
public  ListgetNameDefinition()
    
public  StringgetNameText()
    
public  bytegetNameTextLength()
    
public  shortgetOptionFlag()
    
public  intgetRecordSize()
    
public  shortgetSid()
     return the non static version of the id for this record.
public  bytegetStatusBarLength()
    
public  StringgetStatusBarText()
    
public  intgetTextsLength()
    
public  shortgetUnused()
    
public  booleanisBuiltInName()
    
public  booleanisCommandName()
    
public  booleanisComplexFunction()
    
public  booleanisFunctionName()
    
public  booleanisHiddenName()
    
public  booleanisMacro()
    
public  intserialize(int offset, byte[] data)
     called by the class that is responsible for writing this sucker.
public  voidsetAreaReference(String ref)
    
public  voidsetCompressedUnicodeFlag(byte flag)
    
public  voidsetCustomMenuLength(byte length)
    
public  voidsetCustomMenuText(String text)
    
public  voidsetDefinitionTextLength(short length)
    
public  voidsetDescriptionText(String text)
    
public  voidsetDescriptionTextLength(byte length)
    
public  voidsetEqualsToIndexToSheet(short value)
    
public  voidsetExternSheetNumber(short externSheetNumber)
    
public  voidsetHelpTopicLength(byte length)
    
public  voidsetHelpTopicText(String text)
    
public  voidsetKeyboardShortcut(byte shortcut)
    
public  voidsetNameDefinition(Stack nameDefinition)
    
public  voidsetNameText(String name)
    
public  voidsetNameTextLength(byte length)
    
public  voidsetOptionFlag(short flag)
    
public  voidsetStatusBarLength(byte length)
    
public  voidsetStatusBarText(String text)
    
public  voidsetUnused(short index)
    
public  StringtoString()
    
protected  StringtranslateBuiltInName(byte name)
    
protected  voidvalidateSid(short id)
     called by constructor, should throw runtime exception in the event of a record passed with a differing ID.

Field Detail
BUILTIN_AUTO_ACTIVATE
final public static byte BUILTIN_AUTO_ACTIVATE(Code)
Included for completeness sake, not implemented



BUILTIN_AUTO_CLOSE
final public static byte BUILTIN_AUTO_CLOSE(Code)
Included for completeness sake, not implemented



BUILTIN_AUTO_DEACTIVATE
final public static byte BUILTIN_AUTO_DEACTIVATE(Code)
Included for completeness sake, not implemented



BUILTIN_AUTO_OPEN
final public static byte BUILTIN_AUTO_OPEN(Code)
Included for completeness sake, not implemented



BUILTIN_CONSOLIDATE_AREA
final public static byte BUILTIN_CONSOLIDATE_AREA(Code)
Included for completeness sake, not implemented



BUILTIN_CRITERIA
final public static byte BUILTIN_CRITERIA(Code)
Included for completeness sake, not implemented



BUILTIN_DATABASE
final public static byte BUILTIN_DATABASE(Code)
Included for completeness sake, not implemented



BUILTIN_DATA_FORM
final public static byte BUILTIN_DATA_FORM(Code)
Included for completeness sake, not implemented



BUILTIN_PRINT_AREA
final public static byte BUILTIN_PRINT_AREA(Code)



BUILTIN_PRINT_TITLE
final public static byte BUILTIN_PRINT_TITLE(Code)



BUILTIN_RECORDER
final public static byte BUILTIN_RECORDER(Code)
Included for completeness sake, not implemented



BUILTIN_SHEET_TITLE
final public static byte BUILTIN_SHEET_TITLE(Code)
Included for completeness sake, not implemented



OPT_BINDATA
final public static short OPT_BINDATA(Code)



OPT_BUILTIN
final public static short OPT_BUILTIN(Code)



OPT_COMMAND_NAME
final public static short OPT_COMMAND_NAME(Code)



OPT_COMPLEX
final public static short OPT_COMPLEX(Code)



OPT_FUNCTION_NAME
final public static short OPT_FUNCTION_NAME(Code)



OPT_HIDDEN_NAME
final public static short OPT_HIDDEN_NAME(Code)



OPT_MACRO
final public static short OPT_MACRO(Code)



sid
final public static short sid(Code)




Constructor Detail
NameRecord
public NameRecord()(Code)
Creates new NameRecord



NameRecord
public NameRecord(RecordInputStream in)(Code)
Constructs a Name record and sets its fields appropriately.
Parameters:
  in - the RecordInputstream to read the record from



NameRecord
public NameRecord(byte builtin, short index)(Code)
Constructor to create a built-in named region
Parameters:
  builtin - Built-in byte representation for the name record, use the public constants
Parameters:
  index -




Method Detail
fillFields
protected void fillFields(RecordInputStream in)(Code)
called by the constructor, should set class level fields. Should throw runtime exception for bad/icomplete data.
Parameters:
  in - the RecordInputstream to read the record from



getAreaReference
public String getAreaReference(Workbook book)(Code)
gets the reference , the area only (range) area reference



getBuiltInName
public byte getBuiltInName()(Code)
Gets the Built In Name the built in Name



getCompressedUnicodeFlag
public byte getCompressedUnicodeFlag()(Code)
gets the name compressed Unicode flag compressed unicode flag



getCustomMenuLength
public byte getCustomMenuLength()(Code)
gets the custom menu length custom menu length



getCustomMenuText
public String getCustomMenuText()(Code)
get the custom menu text custom menu text



getDefinitionLength
public short getDefinitionLength()(Code)
get the definition length definition length



getDescriptionText
public String getDescriptionText()(Code)
gets the description text description text



getDescriptionTextLength
public byte getDescriptionTextLength()(Code)
gets the description text length description text length



getEqualsToIndexToSheet
public short getEqualsToIndexToSheet()(Code)



getExternSheetNumber
public short getExternSheetNumber()(Code)
gets the extern sheet number extern sheet index



getFnGroup
public byte getFnGroup()(Code)
function group
See Also:   FnGroupCountRecord



getHelpTopicLength
public byte getHelpTopicLength()(Code)
gets the help topic length help topic length



getHelpTopicText
public String getHelpTopicText()(Code)
get the help topic text gelp topic text



getIndexToSheet
public short getIndexToSheet()(Code)
Convenience method to retrieve the index the name refers to.
See Also:   NameRecord.getEqualsToIndexToSheet() short



getKeyboardShortcut
public byte getKeyboardShortcut()(Code)
returns the keyboard shortcut keyboard shortcut



getNameDefinition
public List getNameDefinition()(Code)
gets the definition, reference (Formula) definition -- can be null if we cant parse ptgs



getNameText
public String getNameText()(Code)
gets the name name



getNameTextLength
public byte getNameTextLength()(Code)
gets the name length name length



getOptionFlag
public short getOptionFlag()(Code)
gets the option flag option flag



getRecordSize
public int getRecordSize()(Code)
returns the record size



getSid
public short getSid()(Code)
return the non static version of the id for this record.



getStatusBarLength
public byte getStatusBarLength()(Code)
get the status bar text length satus bar length



getStatusBarText
public String getStatusBarText()(Code)
gets the status bar text status bar text



getTextsLength
public int getTextsLength()(Code)
gets the length of all texts total length



getUnused
public short getUnused()(Code)
gets the index to extern sheet index to extern sheet



isBuiltInName
public boolean isBuiltInName()(Code)
Convenience Function to determine if the name is a built-in name



isCommandName
public boolean isCommandName()(Code)
true if name is a command



isComplexFunction
public boolean isComplexFunction()(Code)
true if array formula or user defined



isFunctionName
public boolean isFunctionName()(Code)
true if name is a function



isHiddenName
public boolean isHiddenName()(Code)
true if name is hidden



isMacro
public boolean isMacro()(Code)
true if function macro or command macro



serialize
public int serialize(int offset, byte[] data)(Code)
called by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a
Parameters:
  offset - to begin writing at
Parameters:
  data - byte array containing instance data number of bytes written



setAreaReference
public void setAreaReference(String ref)(Code)
sets the reference , the area only (range)
Parameters:
  ref - area reference



setCompressedUnicodeFlag
public void setCompressedUnicodeFlag(byte flag)(Code)
sets the compressed unicode flag
Parameters:
  flag - unicode flag



setCustomMenuLength
public void setCustomMenuLength(byte length)(Code)
sets the custom menu length
Parameters:
  length - custom menu length



setCustomMenuText
public void setCustomMenuText(String text)(Code)
sets the custom menu text
Parameters:
  text - custom menu text



setDefinitionTextLength
public void setDefinitionTextLength(short length)(Code)
sets the definition (reference - formula) length
Parameters:
  length - defenition length



setDescriptionText
public void setDescriptionText(String text)(Code)
sets the description text
Parameters:
  text - the description text



setDescriptionTextLength
public void setDescriptionTextLength(byte length)(Code)
sets the length of named range description
Parameters:
  length - description length



setEqualsToIndexToSheet
public void setEqualsToIndexToSheet(short value)(Code)



setExternSheetNumber
public void setExternSheetNumber(short externSheetNumber)(Code)
sets the extern sheet number
Parameters:
  externSheetNumber - extern sheet number



setHelpTopicLength
public void setHelpTopicLength(byte length)(Code)
sets the help topic length
Parameters:
  length - help topic length



setHelpTopicText
public void setHelpTopicText(String text)(Code)
sets the help topic text
Parameters:
  text - help topix text



setKeyboardShortcut
public void setKeyboardShortcut(byte shortcut)(Code)
sets the keyboard shortcut
Parameters:
  shortcut - keyboard shortcut



setNameDefinition
public void setNameDefinition(Stack nameDefinition)(Code)



setNameText
public void setNameText(String name)(Code)
sets the name of the named range
Parameters:
  name - named range name



setNameTextLength
public void setNameTextLength(byte length)(Code)
sets the name of the named range length
Parameters:
  length - name length



setOptionFlag
public void setOptionFlag(short flag)(Code)
sets the option flag for the named range
Parameters:
  flag - option flag



setStatusBarLength
public void setStatusBarLength(byte length)(Code)
sets the length of the status bar text
Parameters:
  length - status bar text length



setStatusBarText
public void setStatusBarText(String text)(Code)
sets the status bar text
Parameters:
  text - status bar text



setUnused
public void setUnused(short index)(Code)
sets the index number to the extern sheet (thats is what writen in documentation but as i saw , it works differently)
Parameters:
  index - extern sheet index



toString
public String toString()(Code)

See Also:   Object.toString



translateBuiltInName
protected String translateBuiltInName(byte name)(Code)
Creates a human readable name for built in types Unknown if the built-in name cannot be translated



validateSid
protected void validateSid(short id)(Code)
called by constructor, should throw runtime exception in the event of a record passed with a differing ID.
Parameters:
  id - alleged id for this record



Methods inherited from org.apache.poi.hssf.record.Record
public Object clone()(Code)(Java Doc)
abstract protected void fillFields(RecordInputStream in)(Code)(Java Doc)
public int getRecordSize()(Code)(Java Doc)
abstract public short getSid()(Code)(Java Doc)
public boolean isInValueSection()(Code)(Java Doc)
public boolean isValue()(Code)(Java Doc)
public byte[] serialize()(Code)(Java Doc)
abstract public int serialize(int offset, byte[] data)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract protected void validateSid(short id)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.