org.gnome.glib
Class Object
java.lang.Object
org.freedesktop.bindings.Proxy
public abstract class Object
extends org.freedesktop.bindings.Proxy
Base class of the object system used by GLib and libraries based on it,
such as GTK.
This is the wrapper around GObject
!
Methods here provide the mechanism to get and set "properties" on the
underlying GObject
s. As a deliberate design decision to
ensure type safety, however, these are not exposed for public use. To offer
a getter or setter for a property, a java-gnome subclass must expose an
explicitly named method. For example, to set the "
righteous
"
property, (assuming that the GObject
in question has such
a property, that it is writable, and that it takes a string), create a
method like this:
public void setRighteous(String value) {
setPropertyString("righteous", value);
}
This is of course insanely type-unsafe. In general, luckily, this is not
necessary, as most GObject
s provide convenience methods for
such things, and should be used in preference wherever available.
|  java-gnome |