Java Doc for Element.java in  » Sevlet-Container » jetty-modules » org » mortbay » html » 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 » Sevlet Container » jetty modules » org.mortbay.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mortbay.html.Element

All known Subclasses:   org.mortbay.html.Include,  org.mortbay.html.DefList,  org.mortbay.html.Composite,  org.mortbay.html.Tag,
Element
abstract public class Element (Code)
HTML Element.

This abstract class is the base for all HTML Elements. The feature of an abstract HTML Element is that it can be added to HTML Pages, HTML Composites and several other HTML Elements derivations. Elements may also have attributes set, which are handled by the derived Element.
See Also:   Page
See Also:   Composite
version:
   $Id: Element.java,v 1.10 2005/08/13 00:01:23 gregwilkins Exp $
author:
   Greg Wilkins



Field Summary
protected  HashtableattributeMap
    
final public static  StringnoAttributesALIGNLEFTRIGHTCENTERVALIGNTOPBOTTOMMIDDLEWIDTHHEIGHTSIZECOLORBGCOLORSTYLECLASSID
    

Constructor Summary
public  Element()
     Default constructor.
public  Element(String attributes)
     Construct with attributes.

Method Summary
public  Elementattribute(String attributes)
     Add element Attributes. The attributes are added to the Element attributes (separated with a space).
public  Elementattribute(String attribute, Object value)
     Add quoted element Attributes and value.
public  Elementattribute(String attribute, long value)
     Add quoted element Attributes and value.
public  Stringattributes()
    
public  Elementattributes(String attributes)
     Add element Attributes. The attributes are added to the Element attributes (separated with a space).
public  ElementbgColor(String color)
     set BGCOLOR. Convenience method equivalent to attribute("bgcolor",color).
public  Elementbottom()
     Bottom align. Convenience method equivalent to attribute("valign","bottom").
public  Elementcenter()
     Center. Convenience method equivalent to attribute("align","center").
public  Elementcolor(String color)
     set color. Convenience method equivalent to attribute("color",color).
public  ElementcssClass(String c)
     set CSS CLASS.
public  ElementcssID(String id)
     set CSS ID.
public  Elementheight(int h)
     set height. Convenience method equivalent to attribute("height",h).
public  Elementheight(String h)
     set height. Convenience method equivalent to attribute("height",h).
public  intheight()
    
public  Elementleft()
     left justify. Convenience method equivalent to attribute("align","left").
public  Elementmiddle()
     Middle align. Convenience method equivalent to attribute("valign","middle").
public  Elementright()
     right justify. Convenience method equivalent to attribute("align","right").
public  ElementsetAttributesFrom(Element e)
     Set attributes from another Element.
public  Elementsize(int s)
     set size. Convenience method equivalent to attribute("size",s).
public  Elementsize(String s)
     set size. Convenience method equivalent to attribute("size",s).
public  intsize()
    
public  Elementstyle(String style)
     set Style.
public  StringtoString()
     Convert Element to String.
public  Elementtop()
     Top align. Convenience method equivalent to attribute("valign","top").
public  Elementwidth(int w)
     set width. Convenience method equivalent to attribute("width",w).
public  Elementwidth(String w)
     set width. Convenience method equivalent to attribute("width",w).
public  intwidth()
    
abstract public  voidwrite(Writer out)
     Write element to a Writer. This abstract method is called by the Page or other containing Element to write the HTML for this element.
public  voidwrite(OutputStream out)
     Write Element to an OutputStream.
public  voidwrite(OutputStream out, String encoding)
     Write Element to an OutputStream.

Field Detail
attributeMap
protected Hashtable attributeMap(Code)



noAttributesALIGNLEFTRIGHTCENTERVALIGNTOPBOTTOMMIDDLEWIDTHHEIGHTSIZECOLORBGCOLORSTYLECLASSID
final public static String noAttributesALIGNLEFTRIGHTCENTERVALIGNTOPBOTTOMMIDDLEWIDTHHEIGHTSIZECOLORBGCOLORSTYLECLASSID(Code)




Constructor Detail
Element
public Element()(Code)
Default constructor.



Element
public Element(String attributes)(Code)
Construct with attributes.
Parameters:
  attributes - The initial attributes of the element




