org.gnu.glib
public class Value extends MemStruct
Constructor Summary | |
---|---|
Value(Type type)
Construct a new Value from a given org.gnu.glib.Type. | |
Value(Handle aHandle)
Construct a new Value object using a handle to a native object.
|
Method Summary | |
---|---|
Value | copy()
Create a copy of this Value object.
|
boolean | getBoolean()
Used internally by Java-Gnome |
Boxed | getBoxed() |
double | getDouble()
Used internally by Java-Gnome |
double | getFloat()
Used internally by Java-Gnome |
int | getInt()
Used internally by Java-Gnome |
Object | getJavaObject()
Get the data held by this Value object.
|
long | getLong()
Used internally by Java-Gnome |
Pixbuf | getPixbuf()
Used internally by Java-Gnome.
|
String | getString()
Used internally by Java-Gnome |
void | setBoolean(boolean value)
Used internally by Java-Gnome to set a boolean value |
void | setBoxed(Boxed value) |
void | setDouble(double value)
Used internally by Java-Gnome to set a double value |
void | setFloat(float value)
Used internally by Java-Gnome to set a float value |
void | setInteger(int value)
Used internally by Java-Gnome to set an integer value |
void | setJavaObject(Object obj)
Set the data held by this Value object with the given Object. |
void | setLong(long value)
Used internally by Java-Gnome to set a long value |
void | setPixbuf(Pixbuf obj)
Used internally by Java-Gnome.
|
void | setString(String value)
Used internally by Java-Gnome to set a string value |
Parameters: aHandle The handle
Returns: An object of type Value that contains the same data as the current object.
NOTE: You probably don't want to use this directly. Prefer using a convenience method such as: {@link GObject#getJavaObjectProperty}.
Returns: The data value held by this Value instance. If the data is held in the C GValue structure, the returned object is an instance of {@link Handle}. If the data is held locally in the Java object, that is returned, otherwise null is returned.
Deprecated: As of libgtk-java 2.8.5, this method has been deprecated in favour of {@link #getJavaObject()}. Future major version releases will have this method removed, please use with caution.
Used internally by Java-Gnome.NOTE: You probably don't want to use this directly. Prefer using a convenience method such as: {@link GObject#setJavaObjectProperty}.
Parameters: obj The object to set as the data value for this Value instance.
Deprecated: As of libgtk-java 2.8.5, this method has been deprecated in favour of {@link #setJavaObject(Object)}. Future major version releases will have this method removed, please use with caution.
Used internally by Java-Gnome.