Java Doc for XulElement.java in  » Ajax » zk » org » zkoss » zul » impl » 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 » zk » org.zkoss.zul.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.zkoss.zk.ui.HtmlBasedComponent
   org.zkoss.zul.impl.XulElement

All known Subclasses:   org.zkoss.zul.Menuseparator,  org.zkoss.zul.Image,  org.zkoss.zul.Box,  org.zkoss.zul.Groupbox,  org.zkoss.zul.Window,  org.zkoss.zul.Grid,  org.zkoss.zul.Treeitem,  org.zkoss.zul.Treerow,  org.zkoss.zul.Listitem,  org.zkoss.zul.Treechildren,  org.zkoss.zul.Tree,  org.zkoss.zul.Tabs,  org.zkoss.zul.Tabpanel,  org.zkoss.zul.Foot,  org.zkoss.zul.Menubar,  org.zkoss.zul.Row,  org.zkoss.zkex.zul.LayoutRegion,  org.zkoss.zul.Include,  org.zkoss.zul.Listfoot,  org.zkoss.zul.Html,  org.zkoss.zul.Listbox,  org.zkoss.zul.Popup,  org.zkoss.zul.Iframe,  org.zkoss.zul.Auxhead,  org.zkoss.zul.Audio,  org.zkoss.zul.Progressmeter,  org.zkoss.zul.Separator,  org.zkoss.zul.Tabpanels,  org.zkoss.zul.impl.HeadersElement,  org.zkoss.zul.Label,  org.zkoss.zul.Toolbar,  org.zkoss.zul.Rows,  org.zkoss.zul.Treefoot,  org.zkoss.zul.Radiogroup,  org.zkoss.zul.impl.LabelElement,  org.zkoss.zul.impl.InputElement,  org.zkoss.zul.Slider,  org.zkoss.zul.Tabbox,  org.zkoss.zul.Div,  org.zkoss.zul.Paging,  org.zkoss.zul.Calendar,  org.zkoss.zul.Bandpopup,  org.zkoss.zul.Splitter,
XulElement
abstract public class XulElement extends HtmlBasedComponent (Code)
The fundamental class for XUL elements.
author:
   tomyeh




Method Summary
public  StringgetAction()
     Returns the client-side action (CSA).
public  StringgetActionAttrs()
     Returns the HTML attributes representing the client-side action, or "" if no client-side action is defined.
protected  StringgetAllOnClickAttrs(boolean ignoreOnClick)
     Returns the attributes for onClick, onRightClick and onDoubleClick by checking whether the corresponding listeners are added, or null if none is added.
public  StringgetContext()
     Returns the ID of the popup ( Popup ) that should appear when the user right-clicks on the element (aka., context menu).
public  StringgetInnerAttrs()
     Generates the Client-Side-Action attributes to the interior tag.
public  StringgetOuterAttrs()
    
public  StringgetPopup()
     Returns the ID of the popup ( Popup ) that should appear when the user clicks on the element.
public  StringgetTooltip()
     Returns the ID of the popup ( Popup ) that should be used as a tooltip window when the mouse hovers over the element for a moment.
public  voidsetAction(String action)
     Sets the client-side action.
public  voidsetContext(String context)
     Sets the ID of the popup ( Popup ) that should appear when the user right-clicks on the element (aka., context menu).

An onOpen event is sent to the context menu if it is going to appear.

public  voidsetContext(Popup popup)
     Sets the UUID of the popup that should appear when the user right-clicks on the element (aka., context menu).
public  voidsetPopup(String popup)
     Sets the ID of the popup ( Popup ) that should appear when the user clicks on the element.

An onOpen event is sent to the popup menu if it is going to appear.

public  voidsetPopup(Popup popup)
     Sets the UUID of the popup that should appear when the user clicks on the element.
public  voidsetTooltip(String tooltip)
     Sets the ID of the popup ( Popup ) that should be used as a tooltip window when the mouse hovers over the element for a moment.

An onOpen event is sent to the tooltip if it is going to appear.

public  voidsetTooltip(Popup popup)
     Sets the UUID of the popup that should be used as a tooltip window when the mouse hovers over the element for a moment.



Method Detail
getAction
public String getAction()(Code)
Returns the client-side action (CSA).

The format:
action1: javascript1; javascript2; action2: javascript3

You could specify any action as long as JavaScript supports, such as onfocus, onblur, onmouseover and onmousout.




getActionAttrs
public String getActionAttrs()(Code)
Returns the HTML attributes representing the client-side action, or "" if no client-side action is defined.
since:
   3.0.0



getAllOnClickAttrs
protected String getAllOnClickAttrs(boolean ignoreOnClick)(Code)
Returns the attributes for onClick, onRightClick and onDoubleClick by checking whether the corresponding listeners are added, or null if none is added.
Parameters:
  ignoreOnClick - whether to ignore onClick



getContext
public String getContext()(Code)
Returns the ID of the popup ( Popup ) that should appear when the user right-clicks on the element (aka., context menu).

Default: null (no context menu).




