Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mvsteenb.javauitransformer.xmltransformer.components
Class XmlRootComponent  view XmlRootComponent download XmlRootComponent.java

java.lang.Object
  extended bycom.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlAbstractDataElement
      extended bycom.mvsteenb.javauitransformer.xmltransformer.components.XmlRootComponent
All Implemented Interfaces:
XmlComponentInterface

public abstract class XmlRootComponent
extends com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlAbstractDataElement
implements XmlComponentInterface

com.mvsteenb.javauitransformer.xmltransformer.components

About

This class is part of the JavaUITransformer version @build.version@ (build #@build.number@) which was built on @build.date@.

Description

Free Software

Copyright (C) 2003 Mario Van Steenberghe

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Please contact me at mario.vansteenberghe@pandora.be for more information.

Revision History

Aug 24, 2003 : mvsteenb : Initial Revision


Field Summary
protected  int colSpan
           
protected  java.awt.Component component
           
protected  com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElements dataElements
           
private static java.lang.String DEBUG_MODE
           
private static java.lang.String ELEMENT_NAME
           
protected  com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElementAttributes rootAttributes
           
protected  int rowSpan
           
 
Fields inherited from class com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlAbstractDataElement
attributes, elementName, value
 
Constructor Summary
XmlRootComponent(java.awt.Component c)
          Constructor
 
Method Summary
protected  void addXmlRootClosingTag(int indent, com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
          Adds xml closing tag to buffer
protected  void addXmlRootOpeningTag(int indent, com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
          Adds Xml Opening Tag to buffer
 java.awt.Component getJavaComponent()
          Returns mapped java component
protected  com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElementAttributes getRootAttributes()
          Returns root attributes
 java.lang.String getXmlRootElementName()
          Returns Xml element name
protected abstract  void prepareAttributes()
          Prepares attributes - this method should be overridden to prepare the element's attributes.
protected  void prepareRootAttributes()
          Prepares root attributes
 java.lang.String toString()
          Returns String representation of component tree
 java.lang.String toString(int indent)
          Returns String representation of component tree
 void toXml(com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
          Retusn xml representation of component
 
Methods inherited from class com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlAbstractDataElement
addAttribute, addAttribute, addElementData, addXmlClosingTag, addXmlOpeningTag, getAttributes, getElementName, getValue, setElementName, setValue, setValue, setValue, setValue, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mvsteenb.javauitransformer.xmltransformer.components.XmlComponentInterface
getElementName, toXml
 

Field Detail

ELEMENT_NAME

private static final java.lang.String ELEMENT_NAME
See Also:
Constant Field Values

DEBUG_MODE

private static final java.lang.String DEBUG_MODE
See Also:
Constant Field Values

component

protected java.awt.Component component

dataElements

protected com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElements dataElements

colSpan

protected int colSpan

rowSpan

protected int rowSpan

rootAttributes

protected com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElementAttributes rootAttributes
Constructor Detail

XmlRootComponent

public XmlRootComponent(java.awt.Component c)
Constructor

Method Detail

getJavaComponent

public java.awt.Component getJavaComponent()
Returns mapped java component

Specified by:
getJavaComponent in interface XmlComponentInterface

toString

public java.lang.String toString()
Returns String representation of component tree


toString

public java.lang.String toString(int indent)
Returns String representation of component tree

Specified by:
toString in interface XmlComponentInterface

toXml

public void toXml(com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
Retusn xml representation of component

Specified by:
toXml in interface XmlComponentInterface

getXmlRootElementName

public java.lang.String getXmlRootElementName()
Returns Xml element name

Specified by:
getXmlRootElementName in interface XmlComponentInterface

prepareAttributes

protected abstract void prepareAttributes()
Prepares attributes - this method should be overridden to prepare the element's attributes.


addXmlRootOpeningTag

protected void addXmlRootOpeningTag(int indent,
                                    com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
Adds Xml Opening Tag to buffer


addXmlRootClosingTag

protected void addXmlRootClosingTag(int indent,
                                    com.mvsteenb.javauitransformer.xmltransformer.util.XmlTransformerPrintBuffer w)
Adds xml closing tag to buffer


getRootAttributes

protected com.mvsteenb.javauitransformer.xmltransformer.xmlelements.XmlDataElementAttributes getRootAttributes()
Returns root attributes


prepareRootAttributes

protected void prepareRootAttributes()
Prepares root attributes