org.gnu.gtk

Class HandleBox

public class HandleBox extends Bin

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 in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.HandleBox. 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.

The HandleBox widget allows a portion of the window to be "torn-off". It is a bin widget which displays its children and a handle that the user can drag to tear off a separate window containing the child widget. A thin ghost is drawn in the original location of the handlebox. By dragging the separate window back to its original location it can be reattached.
Constructor Summary
HandleBox()
Create a new HandleBox object.
HandleBox(Handle handle)
Construct a HandleBox using a handle to a native resource.
Method Summary
voidaddListener(HandleBoxListener listener)
Register an object to handle dialog events.
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
static HandleBoxgetHandleBox(Handle handle)
Internal static factory method to be used by Java-Gnome only.
PositionTypegetHandlePosition()
Retrieves the handle position.
ShadowTypegetShadowType()
Retrieves the shadow type used by this widget.
PositionTypegetShapEdge()
Retrieves the snap edge of the widget.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(HandleBoxListener listener)
Removes a listener
voidsetHandlePosition(PositionType position)
Sets the side of the handle box where the handle is drawn.
voidsetShadowType(ShadowType type)
Set the shadow type to be drawn around the border of the handle box.
voidsetShapEdge(PositionType edge)
Sets the snap edge of the handle box.

Constructor Detail

HandleBox

public HandleBox()

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 new HandleBox object.

HandleBox

public HandleBox(Handle handle)

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 HandleBox using a handle to a native resource.

Method Detail

addListener

public void addListener(HandleBoxListener listener)

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.

Register an object to handle dialog events.

See Also: HandleBoxListener

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getHandleBox

public static HandleBox getHandleBox(Handle handle)

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.

Internal static factory method to be used by Java-Gnome only.

getHandlePosition

public PositionType getHandlePosition()

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.

Retrieves the handle position.

getShadowType

public ShadowType getShadowType()

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.

Retrieves the shadow type used by this widget.

getShapEdge

public PositionType getShapEdge()

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.

Retrieves the snap edge of the widget.

getType

public static Type getType()

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.

Retrieve the runtime type used by the GLib library.

removeListener

public void removeListener(HandleBoxListener listener)

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.

Removes a listener

See Also: addListener

setHandlePosition

public void setHandlePosition(PositionType position)

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.

Sets the side of the handle box where the handle is drawn.

Parameters: position Defines the position of the handle.

setShadowType

public void setShadowType(ShadowType 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.

Set the shadow type to be drawn around the border of the handle box.

Parameters: type The ShadowType to use for the shadow.

setShapEdge

public void setShapEdge(PositionType edge)

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.

Sets the snap edge of the handle box. The snap edge is the edge of the detached child that must be aligned with the corresponding edge of the ghost left behind when the child was detached to reattach the torn-off window.

Parameters: edge The side for the snap edge.