org.gnu.gtk

Class Item

public class Item 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.Item. 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.

This widget is designed to be a base class for widgets that can be selected and deselected. The widgets that inherit from Item are CheckMenuItem, ListItem, MenuItem, and RadioMenuItem.
Method Summary
voidaddListener(ItemListener listener)
Register an object to handle item events.
voiddeselect()
Emits the "deselect" event.
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(ItemListener listener)
Removes a listener
voidselect()
Emits the "select" event.
voidtoggle()
Emits the "toggle" event.

Method Detail

addListener

public void addListener(ItemListener 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 item events.

See Also: ItemListener

deselect

public void deselect()

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.

Emits the "deselect" event.

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

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(ItemListener 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

select

public void select()

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.

Emits the "select" event.

toggle

public void toggle()

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.

Emits the "toggle" event.