org.gnu.glib
Class Boxed

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.Boxed

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 may have an equivalent in java-gnome 4.0, see org.gnome.glib.Boxed. 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 Boxed
extends Struct

A mechanism to wrap opaque structures registered by the type system.


Constructor Summary
protected Boxed()
          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 Boxed(Handle handle)
          Deprecated.  
 
Method Summary
 boolean equals(java.lang.Object other)
          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  void finalize()
          Deprecated.  
static Boxed getBoxedFromHandle(Handle hndl)
          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 hashCode()
          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.Struct
getHandle, getNullHandle, setHandle
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Boxed

protected Boxed()
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.

This class is only instantiable via subclasses.


Boxed

protected Boxed(Handle handle)
Deprecated. 
Method Detail

getBoxedFromHandle

public static Boxed getBoxedFromHandle(Handle hndl)
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.

Gets a Boxed instance for the given Handle. If no Java object currently exists for the given Handle, this method will return null. You should then instantiate the required Java class using the class' handle-constructor. For example:
 // Get a Handle from somewhere (typically as a parameter to a method
 // used as a callback and invoked from the C JNI side).
 SomeGtkClass finalobj = null;
 Boxed obj = Boxed.getBoxedFromHandle(handle);
 if (obj == null) {
     finalobj = new SomeGtkClass(handle);
 } else {
     finalobj = (SomeGtkClass) obj;
 }
 
NOTE: This is for internal use only and should never need to be used in application code.


equals

public boolean equals(java.lang.Object other)
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.

Check if two objects refer to the same (native) object.

Overrides:
equals in class Struct
Parameters:
other - the reference object with which to compare.
Returns:
true if both objects refer to the same object.

hashCode

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

Returns a hash code value for the object. This allows for using Boxed objects as keys in hashmaps.

Overrides:
hashCode in class Struct
Returns:
a hash code value for the object.

finalize

protected void finalize()
                 throws java.lang.Throwable
Deprecated. 
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable