org.gnu.gtk

Class UIManager


public class UIManager
extends 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()

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, String path, String name, String action, UIManagerItemType type, boolean top)
int
addUIFromFile(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(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(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()
AccelGroup
getAccelGroup()
Action
getAction(String path)
List
getActionGroups()
boolean
getAddTearoffs()
Class
getEventListenerClass(String signal)
EventType
getEventType(String signal)
Widget[]
getToplevels(UIManagerItemType types)
String
getUI()
Widget
getWidget(String path)
void
insertActionGroup(ActionGroup group, int position)
int
newMergeId()
void
removeActionGroup(ActionGroup group)
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)

Constructor Details

UIManager

public UIManager()

Method Details

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

addUI

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

addUIFromFile

public int addUIFromFile(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.

addUIFromReader

public int addUIFromReader(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.

Returns:
The merge id for the merged UI. The merge id can be used to unmerge the UI with removeUI(int).

addUIFromString

public int addUIFromString(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.

ensureUpdate

public void ensureUpdate()

getAccelGroup

public AccelGroup getAccelGroup()

getAction

public Action getAction(String path)

getActionGroups

public List getActionGroups()

getAddTearoffs

public boolean getAddTearoffs()

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getToplevels

public Widget[] getToplevels(UIManagerItemType types)

getUI

public String getUI()

getWidget

public Widget getWidget(String path)

insertActionGroup

public void insertActionGroup(ActionGroup group,
                              int position)

newMergeId

public int newMergeId()

removeActionGroup

public void removeActionGroup(ActionGroup group)

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

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.

setAddTearoffs

public void setAddTearoffs(boolean addTearoffs)