Source Code Cross Referenced for QuickTipsConfig.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » 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 » Ajax » gwtext 2.01 » com.gwtext.client.widgets 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * GWT-Ext Widget Library
003:         * Copyright(c) 2007-2008, GWT-Ext.
004:         * licensing@gwt-ext.com
005:         * 
006:         * http://www.gwt-ext.com/license
007:         */
008:
009:        package com.gwtext.client.widgets;
010:
011:        import com.gwtext.client.core.BaseConfig;
012:        import com.gwtext.client.util.JavaScriptObjectHelper;
013:        import com.google.gwt.user.client.Element;
014:
015:        /**
016:         * Configuration class for {@link com.gwtext.client.widgets.QuickTips}.
017:         */
018:        public class QuickTipsConfig extends BaseConfig {
019:
020:            /**
021:             * True to automatically hide the quick tip after the mouse exits the target element (defaults to true).
022:             * Used in conjunction with hideDelay.
023:             *
024:             * @param autoHide true to auto hide
025:             */
026:            public void setAutoHide(boolean autoHide) {
027:                JavaScriptObjectHelper
028:                        .setAttribute(jsObj, "autoHide", autoHide);
029:            }
030:
031:            public void setCls(String cls) {
032:                JavaScriptObjectHelper.setAttribute(jsObj, "cls", cls);
033:            }
034:
035:            public void setDismissDelay(int dismissDelay) {
036:                JavaScriptObjectHelper.setAttribute(jsObj, "dismissDelay",
037:                        dismissDelay);
038:            }
039:
040:            public void setTraget(Element traget) {
041:                JavaScriptObjectHelper.setAttribute(jsObj, "traget", traget);
042:            }
043:
044:            public void setTarget(String target) {
045:                JavaScriptObjectHelper.setAttribute(jsObj, "target", target);
046:            }
047:
048:            public void setTarget(Component target) {
049:                if (target.isRendered()) {
050:                    JavaScriptObjectHelper.setAttribute(jsObj, "target", target
051:                            .getElement());
052:                } else {
053:                    JavaScriptObjectHelper.setAttribute(jsObj, "target", target
054:                            .getId());
055:                }
056:            }
057:
058:            /**
059:             * Body text to display (defaults to ''). This can be any valid HTML markup.
060:             *
061:             * @param text the text
062:             */
063:            public void setText(String text) {
064:                JavaScriptObjectHelper.setAttribute(jsObj, "text", text);
065:            }
066:
067:            /**
068:             * Title text to display (defaults to ''). This can be any valid HTML markup.
069:             *
070:             * @param title the title
071:             */
072:            public void setTitle(String title) {
073:                JavaScriptObjectHelper.setAttribute(jsObj, "title", title);
074:            }
075:
076:            public void setWidth(int width) {
077:                JavaScriptObjectHelper.setAttribute(jsObj, "width", width);
078:            }
079:
080:            //TODO2 arethese used? V
081:            /**
082:             * Delay in milliseconds before the quick tip hides when autoHide = true (defaults to 200).
083:             *
084:             * @param hideDelay hide delay in milliseconds
085:             */
086:            public void setHideDelay(int hideDelay) {
087:                JavaScriptObjectHelper.setAttribute(jsObj, "hideDelay",
088:                        hideDelay);
089:            }
090:
091:            /**
092:             * True to hide the quick tip if the user clicks anywhere in the document (defaults to true).
093:             *
094:             * @param hideOnClick true to hide on click
095:             */
096:            public void setHideOnClick(boolean hideOnClick) {
097:                JavaScriptObjectHelper.setAttribute(jsObj, "hideOnClick",
098:                        hideOnClick);
099:            }
100:
101:            /**
102:             * True to automatically use the element's DOM title value if available (defaults to false).
103:             *
104:             * @param interceptTitles true to automatically use the element's DOM title value if available
105:             */
106:            public void setInterceptTitles(boolean interceptTitles) {
107:                JavaScriptObjectHelper.setAttribute(jsObj, "interceptTitles",
108:                        interceptTitles);
109:            }
110:
111:            /**
112:             * The maximum width of the quick tip (defaults to 300).
113:             *
114:             * @param maxWidth the max width
115:             */
116:            public void setMaxWidth(int maxWidth) {
117:                JavaScriptObjectHelper
118:                        .setAttribute(jsObj, "maxWidth", maxWidth);
119:            }
120:
121:            /**
122:             * The minimum width of the quick tip (defaults to 40).
123:             *
124:             * @param minWidth the min width
125:             */
126:            public void setMinWidth(int minWidth) {
127:                JavaScriptObjectHelper
128:                        .setAttribute(jsObj, "minWidth", minWidth);
129:            }
130:
131:            /**
132:             * Delay in milliseconds before the quick tip displays after the mouse enters the target element (defaults to 500).
133:             *
134:             * @param showDelay the show delay
135:             */
136:            public void setShowDelay(int showDelay) {
137:                JavaScriptObjectHelper.setAttribute(jsObj, "showDelay",
138:                        showDelay);
139:            }
140:
141:            /**
142:             * True to have the quick tip follow the mouse as it moves over the target element (defaults to false).
143:             *
144:             * @param trackMouse true to track mouse
145:             */
146:            public void setTrackMouse(boolean trackMouse) {
147:                JavaScriptObjectHelper.setAttribute(jsObj, "trackMouse",
148:                        trackMouse);
149:            }
150:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.