org.gnu.glib
Class Value

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.MemStruct
          extended by org.gnu.glib.Value

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 does have an equivalent in java-gnome 4.0, but it serves a rather different purpose. See org.gnome.glib.Value. 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 Value
extends MemStruct

Value is a polymorphic type that can hold values of any other type. This is used internally and should not be exposed outside of the library.


Constructor Summary
Value(Handle aHandle)
          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.
Value(Type type)
          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.
 
Method Summary
 Value copy()
          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.
protected static Handle g_value_copy(Handle srcValue)
          Deprecated.  
protected static boolean g_value_get_boolean(Handle value)
          Deprecated.  
protected static Handle g_value_get_boxed(Handle value)
          Deprecated.  
protected static byte g_value_get_char(Handle value)
          Deprecated.  
protected static double g_value_get_double(Handle value)
          Deprecated.  
protected static double g_value_get_float(Handle value)
          Deprecated.  
protected static int g_value_get_int(Handle value)
          Deprecated.  
protected static java.lang.Object g_value_get_java_object(Handle value)
          Deprecated.  
protected static long g_value_get_long(Handle value)
          Deprecated.  
protected static Handle g_value_get_pointer(Handle value)
          Deprecated.  
protected static java.lang.String g_value_get_string(Handle value)
          Deprecated.  
protected static Handle g_value_init(int type)
          Deprecated.  
protected static Handle g_value_reset(Handle value)
          Deprecated.  
protected static void g_value_set_boolean(Handle value, boolean vBoolean)
          Deprecated.  
protected static void g_value_set_boxed(Handle value, Handle box)
          Deprecated.  
protected static void g_value_set_char(Handle value, byte vChar)
          Deprecated.  
protected static void g_value_set_double(Handle value, double vDouble)
          Deprecated.  
protected static void g_value_set_float(Handle value, double vFloat)
          Deprecated.  
protected static void g_value_set_int(Handle value, int vInt)
          Deprecated.  
protected static void g_value_set_java_object(Handle value, java.lang.Object obj)
          Deprecated.  
protected static void g_value_set_long(Handle value, long vLong)
          Deprecated.  
protected static void g_value_set_pointer(Handle value, Handle ptr)
          Deprecated.  
protected static void g_value_set_string(Handle value, java.lang.String vString)
          Deprecated.  
protected static int g_value_type(Handle value)
          Deprecated.  
protected static void g_value_unset(Handle value)
          Deprecated.  
 boolean getBoolean()
          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.
 Boxed getBoxed()
          Deprecated.  
 double getDouble()
          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.
 double getFloat()
          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 getInt()
          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.
 java.lang.Object getJavaObject()
          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.
 long getLong()
          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.
 java.lang.String getString()
          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 setBoolean(boolean value)
          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 setBoxed(Boxed value)
          Deprecated.  
 void setDouble(double value)
          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 setFloat(float value)
          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 setInteger(int value)
          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 setJavaObject(java.lang.Object obj)
          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 setLong(long value)
          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 setString(java.lang.String value)
          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.
 
Methods inherited from class org.gnu.glib.MemStruct
finalize, getMemStructFromHandle
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode, setHandle
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value(Type type)
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.

Construct a new Value from a given org.gnu.glib.Type.


Value

public Value(Handle aHandle)
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.

Construct a new Value object using a handle to a native object.

Parameters:
aHandle - The handle
Method Detail

copy

public Value copy()
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.

Create a copy of this Value object.

Returns:
An object of type Value that contains the same data as the current object.

setString

public void setString(java.lang.String value)
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.

Used internally by Java-Gnome to set a string value


getString

public java.lang.String getString()
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.

Used internally by Java-Gnome


setBoolean

public void setBoolean(boolean value)
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.

Used internally by Java-Gnome to set a boolean value


getBoolean

public boolean getBoolean()
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.

Used internally by Java-Gnome


setInteger

public void setInteger(int value)
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.

Used internally by Java-Gnome to set an integer value


getInt

public int getInt()
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.

