Source Code Cross Referenced for Tip.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:        package com.gwtext.client.widgets;
009:
010:        import com.google.gwt.user.client.Element;
011:        import com.google.gwt.core.client.JavaScriptObject;
012:
013:        /**
014:         * This is the base class for {@link QuickTips} and Tooltip that provides the basic layout and positioning that
015:         * all tip-based classes require. This class can be used directly for simple, statically-positioned tips that are
016:         * displayed programmatically.
017:         */
018:        public class Tip extends Panel {
019:
020:            public Tip() {
021:            }
022:
023:            public Tip(String html) {
024:                setHtml(html);
025:            }
026:
027:            public Tip(JavaScriptObject jsObj) {
028:                super (jsObj);
029:            }
030:
031:            protected native JavaScriptObject create(JavaScriptObject config) /*-{
032:            	return new $wnd.Ext.Tip(config);
033:               }-*/;
034:
035:            /**
036:             * True to render a close tool button into the tooltip header (defaults to false).
037:             *
038:             * @param closable true for closable
039:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
040:             */
041:            public void setClosable(boolean closable)
042:                    throws IllegalStateException {
043:                setAttribute("closable", closable, false);
044:            }
045:
046:            /**
047:             * The default {@link com.gwtext.client.core.ExtElement#alignTo(String, String)}  anchor position value for this tip
048:             * relative to its element of origin. (defaults to "tl-bl?")
049:             *
050:             * @param defaultAlign the align poistion.
051:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
052:             */
053:            public void setDefaultAlign(String defaultAlign)
054:                    throws IllegalStateException {
055:                setAttribute("defaultAlign", defaultAlign, true);
056:            }
057:
058:            /**
059:             * The maximum width of the tip in pixels (defaults to 300). The maximum supported value is 500.
060:             *
061:             * @param maxWidth the max width
062:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
063:             */
064:            public void setMaxWidth(int maxWidth) throws IllegalStateException {
065:                setAttribute("maxWidth", maxWidth, true);
066:            }
067:
068:            /**
069:             * The minimum width of the tip in pixels (defaults to 40).
070:             *
071:             * @param minWidth the min width
072:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
073:             */
074:            public void setMinWidth(int minWidth) throws IllegalStateException {
075:                setAttribute("minWidth", minWidth, true);
076:            }
077:
078:            /**
079:             * True for shadows on sides.
080:             *
081:             * @param shadow true for shadow
082:             */
083:            public void setShadow(boolean shadow) {
084:                setAttribute("shadow", shadow, true);
085:            }
086:
087:            /**
088:             * Set a shadow type for the tooltip.
089:             *
090:             * @param shadow the shadow type
091:             * @see com.gwtext.client.widgets.Shadow#SIDES
092:             * @see com.gwtext.client.widgets.Shadow#FRAME
093:             * @see com.gwtext.client.widgets.Shadow#DROP
094:             */
095:            public void setShadow(Shadow.Type shadow) {
096:                setAttribute("shadow", shadow.getType(), true);
097:            }
098:
099:            /**
100:             * Width in pixels of the tip (defaults to auto). Width will be ignored if it exceeds the bounds of minWidth or maxWidth.
101:             * The maximum supported value is 500.
102:             *
103:             * @param width the tooltip width
104:             */
105:            public void setWidth(int width) {
106:                setAttribute("width", width, true);
107:            }
108:
109:            /**
110:             * Shows this tip at the specified XY position.
111:             *
112:             * @param x the X position
113:             * @param y the Y position
114:             */
115:            public native void showAt(int x, int y) /*-{
116:                  var tip  = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();
117:                  tip.showAt([x, y]);
118:               }-*/;
119:
120:            /**
121:             * Shows this tip at a position relative to another element. Default to the
122:             * poistion defaults to 'tl-br?'
123:             *
124:             * @param element the element to show tip by
125:             * @see com.gwtext.client.core.ExtElement#alignTo(String, String)
126:             */
127:            public native void showBy(Element element) /*-{
128:                   var tip  = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();
129:                   tip.showBy(element);
130:               }-*/;
131:
132:            /**
133:             * Shows this tip at a position relative to another element. Default to the
134:             * poistion defaults to 'tl-br?'
135:             *
136:             * @param elementID the element ID to show tip by
137:             * @see com.gwtext.client.core.ExtElement#alignTo(String, String)
138:             */
139:            public native void showBy(String elementID) /*-{
140:                   var tip  = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();
141:                   tip.showBy(elementID);
142:               }-*/;
143:
144:            /**
145:             * Shows this tip at a position relative to another element. Default to the
146:             * poistion defaults to 'tl-br?'
147:             *
148:             * @param element  the element to show tip by
149:             * @param position the tooltip position
150:             * @see com.gwtext.client.core.ExtElement#alignTo(String, String)
151:             */
152:            public native void showBy(Element element, String position) /*-{
153:                   var tip  = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();
154:                   tip.showBy(element, position);
155:               }-*/;
156:
157:            /**
158:             * Shows this tip at a position relative to another element. Default to the
159:             * poistion defaults to 'tl-br?'
160:             *
161:             * @param elementID the element ID to show tip by
162:             * @param position  the tooltip position
163:             * @see com.gwtext.client.core.ExtElement#alignTo(String, String)
164:             */
165:            public native void showBy(String elementID, String position) /*-{
166:                   var tip  = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();
167:                   tip.showBy(elementID, position);
168:               }-*/;
169:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.