Source Code Cross Referenced for PjCatalog.java in  » PDF » pjx » com » etymon » pj » object » 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 » PDF » pjx » com.etymon.pj.object 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.etymon.pj.object;
002:
003:        import java.io.*;
004:        import java.util.*;
005:        import com.etymon.pj.*;
006:        import com.etymon.pj.exception.*;
007:
008:        /**
009:         A representation of a PDF Catalog dictionary.
010:         @author Nassib Nassar
011:         */
012:        public class PjCatalog extends PjDictionary {
013:
014:            /**
015:               Creates a new Catalog dictionary.
016:             */
017:            public PjCatalog() {
018:                super ();
019:                _h.put(PjName.TYPE, PjName.CATALOG);
020:            }
021:
022:            /**
023:               Creates a Catalog dictionary as a wrapper around a Hashtable.
024:               @param h the Hashtable to use for this dictionary.
025:             */
026:            public PjCatalog(Hashtable h) {
027:                super (h);
028:            }
029:
030:            public void setPages(PjReference pages) {
031:                _h.put(PjName.PAGES, pages);
032:            }
033:
034:            public PjObject getPages() throws InvalidPdfObjectException {
035:                return hget(PjName.PAGES);
036:            }
037:
038:            public void setOutlines(PjReference outlines) {
039:                _h.put(PjName.OUTLINES, outlines);
040:            }
041:
042:            public PjObject getOutlines() throws InvalidPdfObjectException {
043:                return hget(PjName.OUTLINES);
044:            }
045:
046:            public void setPageMode(PjName pageMode) {
047:                _h.put(PjName.PAGEMODE, pageMode);
048:            }
049:
050:            public void setPageMode(PjReference pageMode) {
051:                _h.put(PjName.PAGEMODE, pageMode);
052:            }
053:
054:            public PjObject getPageMode() throws InvalidPdfObjectException {
055:                return hget(PjName.PAGEMODE);
056:            }
057:
058:            public void setOpenAction(PjArray openAction) {
059:                _h.put(PjName.OPENACTION, openAction);
060:            }
061:
062:            public void setOpenAction(PjDictionary openAction) {
063:                _h.put(PjName.OPENACTION, openAction);
064:            }
065:
066:            public void setOpenAction(PjReference openAction) {
067:                _h.put(PjName.OPENACTION, openAction);
068:            }
069:
070:            public PjObject getOpenAction() throws InvalidPdfObjectException {
071:                return hget(PjName.OPENACTION);
072:            }
073:
074:            public void setThreads(PjReference threads) {
075:                _h.put(PjName.THREADS, threads);
076:            }
077:
078:            public PjObject getThreads() throws InvalidPdfObjectException {
079:                return hget(PjName.THREADS);
080:            }
081:
082:            public void setDests(PjReference dests) {
083:                _h.put(PjName.DESTS, dests);
084:            }
085:
086:            public PjObject getDests() throws InvalidPdfObjectException {
087:                return hget(PjName.DESTS);
088:            }
089:
090:            public void setNames(PjDictionary names) {
091:                _h.put(PjName.NAMES, names);
092:            }
093:
094:            public void setNames(PjReference names) {
095:                _h.put(PjName.NAMES, names);
096:            }
097:
098:            public PjObject getNames() throws InvalidPdfObjectException {
099:                return hget(PjName.NAMES);
100:            }
101:
102:            public void setURI(PjDictionary uri) {
103:                _h.put(PjName.URI, uri);
104:            }
105:
106:            public void setURI(PjReference uri) {
107:                _h.put(PjName.URI, uri);
108:            }
109:
110:            public PjObject getURI() throws InvalidPdfObjectException {
111:                return hget(PjName.URI);
112:            }
113:
114:            public void setAA(PjDictionary aa) {
115:                _h.put(PjName.URI, aa);
116:            }
117:
118:            public void setAA(PjReference aa) {
119:                _h.put(PjName.URI, aa);
120:            }
121:
122:            public PjObject getAA() throws InvalidPdfObjectException {
123:                return hget(PjName.AA);
124:            }
125:
126:            public void setViewerPreferences(PjDictionary viewerPreferences) {
127:                _h.put(PjName.VIEWERPREFERENCES, viewerPreferences);
128:            }
129:
130:            public void setViewerPreferences(PjReference viewerPreferences) {
131:                _h.put(PjName.VIEWERPREFERENCES, viewerPreferences);
132:            }
133:
134:            public PjObject getViewerPreferences()
135:                    throws InvalidPdfObjectException {
136:                return hget(PjName.VIEWERPREFERENCES);
137:            }
138:
139:            public void setAcroForm(PjDictionary acroForm) {
140:                _h.put(PjName.ACROFORM, acroForm);
141:            }
142:
143:            public void setAcroForm(PjReference acroForm) {
144:                _h.put(PjName.ACROFORM, acroForm);
145:            }
146:
147:            public PjObject getAcroForm() throws InvalidPdfObjectException {
148:                return hget(PjName.ACROFORM);
149:            }
150:
151:            /**
152:               Examines a dictionary to see if it is a PDF Catalog object.
153:               @param dictionary the dictionary to examine.
154:               @return true if the dictionary could be interpreted as a
155:               valid PjCatalog object.
156:             */
157:            public static boolean isLike(PjDictionary dictionary) {
158:                Hashtable h = dictionary.getHashtable();
159:                // check if the Type is Catalog
160:                try {
161:                    PjName type = (PjName) (h.get(PjName.TYPE));
162:                    if (type == null) {
163:                        return false;
164:                    }
165:                    if (!type.equals(PjName.CATALOG)) {
166:                        return false;
167:                    }
168:                } catch (ClassCastException e) {
169:                    return false;
170:                }
171:                return true;
172:            }
173:
174:            /**
175:               Returns a deep copy of this object.
176:               @return a deep copy of this object.
177:               @exception CloneNotSupportedException if the instance can not be cloned.
178:             */
179:            public Object clone() throws CloneNotSupportedException {
180:                return new PjCatalog(cloneHt());
181:            }
182:
183:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.