Used internally by Java-Gnome


setLong

public void setLong(long value)
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.

Used internally by Java-Gnome to set a long value


getLong

public long getLong()
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.

Used internally by Java-Gnome


setFloat

public void setFloat(float value)
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.

Used internally by Java-Gnome to set a float value


getFloat

public double getFloat()
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.

Used internally by Java-Gnome


setDouble

public void setDouble(double value)
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.

Used internally by Java-Gnome to set a double value


getDouble

public double getDouble()
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.

Used internally by Java-Gnome


getBoxed

public Boxed getBoxed()
Deprecated. 

setBoxed

public void setBoxed(Boxed value)
Deprecated. 

setJavaObject

public void setJavaObject(java.lang.Object obj)
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.

Set the data held by this Value object with the given Object. Objects will be set directly in the C GValue structure. Other "non-Glib" objects will also be kept locally in the Java object.

NOTE: You probably don't want to use this directly. Prefer using a convenience method such as: GObject.setJavaObjectProperty(java.lang.String, java.lang.Object).

Parameters:
obj - The object to set as the data value for this Value instance.

getJavaObject

public java.lang.Object getJavaObject()
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.

Get the data held by this Value object.

NOTE: You probably don't want to use this directly. Prefer using a convenience method such as: GObject.getJavaObjectProperty(java.lang.String).

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 Handle. If the data is held locally in the Java object, that is returned, otherwise null is returned.

g_value_init

protected static final Handle g_value_init(int type)
Deprecated. 

g_value_type

protected static final int g_value_type(Handle value)
Deprecated. 

g_value_copy

protected static final Handle g_value_copy(Handle srcValue)
Deprecated. 

g_value_reset

protected static final Handle g_value_reset(Handle value)
Deprecated. 

g_value_unset

protected static final void g_value_unset(Handle value)
Deprecated. 

g_value_set_char

protected static final void g_value_set_char(Handle value,
                                             byte vChar)
Deprecated. 

g_value_get_char

protected static final byte g_value_get_char(Handle value)
Deprecated. 

g_value_set_boolean

protected static final void g_value_set_boolean(Handle value,
                                                boolean vBoolean)
Deprecated. 

g_value_get_boolean

protected static final boolean g_value_get_boolean(Handle value)
Deprecated. 

g_value_set_int

protected static final void g_value_set_int(Handle value,
                                            int vInt)
Deprecated. 

g_value_get_int

protected static final int g_value_get_int(Handle value)
Deprecated. 

g_value_set_long

protected static final void g_value_set_long(Handle value,
                                             long vLong)
Deprecated. 

g_value_get_long

protected static final long g_value_get_long(Handle value)
Deprecated. 

g_value_set_float

protected static final void g_value_set_float(Handle value,
                                              double vFloat)
Deprecated. 

g_value_get_float

protected static final double g_value_get_float(Handle value)
Deprecated. 

g_value_set_double

protected static final void g_value_set_double(Handle value,
                                               double vDouble)
Deprecated. 

g_value_get_double

protected static final double g_value_get_double(Handle value)
Deprecated. 

g_value_set_string

protected static final void g_value_set_string(Handle value,
                                               java.lang.String vString)
Deprecated. 

g_value_get_string

protected static final java.lang.String g_value_get_string(Handle value)
Deprecated. 

g_value_set_boxed

protected static final void g_value_set_boxed(Handle value,
                                              Handle box)
Deprecated. 

g_value_get_boxed

protected static final Handle g_value_get_boxed(Handle value)
Deprecated. 

g_value_set_java_object

protected static final void g_value_set_java_object(Handle value,
                                                    java.lang.Object obj)
Deprecated. 

g_value_get_java_object

protected static final java.lang.Object g_value_get_java_object(Handle value)
Deprecated. 

g_value_set_pointer

protected static final void g_value_set_pointer(Handle value,
                                                Handle ptr)
Deprecated. 

g_value_get_pointer

protected static final Handle g_value_get_pointer(Handle value)
Deprecated.