Method Detail
attribute
public Element attribute(String attributes)(Code)
Add element Attributes. The attributes are added to the Element attributes (separated with a space). The attributes are available to the derived class in the protected member String attributes
Parameters:
  attributes - String of HTML attributes to add to the element.A null attribute clears the current attributes. This Element so calls can be chained.



attribute
public Element attribute(String attribute, Object value)(Code)
Add quoted element Attributes and value.
Parameters:
  attribute - String of HTML attribute tag
Parameters:
  value - String value of the attribute to be quoted This Element so calls can be chained.



attribute
public Element attribute(String attribute, long value)(Code)
Add quoted element Attributes and value.
Parameters:
  attribute - String of HTML attribute tag
Parameters:
  value - String value of the attribute to be quoted This Element so calls can be chained.



attributes
public String attributes()(Code)



attributes
public Element attributes(String attributes)(Code)
Add element Attributes. The attributes are added to the Element attributes (separated with a space). The attributes are available to the derived class in the protected member String attributes
Parameters:
  attributes - String of HTML attributes to add to the element. This Element so calls can be chained.



bgColor
public Element bgColor(String color)(Code)
set BGCOLOR. Convenience method equivalent to attribute("bgcolor",color). Not applicable to all Elements.



bottom
public Element bottom()(Code)
Bottom align. Convenience method equivalent to attribute("valign","bottom"). Not applicable to all Elements.



center
public Element center()(Code)
Center. Convenience method equivalent to attribute("align","center"). Not applicable to all Elements.



color
public Element color(String color)(Code)
set color. Convenience method equivalent to attribute("color",color). Not applicable to all Elements.



cssClass
public Element cssClass(String c)(Code)
set CSS CLASS.



cssID
public Element cssID(String id)(Code)
set CSS ID. Convenience method equivalent to attribute("id",id).



height
public Element height(int h)(Code)
set height. Convenience method equivalent to attribute("height",h). Not applicable to all Elements.



height
public Element height(String h)(Code)
set height. Convenience method equivalent to attribute("height",h). Not applicable to all Elements.



height
public int height()(Code)



left
public Element left()(Code)
left justify. Convenience method equivalent to attribute("align","left"). Not applicable to all Elements.



middle
public Element middle()(Code)
Middle align. Convenience method equivalent to attribute("valign","middle"). Not applicable to all Elements.



right
public Element right()(Code)
right justify. Convenience method equivalent to attribute("align","right"). Not applicable to all Elements.



setAttributesFrom
public Element setAttributesFrom(Element e)(Code)
Set attributes from another Element.
Parameters:
  e - Element This Element



size
public Element size(int s)(Code)
set size. Convenience method equivalent to attribute("size",s). Not applicable to all Elements.



size
public Element size(String s)(Code)
set size. Convenience method equivalent to attribute("size",s). Not applicable to all Elements.



size
public int size()(Code)



style
public Element style(String style)(Code)
set Style. Convenience method equivalent to attribute("style",style).



toString
public String toString()(Code)
Convert Element to String. Uses write() to convert the HTML Element to a string. String of the HTML element



top
public Element top()(Code)
Top align. Convenience method equivalent to attribute("valign","top"). Not applicable to all Elements.



width
public Element width(int w)(Code)
set width. Convenience method equivalent to attribute("width",w). Not applicable to all Elements.



width
public Element width(String w)(Code)
set width. Convenience method equivalent to attribute("width",w). Not applicable to all Elements.



width
public int width()(Code)



write
abstract public void write(Writer out) throws IOException(Code)
Write element to a Writer. This abstract method is called by the Page or other containing Element to write the HTML for this element. This must be implemented by the derived Element classes.
Parameters:
  out - Writer to write the element to.



write
public void write(OutputStream out) throws IOException(Code)
Write Element to an OutputStream. Calls print(Writer) and checks errors Elements that override this method should also override write(Writer) to avoid infinite recursion.
Parameters:
  out - OutputStream to write the element to.



write
public void write(OutputStream out, String encoding) throws IOException(Code)
Write Element to an OutputStream. Calls print(Writer) and checks errors Elements that override this method should also override write(Writer) to avoid infinite recursion.
Parameters:
  out - OutputStream to write the element to.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.