Source Code Cross Referenced for TabAreaComponentsProperties.java in  » Swing-Library » InfoNode-Docking-Windows » net » infonode » tabbedpanel » 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 » Swing Library » InfoNode Docking Windows » net.infonode.tabbedpanel 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (C) 2004 NNL Technology AB
003:         * Visit www.infonode.net for information about InfoNode(R) 
004:         * products and how to contact NNL Technology AB.
005:         *
006:         * This program is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU General Public License
008:         * as published by the Free Software Foundation; either version 2
009:         * of the License, or (at your option) any later version.
010:         *
011:         * This program is distributed in the hope that it will be useful,
012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014:         * GNU General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU General Public License
017:         * along with this program; if not, write to the Free Software
018:         * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
019:         * MA 02111-1307, USA.
020:         */
021:
022:        //$Id: TabAreaComponentsProperties.java,v 1.15 2005/02/16 11:28:15 jesper Exp $
023:        package net.infonode.tabbedpanel;
024:
025:        import net.infonode.gui.hover.HoverListener;
026:        import net.infonode.properties.gui.util.ComponentProperties;
027:        import net.infonode.properties.gui.util.ShapedPanelProperties;
028:        import net.infonode.properties.propertymap.*;
029:        import net.infonode.properties.types.BooleanProperty;
030:        import net.infonode.properties.types.HoverListenerProperty;
031:
032:        /**
033:         * TabAreaComponentsProperties holds all visual properties for the area in a
034:         * tabbed panel's tab area where the tab area components (scroll buttons, tab
035:         * drop down list and components set by calling setTabAreaComponents in a tabbed
036:         * panel) are shown. TabbedPanelProperties contains TabAreaComponentsProperties.
037:         *
038:         * @author $Author: jesper $
039:         * @version $Revision: 1.15 $
040:         * @see TabbedPanel
041:         * @see TabbedPanelProperties
042:         * @since ITP 1.1.0
043:         */
044:        public class TabAreaComponentsProperties extends PropertyMapContainer {
045:            /**
046:             * A property group for all properties in TabAreaComponentsProperties
047:             */
048:            public static final PropertyMapGroup PROPERTIES = new PropertyMapGroup(
049:                    "Tab Area Properties",
050:                    "Properties for the TabbedPanel class.");
051:
052:            /**
053:             * Stretch enabled property
054:             *
055:             * @see #setStretchEnabled
056:             * @see #getStretchEnabled
057:             */
058:            public static final BooleanProperty STRETCH_ENABLED = new BooleanProperty(
059:                    PROPERTIES,
060:                    "Stretch Enabled",
061:                    "Stretch components to be as high as tabs if tabs are higher than components.",
062:                    PropertyMapValueHandler.INSTANCE);
063:
064:            /**
065:             * Properties for the component
066:             *
067:             * @see #getComponentProperties
068:             */
069:            public static final PropertyMapProperty COMPONENT_PROPERTIES = new PropertyMapProperty(
070:                    PROPERTIES, "Component Properties",
071:                    "Properties for tab area components area.",
072:                    ComponentProperties.PROPERTIES);
073:
074:            /**
075:             * Properties for the shaped panel
076:             *
077:             * @see #getShapedPanelProperties
078:             * @since ITP 1.2.0
079:             */
080:            public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES = new PropertyMapProperty(
081:                    PROPERTIES, "Shaped Panel Properties",
082:                    "Properties for shaped tab area components area.",
083:                    ShapedPanelProperties.PROPERTIES);
084:
085:            /**
086:             * Hover listener property
087:             *
088:             * @see #setHoverListener
089:             * @see #getHoverListener
090:             * @since ITP 1.3.0
091:             */
092:            public static final HoverListenerProperty HOVER_LISTENER = new HoverListenerProperty(
093:                    PROPERTIES,
094:                    "Hover Listener",
095:                    "Hover Listener to be used for tracking mouse hovering over the tab area components area.",
096:                    PropertyMapValueHandler.INSTANCE);
097:
098:            /**
099:             * Constructs an empty TabAreaComponentsProperties object
100:             */
101:            public TabAreaComponentsProperties() {
102:                super (PROPERTIES);
103:            }
104:
105:            /**
106:             * Constructs a TabAreaComponentsProperties object with the given object as
107:             * property storage
108:             *
109:             * @param object object to store properties in
110:             */
111:            public TabAreaComponentsProperties(PropertyMap object) {
112:                super (object);
113:            }
114:
115:            /**
116:             * Constructs a TabAreaComponentsProperties object that inherits its properties
117:             * from the given TabAreaComponentsProperties object
118:             *
119:             * @param inheritFrom TabAreaComponentsProperties object to inherit properties from
120:             */
121:            public TabAreaComponentsProperties(
122:                    TabAreaComponentsProperties inheritFrom) {
123:                super (PropertyMapFactory.create(inheritFrom.getMap()));
124:            }
125:
126:            /**
127:             * Adds a super object from which property values are inherited.
128:             *
129:             * @param superObject the object from which to inherit property values
130:             * @return this
131:             */
132:            public TabAreaComponentsProperties addSuperObject(
133:                    TabAreaComponentsProperties super Object) {
134:                getMap().addSuperMap(super Object.getMap());
135:                return this ;
136:            }
137:
138:            /**
139:             * Removes the last added super object.
140:             *
141:             * @return this
142:             */
143:            public TabAreaComponentsProperties removeSuperObject() {
144:                getMap().removeSuperMap();
145:                return this ;
146:            }
147:
148:            /**
149:             * Removes the given super object.
150:             *
151:             * @param superObject super object to remove
152:             * @return this
153:             * @since ITP 1.3.0
154:             */
155:            public TabAreaComponentsProperties removeSuperObject(
156:                    TabAreaComponentsProperties super Object) {
157:                getMap().removeSuperMap(super Object.getMap());
158:                return this ;
159:            }
160:
161:            /**
162:             * Gets if components should be stretched to same height as tabs if tabs are
163:             * higher than components.
164:             *
165:             * @return true if stretch is enabled, otherwise false
166:             */
167:            public boolean getStretchEnabled() {
168:                return STRETCH_ENABLED.get(getMap());
169:            }
170:
171:            /**
172:             * Sets if components should be stretched to same height as tabs if tabs are
173:             * higher than components.
174:             *
175:             * @param enabled true for stretch, otherwise false
176:             * @return this TabAreaComponentsProperties
177:             */
178:            public TabAreaComponentsProperties setStretchEnabled(boolean enabled) {
179:                STRETCH_ENABLED.set(getMap(), enabled);
180:                return this ;
181:            }
182:
183:            /**
184:             * Gets the component properties
185:             *
186:             * @return component properties
187:             */
188:            public ComponentProperties getComponentProperties() {
189:                return new ComponentProperties(COMPONENT_PROPERTIES
190:                        .get(getMap()));
191:            }
192:
193:            /**
194:             * Gets the shaped panel properties
195:             *
196:             * @return shaped panel properties
197:             * @since ITP 1.2.0
198:             */
199:            public ShapedPanelProperties getShapedPanelProperties() {
200:                return new ShapedPanelProperties(SHAPED_PANEL_PROPERTIES
201:                        .get(getMap()));
202:            }
203:
204:            /**
205:             * <p>Sets the hover listener that will be triggered when the tab area components area is hoverd by the mouse.</p>
206:             *
207:             * <p>The tabbed panel that the hovered tab area components area is part of will be the source of the hover event
208:             * sent to the hover listener.</p>
209:             *
210:             * @param listener the hover listener
211:             * @return this TabAreaComponentsProperties
212:             * @since ITP 1.3.0
213:             */
214:            public TabAreaComponentsProperties setHoverListener(
215:                    HoverListener listener) {
216:                HOVER_LISTENER.set(getMap(), listener);
217:                return this ;
218:            }
219:
220:            /**
221:             * <p>Gets the hover listener that will be triggered when the tab area components area is hovered by the mouse.</p>
222:             *
223:             * <p>The tabbed panel that the hovered tab area components area is part of will be the source of the hover event
224:             * sent to the hover listener.</p>
225:             *
226:             * @return the hover listener
227:             * @since ITP 1.3.0
228:             */
229:            public HoverListener getHoverListener() {
230:                return HOVER_LISTENER.get(getMap());
231:            }
232:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.