Source Code Cross Referenced for XScrollableMetaContent.java in  » XML-UI » XUI » net » xoetrope » awt » 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 » XML UI » XUI » net.xoetrope.awt 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package net.xoetrope.awt;
02:
03:        import net.xoetrope.xml.XmlElement;
04:        import net.xoetrope.xui.XMetaContentHolder;
05:        import net.xoetrope.xui.style.XStyleComponent;
06:
07:        /**
08:         * <p>Implements a scrollable holder for a XMetaContent component </p>
09:         * <p>Copyright: Copyright (c) Xoetrope Ltd., 1998-2003<br>
10:         * License:      see license.txt
11:         * @version $Revision: 1.11 $
12:         */
13:        public class XScrollableMetaContent extends XScrollPane implements 
14:                XMetaContentHolder, XStyleComponent {
15:            protected XMetaContent content;
16:
17:            /**
18:             * Constrcuts a new container for an XMetaContent component
19:             */
20:            public XScrollableMetaContent() {
21:                content = new XMetaContent();
22:                add(content, 0);
23:            }
24:
25:            /**
26:             * Sets the meta content
27:             * @param source the location from which the xml was obtained
28:             * @param src the new content
29:             */
30:            public void setContent(String source, XmlElement src) {
31:                content.setContent(source, src);
32:                doLayout();
33:            }
34:
35:            /**
36:             * Sets the meta content as a string
37:             * @param cont the new string content
38:             */
39:            public void setContent(String cont) {
40:                content.setContent(cont);
41:                doLayout();
42:            }
43:
44:            /**
45:             * Get the meta content's name .
46:             * @return the model name of the content
47:             */
48:            public String getContent() {
49:                return content.getContent();
50:            }
51:
52:            /**
53:             * Get the source of the current content
54:             * @return
55:             */
56:            public String getSource() {
57:                if (content != null)
58:                    return content.getSource();
59:
60:                return null;
61:            }
62:
63:            /**
64:             * Sets the padding for the content
65:             * @param padding
66:             */
67:            public void setPadding(int padding) {
68:                content.setPadding(padding);
69:                doLayout();
70:            }
71:
72:            /**
73:             * Set the current style
74:             * @param style the new style
75:             */
76:            public void setStyle(String style) {
77:                content.setStyle(style);
78:            }
79:
80:            /**
81:             * Sets the bounds for this component
82:             * @param x
83:             * @param y
84:             * @param w
85:             * @param h
86:             */
87:            public void setBounds(int x, int y, int w, int h) {
88:                content.setBounds(0, 0, w, h);
89:                super.setBounds(x, y, w, h);
90:                doLayout();
91:            }
92:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.