Namespaces"

From Documentation
 
(17 intermediate revisions by 7 users not shown)
Line 5: Line 5:
 
Standard namespaces are not languages. That means they are ''not'' used to provide component definitions. Rather, they are used to provide special functionality to ZUML.
 
Standard namespaces are not languages. That means they are ''not'' used to provide component definitions. Rather, they are used to provide special functionality to ZUML.
  
{| border='1px' | width="100%"
+
<blockquote>
 +
----
 +
For introduction of languages vs standard namespaces, please refer to [[ZK Developer's Reference/UI Composing/ZUML/XML Namespaces|ZK Developer's References]].
 +
</blockquote>
 +
 
 +
{| class='wikitable' | width="100%"
 
! Namespace !! Description
 
! Namespace !! Description
 
|-
 
|-
Line 13: Line 18:
 
  Namespace: http://www.zkoss.org/2005/zk
 
  Namespace: http://www.zkoss.org/2005/zk
 
  Namespace shortcut: zk
 
  Namespace shortcut: zk
 +
Java: <javadoc method="ZK_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
  
 
It is the reserved namespace for specifying ZK specific elements and attributes, such as the zk element and the unless attribute. For more information please refer to the [[ZUML Reference/ZUML/Namespaces/ZK|ZK Namespace]] section.
 
It is the reserved namespace for specifying ZK specific elements and attributes, such as the zk element and the unless attribute. For more information please refer to the [[ZUML Reference/ZUML/Namespaces/ZK|ZK Namespace]] section.
Line 22: Line 28:
 
  Namespace: http://www.zkoss.org/2005/zk/native
 
  Namespace: http://www.zkoss.org/2005/zk/native
 
  Namespace shortcut: native
 
  Namespace shortcut: native
 +
Java: <javadoc method="NATIVE_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
  
 
It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.
 
It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.
  
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Native|Native Namespace]] section.
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Native|Native Namespace]] section.
 +
 +
|-
 +
| [[ZUML Reference/ZUML/Namespaces/Annotation|annotation]]
 +
|
 +
Name: annotation
 +
Namespace: http://www.zkoss.org/2005/zk/annotation
 +
Namespace shortcut: annotation
 +
Java: <javadoc method="ANNOTATION_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
 +
 +
It is the reserved namespace for specifying annotations.
 +
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Annotation|annotation]] section.
  
 
|-
 
|-
Line 33: Line 51:
 
  Namespace: http://www.zkoss.org/2005/zk/client
 
  Namespace: http://www.zkoss.org/2005/zk/client
 
  Namespace shortcut: client
 
  Namespace shortcut: client
 +
Java: <javadoc method="CLIENT_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
  
It is the reserved namespace for specifying client-side event listener and overrides.  
+
It is the reserved namespace for specifying a ZK JavaScript '''widget's event listeners and attributes'''.  
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Client|Client Namespace]] section.
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Client|Client Namespace]] section.
  
Line 40: Line 59:
 
| [[ZUML Reference/ZUML/Namespaces/Client Attribute|client attribute]]
 
| [[ZUML Reference/ZUML/Namespaces/Client Attribute|client attribute]]
 
|
 
|
  Name: client attribute
+
  Name: client/attribute
 
  Namespace: http://www.zkoss.org/2005/zk/client/attribute
 
  Namespace: http://www.zkoss.org/2005/zk/client/attribute
 
  Namespace shortcut: client/attribute
 
  Namespace shortcut: client/attribute
 +
Java: <javadoc method="CLIENT_ATTRIBUTE_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
  
It is the reserved namespace for specifying client-side DOM attributes. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns to the DOM tree directly.
+
It is the reserved namespace for specifying client-side '''DOM attributes'''. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns to the DOM tree directly.
  
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Client Attribute|Client Attribute Namespace]] section.
 
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Client Attribute|Client Attribute Namespace]] section.
 +
|-
 +
| [[ZUML Reference/ZUML/Namespaces/Client Attribute Prefix|client attribute prefix]]
 +
|
 +
Name: client/attribute-prefix
 +
Namespace: http://www.zkoss.org/2020/zk/client/attribute-prefix
 +
Namespace shortcut: client/attribute-prefix
 +
Java: <javadoc method="CLIENT_ATTRIBUTE_PREFIX_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
 +
 +
It is the reserved namespace for specifying the client-side '''DOM attributes''' including the prefix. Unlike the client namespace, which assigns something to widgets, the client/attribute-prefix namespace assigns to the DOM tree directly.
 +
 +
For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Client Attribute Prefix|Client Attribute Prefix Namespace]] section.
 +
|-
 +
| [[ZUML_Reference/ZUML/Languages|xhtml]]
 +
|
 +
Name: xhtml
 +
Namespace: http://www.w3.org/1999/xhtml
 +
Namespace shortcut: xhtml
 +
 +
It is the XHTML component set. For more information please refer to the [[ZUML_Reference/ZUML/Languages| the Languages section]].
 +
