org.kde.koala
Class PartBase

java.lang.Object
  extended by org.kde.koala.KXMLGUIClient
      extended by org.kde.koala.PartBase
All Implemented Interfaces:
KXMLGUIClientInterface, org.kde.qt.QtSupport

public class PartBase
extends KXMLGUIClient

Base class for all parts.


Field Summary
 
Fields inherited from class org.kde.koala.KXMLGUIClient
StateNoReverse, StateReverse
 
Constructor Summary
  PartBase()
          Constructor.
protected PartBase(java.lang.Class dummy)
           
 
Method Summary
protected  void loadPlugins(org.kde.qt.QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
          Load the Plugins honoring the PluginLoadingMode.
 org.kde.qt.QObject partObject()
           
protected  void setInstance(KInstanceInterface instance)
          Set the instance ( KInstance) for this part.
protected  void setInstance(KInstanceInterface instance, boolean loadPlugins)
          Set the instance ( KInstance) for this part.
 void setPartObject(org.kde.qt.QObject object)
          Internal method.
 
Methods inherited from class org.kde.koala.KXMLGUIClient
action, action, actionCollection, addStateActionDisabled, addStateActionEnabled, beginXMLPlug, clientBuilder, conserveMemory, dispose, domDocument, endXMLPlug, factory, finalize, findMostRecentXMLFile, insertChildClient, instance, isDisposed, localXMLFile, parentClient, prepareXMLUnplug, reloadXML, removeChildClient, setClientBuilder, setDOMDocument, setDOMDocument, setFactory, setLocalXMLFile, setXML, setXML, setXMLFile, setXMLFile, setXMLFile, setXMLGUIBuildDocument, stateChanged, stateChanged, unplugActionList, xmlFile, xmlguiBuildDocument
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartBase

protected PartBase(java.lang.Class dummy)

PartBase

public PartBase()
Constructor.

Method Detail

setPartObject

public void setPartObject(org.kde.qt.QObject object)
Internal method. Called by KParts.Part to specify the parent object for plugin objects.


partObject

public org.kde.qt.QObject partObject()

setInstance

protected void setInstance(KInstanceInterface instance)
Set the instance ( KInstance) for this part. Call this first in the inherited class constructor, because it loads the i18n catalogues.

Overrides:
setInstance in class KXMLGUIClient

setInstance

protected void setInstance(KInstanceInterface instance,
                           boolean loadPlugins)
Set the instance ( KInstance) for this part. Call this first in the inherited class constructor, because it loads the i18n catalogues.


loadPlugins

protected void loadPlugins(org.kde.qt.QObject parent,
                           KXMLGUIClientInterface parentGUIClient,
                           KInstanceInterface instance)
Load the Plugins honoring the PluginLoadingMode. If you call this method in an already constructed GUI (like when the user has changed which plugins are enabled) you need to add the new plugins to the KXMLGUIFactory:
                 if( factory() )
                 {
                   QPtrList plugins = KParts.Plugin.pluginObjects( this );
                   QPtrListIterator it( plugins );
                   KParts.Plugin  plugin;
                   while( ( plugin = it.current() ) != 0 )
                   {
                     ++it;
                     factory().addClient(  plugin );
                   }
                 }