com.abstractics.xmlpanel.swing.componentcreator
Class JScrollPaneCreator
java.lang.Object
com.abstractics.xmlpanel.swing.componentcreator.AbstractComponentCreator
com.abstractics.xmlpanel.swing.componentcreator.JScrollPaneCreator
- All Implemented Interfaces:
- ComponentCreator
- public class JScrollPaneCreator
- extends AbstractComponentCreator
A ComponentCreator that creates a JScrollPane object. This creator expects
there to be a child element called <component>
that will
be used to determine what component is placed in the JScrollPane. The
component will be determined by using the ComponentFactory to create the
component.
- Version:
- $Id: JScrollPaneCreator.java,v 1.2 2006/03/15 05:37:40 andyman99 Exp $
- Author:
- Andrew Lawrence, Copyright 2006 Abstractics, L.L.C., Licensed under the Apache
License, Version 2.0
Method Summary |
java.awt.Component |
constructComponent(org.w3c.dom.Element element,
XmlPanel panel)
Given an element representing a cell in an XMLPanel, this method should
construct the appropriate Component for the type that this component is
looking for, setting all of the properties necessary.
This method will be called by this abstract class to create the component
before setting the properties and border. |
java.lang.String[] |
getComponentTypes()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JScrollPaneCreator
public JScrollPaneCreator()
constructComponent
public java.awt.Component constructComponent(org.w3c.dom.Element element,
XmlPanel panel)
- Description copied from class:
AbstractComponentCreator
- Given an element representing a cell in an XMLPanel, this method should
construct the appropriate Component for the type that this component is
looking for, setting all of the properties necessary.
This method will be called by this abstract class to create the component
before setting the properties and border.
- Specified by:
constructComponent
in class AbstractComponentCreator
- Parameters:
element
- XML element to parse throughpanel
- The XmlPanel that this component is being placed into - for
reference only!. This method should not mutate the panel
in any way. It is also possible that this parameter could be
null, so always check first.
- Returns:
- The resulting
java.awt.Component
- See Also:
ComponentCreator.createComponent(Element, XmlPanel)
getComponentTypes
public java.lang.String[] getComponentTypes()
- Returns:
- Return the type name(s) that this XmlPanelComponentCreator is
known by. When cell tags are found with a type attribute that
matches one of these values (case-insensitive), then this
component creator will be used