|-
 +
| [[ZUML_Reference/ZUML/Languages|zul]]
 +
|
 +
Name: xul/html
 +
Namespace: http://www.zkoss.org/2005/zul
 +
Namespace shortcut: zul
 +
 +
It is the ZUL component set. For more information please refer to the [[ZUML_Reference/ZUML/Languages| the Languages section]].
 +
 +
|-
 +
| [[ZUML_Reference/ZUML/Languages|xml]]
 +
|
 +
Name: xml
 +
Namespace: http://www.zkoss.org/2007/xml
 +
Namespace shortcut: xml
 +
 +
It is the XML component set. For more information please refer to the [[ZUML_Reference/ZUML/Languages| the Languages section]].
 +
 +
|-
 +
| [[ZUML_Reference/ZUML/Namespaces/Shadow|shadow]]
 +
|
 +
{{versionSince| 8.0.0}}
 +
Name: shadow
 +
Namespace: http://www.zkoss.org/2015/shadow
 +
Namespace shortcut: shadow
 +
 +
It is the reserved namespace for specifying shadow elements. For more information please refer to the [[ZUML Reference/ZUML/Namespaces/Shadow|Shadow Namespace]].
 
|}
 
|}
  
 +
 +
For more information of XHTML, ZUL and other component sets, please refer to [[ZUML_Reference/ZUML/Languages| the Languages section]].
  
 
{{ZUMLReferenceHeadingToc}}
 
{{ZUMLReferenceHeadingToc}}
  
=Version History=
+
 
Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
+
{{LastUpdated}}
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
|-
 
| &nbsp;
 
| &nbsp;
 
| &nbsp;
 
|}
 
  
 
{{ZUMLReferencePageFooter}}
 
{{ZUMLReferencePageFooter}}

Latest revision as of 09:50, 8 November 2022



Standard Namespaces

Standard namespaces are not languages. That means they are not used to provide component definitions. Rather, they are used to provide special functionality to ZUML.


For introduction of languages vs standard namespaces, please refer to ZK Developer's References.

Namespace Description
zk
Name: zk
Namespace: http://www.zkoss.org/2005/zk
Namespace shortcut: zk
Java: LanguageDefinition.ZK_NAMESPACE

It is the reserved namespace for specifying ZK specific elements and attributes, such as the zk element and the unless attribute. For more information please refer to the ZK Namespace section.

native
Name: native
Namespace: http://www.zkoss.org/2005/zk/native
Namespace shortcut: native
Java: LanguageDefinition.NATIVE_NAMESPACE

It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.

For more information please refer to the Native Namespace section.

annotation
Name: annotation
Namespace: http://www.zkoss.org/2005/zk/annotation
Namespace shortcut: annotation
Java: LanguageDefinition.ANNOTATION_NAMESPACE

It is the reserved namespace for specifying annotations. For more information please refer to the annotation section.

client
Name: client
Namespace: http://www.zkoss.org/2005/zk/client
Namespace shortcut: client
Java: LanguageDefinition.CLIENT_NAMESPACE

It is the reserved namespace for specifying a ZK JavaScript widget's event listeners and attributes. For more information please refer to the Client Namespace section.

client attribute
Name: client/attribute
Namespace: http://www.zkoss.org/2005/zk/client/attribute
Namespace shortcut: client/attribute
Java: LanguageDefinition.CLIENT_ATTRIBUTE_NAMESPACE

It is the reserved namespace for specifying client-side DOM attributes. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns to the DOM tree directly.

For more information please refer to the Client Attribute Namespace section.

client attribute prefix
Name: client/attribute-prefix
Namespace: http://www.zkoss.org/2020/zk/client/attribute-prefix
Namespace shortcut: client/attribute-prefix
Java: LanguageDefinition.CLIENT_ATTRIBUTE_PREFIX_NAMESPACE

It is the reserved namespace for specifying the client-side DOM attributes including the prefix. Unlike the client namespace, which assigns something to widgets, the client/attribute-prefix namespace assigns to the DOM tree directly.

For more information please refer to the Client Attribute Prefix Namespace section.

xhtml
Name: xhtml
Namespace: http://www.w3.org/1999/xhtml
Namespace shortcut: xhtml

It is the XHTML component set. For more information please refer to the the Languages section.

zul
Name: xul/html
Namespace: http://www.zkoss.org/2005/zul
Namespace shortcut: zul

It is the ZUL component set. For more information please refer to the the Languages section.

xml
Name: xml
Namespace: http://www.zkoss.org/2007/xml
Namespace shortcut: xml

It is the XML component set. For more information please refer to the the Languages section.

shadow
Since  8.0.0
Name: shadow
Namespace: http://www.zkoss.org/2015/shadow
Namespace shortcut: shadow

It is the reserved namespace for specifying shadow elements. For more information please refer to the Shadow Namespace.


For more information of XHTML, ZUL and other component sets, please refer to the Languages section.




Last Update : 2022/11/08




Last Update : 2022/11/08

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.