getInnerAttrs
public String getInnerAttrs()(Code)
Generates the Client-Side-Action attributes to the interior tag. Reason: onfocus is the main use.



getOuterAttrs
public String getOuterAttrs()(Code)



getPopup
public String getPopup()(Code)
Returns the ID of the popup ( Popup ) that should appear when the user clicks on the element.

Default: null (no poppup).




getTooltip
public String getTooltip()(Code)
Returns the ID of the popup ( Popup ) that should be used as a tooltip window when the mouse hovers over the element for a moment. The tooltip will automatically disappear when the mouse is moved.

Default: null (no tooltip).




setAction
public void setAction(String action)(Code)
Sets the client-side action.



setContext
public void setContext(String context)(Code)
Sets the ID of the popup ( Popup ) that should appear when the user right-clicks on the element (aka., context menu).

An onOpen event is sent to the context menu if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.

Note: To simplify the use, it ignores the ID space when locating the component at the client. In other words, it searches for the first component with the specified ID, no matter it is in the same ID space or not.

(since 3.0.2) If there are two components with the same ID (of course, in different ID spaces), you can specify the UUID with the following format:
uuid(comp_uuid)

Example:


 <label context="some">
 <label context="uuid(${some.uuid})"/>
 
Both reference a component whose ID is "some". But, if there are several components with the same ID, the first one can reference to any of them. And, the second one reference to the component in the same ID space (of the label component).
See Also:   XulElement.setContext(Popup)



setContext
public void setContext(Popup popup)(Code)
Sets the UUID of the popup that should appear when the user right-clicks on the element (aka., context menu).

Note: it actually invokes setContext("uuid(" + popup.getUuid() + ")")
since:
   3.0.2
See Also:   XulElement.setContext(String)




setPopup
public void setPopup(String popup)(Code)
Sets the ID of the popup ( Popup ) that should appear when the user clicks on the element.

An onOpen event is sent to the popup menu if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.

Note: To simplify the use, it ignores the ID space when locating the component at the client. In other words, it searches for the first component with the specified ID, no matter it is in the same ID space or not.

(since 3.0.2) If there are two components with the same ID (of course, in different ID spaces), you can specify the UUID with the following format:
uuid(comp_uuid)
See Also:   XulElement.setPopup(Popup)




setPopup
public void setPopup(Popup popup)(Code)
Sets the UUID of the popup that should appear when the user clicks on the element.

Note: it actually invokes setPopup("uuid(" + popup.getUuid() + ")")
since:
   3.0.2
See Also:   XulElement.setPopup(String)




setTooltip
public void setTooltip(String tooltip)(Code)
Sets the ID of the popup ( Popup ) that should be used as a tooltip window when the mouse hovers over the element for a moment.

An onOpen event is sent to the tooltip if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.

Note: To simplify the use, it ignores the ID space when locating the component at the client. In other words, it searches for the first component with the specified ID, no matter it is in the same ID space or not.

(since 3.0.2) If there are two components with the same ID (of course, in different ID spaces), you can specify the UUID with the following format:
uuid(comp_uuid)
See Also:   XulElement.setTooltip(Popup)




setTooltip
public void setTooltip(Popup popup)(Code)
Sets the UUID of the popup that should be used as a tooltip window when the mouse hovers over the element for a moment.

Note: it actually invokes setTooltip("uuid(" + popup.getUuid() + ")")
since:
   3.0.2
See Also:   XulElement.setTooltip(String)




Fields inherited from org.zkoss.zk.ui.HtmlBasedComponent
final protected static int RS_NO_DISPLAY(Code)(Java Doc)
final protected static int RS_NO_HEIGHT(Code)(Java Doc)
final protected static int RS_NO_WIDTH(Code)(Java Doc)

Methods inherited from org.zkoss.zk.ui.HtmlBasedComponent
public void focus()(Code)(Java Doc)
final public String getDraggable()(Code)(Java Doc)
final public String getDroppable()(Code)(Java Doc)
public String getHeight()(Code)(Java Doc)
public String getInnerAttrs()(Code)(Java Doc)
public String getLeft()(Code)(Java Doc)
public String getOuterAttrs()(Code)(Java Doc)
protected String getRealSclass()(Code)(Java Doc)
protected String getRealStyle()(Code)(Java Doc)
protected int getRealStyleFlags()(Code)(Java Doc)
public String getSclass()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getTooltiptext()(Code)(Java Doc)
public String getTop()(Code)(Java Doc)
public String getWidth()(Code)(Java Doc)
public int getZIndex()(Code)(Java Doc)
protected Object newExtraCtrl()(Code)(Java Doc)
final public void setClass(String sclass)(Code)(Java Doc)
public void setDraggable(String draggable)(Code)(Java Doc)
public void setDroppable(String droppable)(Code)(Java Doc)
public void setHeight(String height)(Code)(Java Doc)
public void setLeft(String left)(Code)(Java Doc)
public void setSclass(String sclass)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setTooltiptext(String tooltiptext)(Code)(Java Doc)
public void setTop(String top)(Code)(Java Doc)
public void setWidth(String width)(Code)(Java Doc)
public void setZIndex(int zIndex)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.