|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.UIManager
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
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 |
---|
public UIManager()
Method Detail |
---|
public void setAddTearoffs(boolean addTearoffs)
public boolean getAddTearoffs()
public void insertActionGroup(ActionGroup group, int position)
public void removeActionGroup(ActionGroup group)
public java.util.List getActionGroups()
public AccelGroup getAccelGroup()
public Widget getWidget(java.lang.String path)
public Widget[] getToplevels(UIManagerItemType types)
public Action getAction(java.lang.String path)
public int addUIFromString(java.lang.String ui)
removeUI(int)
.
java.lang.RuntimeException
- If an error occurred adding the UI from the given String.public int addUIFromFile(java.lang.String filename)
removeUI(int)
.
java.lang.RuntimeException
- If an error occurred adding the UI from the given String.public int addUIFromReader(java.io.Reader reader) throws java.io.IOException
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).
removeUI(int)
.
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.public void addUI(int mergeId, java.lang.String path, java.lang.String name, java.lang.String action, UIManagerItemType type, boolean top)
public void removeUI(int mergeId)
public java.lang.String getUI()
public void ensureUpdate()
public int newMergeId()
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class org.gnu.glib.GObject
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class org.gnu.glib.GObject
public void addListener(UIManagerListener listener)
SpinListener
public void removeListener(UIManagerListener listener)
addListener(UIManagerListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |