org.gnu.glade
Class LibGlade

java.lang.Object
  extended by org.gnu.glade.LibGlade

public class LibGlade
extends java.lang.Object

libglade support for Java-GNOME


Constructor Summary
LibGlade(java.io.InputStream in, java.lang.Object owner, java.lang.String root)
          Create a new LibGlade object from an Reader which defines a Glade XML definition.
LibGlade(java.lang.String file, java.lang.Object owner)
          Create a new LibGlade object from a Glade XML definition file.
LibGlade(java.lang.String file, java.lang.Object owner, java.lang.String root)
          Create a new LibGlade object from a Glade XML definition file.
 
Method Summary
 org.gnu.gtk.Widget getWidget(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibGlade

public LibGlade(java.lang.String file,
                java.lang.Object owner)
         throws GladeXMLException,
                java.io.FileNotFoundException,
                java.io.IOException
Create a new LibGlade object from a Glade XML definition file. The definition file is read, parsed, and a GTK widget set is mapped. Each LibGlade object is "owned" by an object that provides event handling for all the defined widgets. This class supports the Glade 2.0 XML schema. Glade 1.0 files (those that start with the <GTK-Interface> tag) can be converted using libglade-convert (part of the libglade2-devel package).

Parameters:
file - the path of the Glade 2.0 XML definition file.
owner - the default object for event handling
Throws:
GladeXMLException
java.io.FileNotFoundException
java.io.IOException

LibGlade

public LibGlade(java.lang.String file,
                java.lang.Object owner,
                java.lang.String root)
         throws GladeXMLException,
                java.io.FileNotFoundException,
                java.io.IOException
Create a new LibGlade object from a Glade XML definition file. The definition file is read, parsed, and a GTK widget set is mapped. Each LibGlade object is "owned" by an object that provides event handling for all the defined widgets. This class supports the Glade 2.0 XML schema. Glade 1.0 files (those that start with the <GTK-Interface> tag) can be converted using libglade-convert (part of the libglade2-devel package). An optional widget node root may be specified to build a fragment of a widget tree (specify null. From the LibGlade 2.0 documentation: "This feature is useful if you only want to build say a toolbar or menu from the XML file, but not the window it is embedded in."

Parameters:
file - the path of the Glade 2.0 XML definition file.
owner - the default object for event handling
root - the root widget node for a sub-tree, or null for the complete tree.
Throws:
GladeXMLException
java.io.FileNotFoundException
java.io.IOException

LibGlade

public LibGlade(java.io.InputStream in,
                java.lang.Object owner,
                java.lang.String root)
         throws GladeXMLException,
                java.io.IOException
Create a new LibGlade object from an Reader which defines a Glade XML definition. This definition is read, parsed, and a GTK widget set is mapped. Each LibGlade object is "owned" by an object that provides event handling for all the defined widgets. This class supports the Glade 2.0 XML schema. Glade 1.0 files (those that start with the <GTK-Interface> tag) can be converted using libglade-convert (part of the libglade2-devel package). An optional widget node root may be specified to build a fragment of a widget tree (specify null. From the LibGlade 2.0 documentation: "This feature is useful if you only want to build say a toolbar or menu from the XML file, but not the window it is embedded in."

Parameters:
in - the stream for a Glade 2.0 XML definition.
owner - the default object for event handling
root - the root widget node for a sub-tree, or null for the complete tree.
Throws:
GladeXMLException
java.io.IOException
Method Detail

getWidget

public org.gnu.gtk.Widget getWidget(java.lang.String name)