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


org.zkoss.zul.impl.XulElement
   org.zkoss.zul.Label

Label
public class Label extends XulElement (Code)
A label.
author:
   tomyeh



Constructor Summary
public  Label()
    
public  Label(String value)
    

Method Summary
public  StringgetEncodedText()
     Returns the text for generating HTML tags (Internal Use Only).

Used only for component generation.

public  intgetMaxlength()
     Returns the maximal length of the label.

Noteice:

hyphen="false" and pre="false"
maxlength is the maximal length to display.
public  StringgetOuterAttrs()
    
public  StringgetValue()
     Returns the value.
public  voidinvalidate()
    
public  booleanisChildable()
     No child is allowed.
public  booleanisHyphen()
     Returns whether to hyphen a long word if maxlength is specified.
public  booleanisIdRequired()
     Whether to generate the value directly without ID.

Used only for component generated.

public  booleanisMultiline()
     Returns whether to preserve the new line and the white spaces at the begining of each line.
public  booleanisPre()
     Returns whether to preserve the white spaces, such as space, tab and new line.

It is the same as style="white-space:pre".

public  voidsetHyphen(boolean hyphen)
     Sets whether to hyphen a long word if maxlength is specified.
public  voidsetMaxlength(int maxlength)
     Sets the maximal length of the label.
public  voidsetMultiline(boolean multiline)
     Sets whether to preserve the new line and the white spaces at the begining of each line.
public  voidsetPre(boolean pre)
     Sets whether to preserve the white spaces, such as space, tab and new line.
public  voidsetValue(String value)
     Sets the value.


Constructor Detail
Label
public Label()(Code)



Label
public Label(String value)(Code)




Method Detail
getEncodedText
public String getEncodedText()(Code)
Returns the text for generating HTML tags (Internal Use Only).

Used only for component generation. Not for applications.




getMaxlength
public int getMaxlength()(Code)
Returns the maximal length of the label.

Noteice:

hyphen="false" and pre="false"
maxlength is the maximal length to display. Exceeding part is truncated.
hyphen="true"
maxlength is the maximal length of each line, and hyphenation is added if a line exceeds maxlength.
hyphen="false" and pre="true"
maxlength has no effect.
maxlength=0
hyphen has no effect



getOuterAttrs
public String getOuterAttrs()(Code)



getValue
public String getValue()(Code)
Returns the value.

Default: "".




invalidate
public void invalidate()(Code)



isChildable
public boolean isChildable()(Code)
No child is allowed.



isHyphen
public boolean isHyphen()(Code)
Returns whether to hyphen a long word if maxlength is specified.

See Label.getMaxlength for the relationship among pre, hyphen and maxlength.




isIdRequired
public boolean isIdRequired()(Code)
Whether to generate the value directly without ID.

Used only for component generated. Not for applications.
since:
   3.0.0




isMultiline
public boolean isMultiline()(Code)
Returns whether to preserve the new line and the white spaces at the begining of each line.

Note: the new line is preserved either Label.isPre or Label.isMultiline returns true. In other words, pre implies multiline




isPre
public boolean isPre()(Code)
Returns whether to preserve the white spaces, such as space, tab and new line.

It is the same as style="white-space:pre". However, IE has a bug when handling such style if the content is updated dynamically. Refer to Bug 1455584.

See Label.getMaxlength for the relationship among pre, hyphen and maxlength.

Note: the new line is preserved either Label.isPre or Label.isMultiline returns true. In other words, pre implies multiline




setHyphen
public void setHyphen(boolean hyphen)(Code)
Sets whether to hyphen a long word if maxlength is specified.

See Label.getMaxlength for the relationship among pre, hyphen and maxlength.




setMaxlength
public void setMaxlength(int maxlength)(Code)
Sets the maximal length of the label.

See Label.getMaxlength for the relationship among pre, hyphen and maxlength.




setMultiline
public void setMultiline(boolean multiline)(Code)
Sets whether to preserve the new line and the white spaces at the begining of each line.



setPre
public void setPre(boolean pre)(Code)
Sets whether to preserve the white spaces, such as space, tab and new line.

See Label.getMaxlength for the relationship among pre, hyphen and maxlength.




setValue
public void setValue(String value)(Code)
Sets the value.



Methods inherited from org.zkoss.zul.impl.XulElement
public String getAction()(Code)(Java Doc)
public String getActionAttrs()(Code)(Java Doc)
protected String getAllOnClickAttrs(boolean ignoreOnClick)(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public String getInnerAttrs()(Code)(Java Doc)
public String getOuterAttrs()(Code)(Java Doc)
public String getPopup()(Code)(Java Doc)
public String getTooltip()(Code)(Java Doc)
public void setAction(String action)(Code)(Java Doc)
public void setContext(String context)(Code)(Java Doc)
public void setContext(Popup popup)(Code)(Java Doc)
public void setPopup(String popup)(Code)(Java Doc)
public void setPopup(Popup popup)(Code)(Java Doc)
public void setTooltip(String tooltip)(Code)(Java Doc)
public void setTooltip(Popup popup)(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.