Source Code Cross Referenced for WindowControl.java in  » Web-Framework » jWic » de » jwic » controls » 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 » Web Framework » jWic » de.jwic.controls 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * de.jwic.controls.WindowControl
003:         * $Id: WindowControl.java,v 1.1 2006/01/16 08:31:12 lordsam Exp $
004:         */
005:        package de.jwic.controls;
006:
007:        import de.jwic.base.ControlContainer;
008:        import de.jwic.base.IControlContainer;
009:        import de.jwic.base.IOuterLayout;
010:
011:        /**
012:         * Displays the contained controls within a table that looks like a window with
013:         * a title.
014:         * @author Florian Lippisch
015:         * @version $Revision: 1.1 $
016:         */
017:        public class WindowControl extends ControlContainer implements 
018:                IOuterLayout {
019:
020:            private static final long serialVersionUID = 1L;
021:
022:            private String outerTemplateName = WindowControl.class.getName();
023:            private String title = null;
024:            private String align = "left";
025:            private String width = "100%";
026:
027:            /**
028:             * @param container
029:             */
030:            public WindowControl(IControlContainer container) {
031:                super (container);
032:                init();
033:            }
034:
035:            /**
036:             * @param container
037:             * @param name
038:             */
039:            public WindowControl(IControlContainer container, String name) {
040:                super (container, name);
041:                init();
042:            }
043:
044:            /**
045:             * Initialize the control.
046:             */
047:            private void init() {
048:                setRendererId(DEFAULT_OUTER_RENDERER);
049:                title = getName();
050:            }
051:
052:            /**
053:             * @return Returns the align.
054:             */
055:            public String getAlign() {
056:                return align;
057:            }
058:
059:            /**
060:             * @return Returns the width.
061:             */
062:            public String getWidth() {
063:                return width;
064:            }
065:
066:            /**
067:             * Returns <code>null</code> if the class has not been extended and
068:             * no template name has been set.
069:             * @see de.jwic.base.Control#getTemplateName()
070:             */
071:            public String getTemplateName() {
072:                String tmpl = super .getTemplateName();
073:                if (tmpl.equals(outerTemplateName)
074:                        || tmpl.equals(WindowControl.class.getName())) {
075:                    return null;
076:                }
077:                return super .getTemplateName();
078:            }
079:
080:            /**
081:             * @return Returns the title.
082:             */
083:            public String getTitle() {
084:                return title;
085:            }
086:
087:            /**
088:             * @param title The title to set.
089:             */
090:            public void setTitle(String title) {
091:                this .title = title;
092:                requireRedraw();
093:            }
094:
095:            /* (non-Javadoc)
096:             * @see de.jwic.base.IOuterLayout#getOuterTemplateName()
097:             */
098:            public String getOuterTemplateName() {
099:                return outerTemplateName;
100:            }
101:
102:            /**
103:             * The outerTemplateName to set.
104:             * @param outerTemplateName
105:             */
106:            public void setOuterTemplateName(String outerTemplateName) {
107:                this .outerTemplateName = outerTemplateName;
108:            }
109:
110:            /**
111:             * @param string
112:             */
113:            public void setAlign(String string) {
114:                align = string;
115:                requireRedraw();
116:
117:            }
118:
119:            /**
120:             * @param string
121:             */
122:            public void setWidth(String string) {
123:                width = string;
124:                requireRedraw();
125:            }
126:
127:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.