org.gnu.gtk
Class UIManager

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.UIManager

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.UIManager. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

public class UIManager
extends org.gnu.glib.GObject

A class to construct a user interface (menus and toolbars) from one or more UI definitions, which reference actions from one or more action groups. The UI definitions are specified in an XML format. See the GTK documentation of GtkUIManager for details of this class and the UI definitions XML format.


Constructor Summary
UIManager()
          Deprecated.  
 
Method Summary
 void addListener(UIManagerListener listener)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 void addUI(int mergeId, java.lang.String path, java.lang.String name, java.lang.String action, UIManagerItemType type, boolean top)
          Deprecated.  
 int addUIFromFile(java.lang.String filename)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 int addUIFromReader(java.io.Reader reader)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 int addUIFromString(java.lang.String ui)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 void ensureUpdate()
          Deprecated.  
 AccelGroup getAccelGroup()
          Deprecated.  
 Action getAction(java.lang.String path)
          Deprecated.  
 java.util.List getActionGroups()
          Deprecated.  
 boolean getAddTearoffs()
          Deprecated.  
 java.lang.Class getEventListenerClass(java.lang.String signal)
          Deprecated.  
 org.gnu.glib.EventType getEventType(java.lang.String signal)
          Deprecated.  
 Widget[] getToplevels(UIManagerItemType types)
          Deprecated.  
 java.lang.String getUI()
          Deprecated.  
 Widget getWidget(java.lang.String path)
          Deprecated.  
 void insertActionGroup(ActionGroup group, int position)
          Deprecated.  
 int newMergeId()
          Deprecated.  
 void removeActionGroup(ActionGroup group)
          Deprecated.  
 void removeListener(UIManagerListener listener)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 void removeUI(int mergeId)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 void setAddTearoffs(boolean addTearoffs)
          Deprecated.  
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIManager

public UIManager()
Deprecated. 
Method Detail

setAddTearoffs

public void setAddTearoffs(boolean addTearoffs)
Deprecated. 

getAddTearoffs

public boolean getAddTearoffs()
Deprecated. 

insertActionGroup

public void insertActionGroup(ActionGroup group,
                              int position)
Deprecated. 

removeActionGroup

public void removeActionGroup(ActionGroup group)
Deprecated. 

getActionGroups

public java.util.List getActionGroups()
Deprecated. 

getAccelGroup

public AccelGroup getAccelGroup()
Deprecated. 

getWidget

public Widget getWidget(java.lang.String path)
Deprecated. 

getToplevels

public Widget[] getToplevels(UIManagerItemType types)
Deprecated. 

getAction

public Action getAction(java.lang.String path)
Deprecated. 

addUIFromString

public int addUIFromString(java.lang.String ui)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Parses a string containing a UI definition and merges it with the current contents of self. An enclosing <ui> element is added if it is missing.

Returns:
The merge id for the merged UI. The merge id can be used to unmerge the UI with removeUI(int).
Throws:
java.lang.RuntimeException - If an error occurred adding the UI from the given String.

addUIFromFile

public int addUIFromFile(java.lang.String filename)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Parses a file containing a UI definition and merges it with the current contents of self.

Returns:
The merge id for the merged UI. The merge id can be used to unmerge the UI with removeUI(int).
Throws:
java.lang.RuntimeException - If an error occurred adding the UI from the given String.

addUIFromReader

public int addUIFromReader(java.io.Reader reader)
                    throws java.io.IOException
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Parse the contents of a Reader that contains a UI definition and merges it with the current contents of self. The reader will be wrapped in an efficient Reader implementation before the contents are read. The reader will not be closed by this method.

This method reads the contents of the Reader into a String and calls addUIFromString(java.lang.String). You may be interested in using an InputStreamReader here if your contents come from an InputStream (such as when using getClass().getResourceAsStream() or a URL).

Returns:
The merge id for the merged UI. The merge id can be used to unmerge the UI with removeUI(int).
Throws:
java.lang.RuntimeException - If an error occurred adding the UI from the given String.
java.io.IOException - If there was an error reading the contents of the reader.

addUI

public void addUI(int mergeId,
                  java.lang.String path,
                  java.lang.String name,
                  java.lang.String action,
                  UIManagerItemType type,
                  boolean top)
Deprecated. 

removeUI

public void removeUI(int mergeId)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Unmerges the part of this UIManager's content identified by mergeId.


getUI

public java.lang.String getUI()
Deprecated. 

ensureUpdate

public void ensureUpdate()
Deprecated. 

newMergeId

public int newMergeId()
Deprecated. 

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)
Deprecated. 
Overrides:
getEventListenerClass in class org.gnu.glib.GObject

getEventType

public org.gnu.glib.EventType getEventType(java.lang.String signal)
Deprecated. 
Overrides:
getEventType in class org.gnu.glib.GObject

addListener

public void addListener(UIManagerListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Register an object to handle spin events.

See Also:
SpinListener

removeListener

public void removeListener(UIManagerListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Removes a listener

See Also:
addListener(UIManagerListener)