org.kde.koala
Class KXMLGUIBuilder

java.lang.Object
  extended by org.kde.koala.KXMLGUIBuilder
All Implemented Interfaces:
KXMLGUIBuilderInterface, org.kde.qt.QtSupport

public class KXMLGUIBuilder
extends java.lang.Object
implements org.kde.qt.QtSupport, KXMLGUIBuilderInterface

Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by KMainWindow for the case where the toplevel widget is a KMainWindow. Other implementations may appear in the future (dialogs for instance)


Constructor Summary
protected KXMLGUIBuilder(java.lang.Class dummy)
           
  KXMLGUIBuilder(org.kde.qt.QWidget widget)
           
 
Method Summary
 KXMLGUIClientInterface builderClient()
           
 KInstanceInterface builderInstance()
           
 java.util.ArrayList containerTags()
           
 org.kde.qt.QWidget createContainer(org.kde.qt.QWidget parent, int index, org.kde.qt.QDomElement element, int[] id)
          Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file
 int createCustomElement(org.kde.qt.QWidget parent, int index, org.kde.qt.QDomElement element)
           
 java.util.ArrayList customTags()
           
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 void finalizeGUI(KXMLGUIClientInterface client)
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 void removeContainer(org.kde.qt.QWidget container, org.kde.qt.QWidget parent, org.kde.qt.QDomElement element, int id)
          Removes the given (and previously via createContainer ) created container.
 void removeCustomElement(org.kde.qt.QWidget parent, int id)
           
 void setBuilderClient(KXMLGUIClientInterface client)
           
 void setBuilderInstance(KInstanceInterface instance)
           
 org.kde.qt.QWidget widget()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KXMLGUIBuilder

protected KXMLGUIBuilder(java.lang.Class dummy)

KXMLGUIBuilder

public KXMLGUIBuilder(org.kde.qt.QWidget widget)
Method Detail

builderClient

public KXMLGUIClientInterface builderClient()
Specified by:
builderClient in interface KXMLGUIBuilderInterface

setBuilderClient

public void setBuilderClient(KXMLGUIClientInterface client)
Specified by:
setBuilderClient in interface KXMLGUIBuilderInterface

builderInstance

public KInstanceInterface builderInstance()
Specified by:
builderInstance in interface KXMLGUIBuilderInterface

setBuilderInstance

public void setBuilderInstance(KInstanceInterface instance)
Specified by:
setBuilderInstance in interface KXMLGUIBuilderInterface

widget

public org.kde.qt.QWidget widget()
Specified by:
widget in interface KXMLGUIBuilderInterface

containerTags

public java.util.ArrayList containerTags()
Specified by:
containerTags in interface KXMLGUIBuilderInterface

createContainer

public org.kde.qt.QWidget createContainer(org.kde.qt.QWidget parent,
                                          int index,
                                          org.kde.qt.QDomElement element,
                                          int[] id)
Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file

Specified by:
createContainer in interface KXMLGUIBuilderInterface
Parameters:
parent - The parent for the container
index - The index where the container should be inserted into the parent container/widget
element - The element from the DOM tree describing the container (use it to access container specified attributes or child elements)
id - The id to be used for this container

removeContainer

public void removeContainer(org.kde.qt.QWidget container,
                            org.kde.qt.QWidget parent,
                            org.kde.qt.QDomElement element,
                            int id)
Removes the given (and previously via createContainer ) created container.

Specified by:
removeContainer in interface KXMLGUIBuilderInterface

customTags

public java.util.ArrayList customTags()
Specified by:
customTags in interface KXMLGUIBuilderInterface

createCustomElement

public int createCustomElement(org.kde.qt.QWidget parent,
                               int index,
                               org.kde.qt.QDomElement element)
Specified by:
createCustomElement in interface KXMLGUIBuilderInterface

removeCustomElement

public void removeCustomElement(org.kde.qt.QWidget parent,
                                int id)
Specified by:
removeCustomElement in interface KXMLGUIBuilderInterface

finalizeGUI

public void finalizeGUI(KXMLGUIClientInterface client)
Specified by:
finalizeGUI in interface KXMLGUIBuilderInterface

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?