com.ibm.as400.ui.framework
Class XMLPanelDefinition

java.lang.Object
  extended by com.ibm.as400.ui.framework.XMLPanelDefinition
All Implemented Interfaces:
Serializable, DocumentHandler

public class XMLPanelDefinition
extends Object
implements Serializable, DocumentHandler

See Also:
Serialized Form

Constructor Summary
Constructor and Description
XMLPanelDefinition(String sName)
           
XMLPanelDefinition(String baseName, Locale locale)
           
XMLPanelDefinition(String baseName, Locale locale, String panelName)
           
XMLPanelDefinition(String baseName, ResourceBundle properties, String panelName, String sxml, PanelDefinitionsDescriptor pdd)
           
 
Method Summary
Modifier and Type Method and Description
 void characters(char[] ch, int start, int length)
          This is a SAX ContentHandler method.
 void discardComponent(ComponentDescriptor cd)
           
 void dump()
           
 void endDocument()
          This is a SAX ContentHandler method.
 void endElement(String rawName)
          This is a SAX ContentHandler method.
 void endPrefixMapping(String prefix)
           
 Enumeration getComponentDescriptors()
           
 String getDocumentName()
           
 PanelDescriptor getPanel()
           
 Vector getPanelComponents()
           
 PanelDefinitionsDescriptor getPanelDefinitions()
           
 Vector getPanelMenuBar()
           
 ToolBarDescriptor getPanelToolBar()
           
static Object getParser(Object handler, XMLSAXErrorHandler xh)
          Obtains a fully-initialized parser instance.
 void ignorableWhitespace(char[] ch, int start, int length)
          This is a SAX ContentHandler method.
static void introspectMethod(Object srcObject, String methodName, Object[] parms)
           
static void introspectMethod(Object srcObject, String methodName, Object[] parms, Class[] parmClasses)
           
static void introspectMethod(Object srcObject, String methodName, Object[] parms, Class[] parmClasses, String resource)
           
static void main(String[] args)
           
 void processingInstruction(String target, String data)
          This is a SAX ContentHandler method.
 void setDocumentLocator(Locator locator)
          This is a SAX ContentHandler method.
 void setPanel(PanelDescriptor pd)
           
 void setPanelComponents(Vector v)
           
 void setPanelDefinitions(PanelDefinitionsDescriptor pdd)
           
 void skippedEntity(String name)
          This is a SAX ContentHandler method.
 void startDocument()
          This is a SAX ContentHandler method.
 void startElement(String rawName, AttributeList attributeList)
          This is a SAX ContentHandler method.
 void startPrefixMapping(String prefix, String uri)
          This is a SAX ContentHandler method.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLPanelDefinition

public XMLPanelDefinition(String baseName,
                          Locale locale,
                          String panelName)
                   throws MissingResourceException,
                          IOException,
                          ParseException,
                          PDMLSpecificationException
Throws:
MissingResourceException
IOException
ParseException
PDMLSpecificationException

XMLPanelDefinition

public XMLPanelDefinition(String baseName,
                          Locale locale)
                   throws MissingResourceException,
                          IOException,
                          ParseException,
                          PDMLSpecificationException
Throws:
MissingResourceException
IOException
ParseException
PDMLSpecificationException

XMLPanelDefinition

public XMLPanelDefinition(String baseName,
                          ResourceBundle properties,
                          String panelName,
                          String sxml,
                          PanelDefinitionsDescriptor pdd)
                   throws MissingResourceException,
                          IOException,
                          ParseException,
                          PDMLSpecificationException
Throws:
MissingResourceException
IOException
ParseException
PDMLSpecificationException

XMLPanelDefinition

public XMLPanelDefinition(String sName)
Method Detail

main

public static void main(String[] args)

getParser

public static Object getParser(Object handler,
                               XMLSAXErrorHandler xh)
                        throws ParseException
Obtains a fully-initialized parser instance.

Returns:
An instance of org.apache.xerces.parsers.SAXParser.
Throws:
ParseException - When something goes wrong with introspection.

introspectMethod

public static void introspectMethod(Object srcObject,
                                    String methodName,
                                    Object[] parms)
                             throws ParseException
Throws:
ParseException

introspectMethod

public static void introspectMethod(Object srcObject,
                                    String methodName,
                                    Object[] parms,
                                    Class[] parmClasses)
                             throws ParseException
Throws:
ParseException

introspectMethod

public static void introspectMethod(Object srcObject,
                                    String methodName,
                                    Object[] parms,
                                    Class[] parmClasses,
                                    String resource)
                             throws ParseException
Throws:
ParseException

getPanelDefinitions

public PanelDefinitionsDescriptor getPanelDefinitions()

getPanel

public PanelDescriptor getPanel()

getPanelComponents

public Vector getPanelComponents()

setPanelDefinitions

public void setPanelDefinitions(PanelDefinitionsDescriptor pdd)

setPanel

public void setPanel(PanelDescriptor pd)

setPanelComponents

public void setPanelComponents(Vector v)

getPanelMenuBar

public Vector getPanelMenuBar()

getPanelToolBar

public ToolBarDescriptor getPanelToolBar()

discardComponent

public void discardComponent(ComponentDescriptor cd)

toString

public String toString()
Overrides:
toString in class Object

dump

public void dump()

startDocument

public void startDocument()
This is a SAX ContentHandler method.

Specified by:
startDocument in interface DocumentHandler

endDocument

public void endDocument()
This is a SAX ContentHandler method.

Specified by:
endDocument in interface DocumentHandler

startElement

public void startElement(String rawName,
                         AttributeList attributeList)
This is a SAX ContentHandler method.

Specified by:
startElement in interface DocumentHandler

endElement

public void endElement(String rawName)
This is a SAX ContentHandler method.

Specified by:
endElement in interface DocumentHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
This is a SAX ContentHandler method.

Specified by:
characters in interface DocumentHandler

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
This is a SAX ContentHandler method.

Specified by:
ignorableWhitespace in interface DocumentHandler

processingInstruction

public void processingInstruction(String target,
                                  String data)
This is a SAX ContentHandler method.

Specified by:
processingInstruction in interface DocumentHandler

setDocumentLocator

public void setDocumentLocator(Locator locator)
This is a SAX ContentHandler method.

Specified by:
setDocumentLocator in interface DocumentHandler

skippedEntity

public void skippedEntity(String name)
This is a SAX ContentHandler method.


startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
This is a SAX ContentHandler method.


endPrefixMapping

public void endPrefixMapping(String prefix)

getDocumentName

public String getDocumentName()

getComponentDescriptors

public Enumeration getComponentDescriptors()