org.gnu.gtk
public class UIManager extends GObject
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) |
See Also: SpinListener
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.
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.
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.
See Also: addListener