org.gnu.glib
Class Value

java.lang.Object
  |
  +--org.gnu.glib.Boxed
        |
        +--org.gnu.glib.Value

public class Value
extends Boxed

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(int aHandle)
          Construct a new Value object using a handle to a native object.
Value(Type type)
          Construct a new Value from a given org.gnu.glib.Type.
 
Method Summary
 Value copy()
          Create a copy of this Value object.
 boolean getBoolean()
          Used internally by Java-Gnome
 double getDouble()
          Used internally by Java-Gnome
 double getFloat()
          Used internally by Java-Gnome
 int getInt()
          Used internally by Java-Gnome
 java.lang.Object getJavaObject()
          Used internally
 long getLong()
          Used internally by Java-Gnome
 Pixbuf getPixbuf()
          Used internally
 java.lang.String getString()
          Used internally by Java-Gnome
 void setBoolean(boolean value)
          Used internally by Java-Gnome to set a boolean 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(java.lang.Object obj)
          Used internally by Java-Gnome
 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(java.lang.String value)
          Used internally by Java-Gnome to set a string value
 
Methods inherited from class org.gnu.glib.Boxed
equals, getHandle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value(Type type)
Construct a new Value from a given org.gnu.glib.Type.


Value

public Value(int aHandle)
Construct a new Value object using a handle to a native object.

Parameters:
aHandle - The handle
Method Detail

copy

public Value copy()
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)
Used internally by Java-Gnome to set a string value


getString

public java.lang.String getString()
Used internally by Java-Gnome


setBoolean

public void setBoolean(boolean value)
Used internally by Java-Gnome to set a boolean value


getBoolean

public boolean getBoolean()
Used internally by Java-Gnome


setInteger

public void setInteger(int value)
Used internally by Java-Gnome to set an integer value


getInt

public int getInt()
Used internally by Java-Gnome


setLong

public void setLong(long value)
Used internally by Java-Gnome to set a long value


getLong

public long getLong()
Used internally by Java-Gnome


setFloat

public void setFloat(float value)
Used internally by Java-Gnome to set a float value


getFloat

public double getFloat()
Used internally by Java-Gnome


setDouble

public void setDouble(double value)
Used internally by Java-Gnome to set a double value


getDouble

public double getDouble()
Used internally by Java-Gnome


setPixbuf

public void setPixbuf(Pixbuf obj)
Used internally by Java-Gnome


getPixbuf

public Pixbuf getPixbuf()
Used internally


setJavaObject

public void setJavaObject(java.lang.Object obj)
Used internally by Java-Gnome


getJavaObject

public java.lang.Object getJavaObject()
Used internally


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net