org.gnu.gtk
public class UIManager extends GObject
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.
Constructor Summary | |
---|---|
UIManager() |
Method Summary | |
---|---|
void | addListener(UIManagerListener listener)
Register an object to handle spin events.
|
void | addUI(int mergeId, String path, String name, String action, UIManagerItemType type, boolean top) |
int | addUIFromFile(String filename)
Parses a file containing a UI definition and merges it with the current
contents of self.
|
int | addUIFromReader(Reader reader)
Parse the contents of a Reader that contains a UI definition
and merges it with the current contents of self. |
int | addUIFromString(String ui)
Parses a string containing a UI definition and merges it with the current
contents of self. |
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)
Removes a listener
|
void | removeUI(int mergeId)
Unmerges the part of this UIManager's content identified by
mergeId. |
void | setAddTearoffs(boolean addTearoffs) |
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
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 UIManager.
Throws: RuntimeException If an error occurred adding the UI from the given String.
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 UIManager. 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 UIManager.
Throws: 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.
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 UIManager.
Throws: RuntimeException If an error occurred adding the UI from the given String.
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 listenerSee Also: addListener
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.