org.gnu.gtk.event

Class NotebookEvent

Implemented Interfaces:
Serializable

public class NotebookEvent
extends GtkEvent

An event represeting action by a Notebook widget.
See Also:
NotebookListener, Notebook

Nested Class Summary

static class
NotebookEvent.Type

Constructor Summary

NotebookEvent(Object source, NotebookEvent.Type type)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
NotebookEvent(Object source, NotebookEvent.Type type, int pageNumber)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Method Summary

int
getPageNumber()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
boolean
isOfType(NotebookEvent.Type aType)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Methods inherited from class org.gnu.gtk.event.GtkEvent

getSource, getType, toString

Constructor Details

NotebookEvent

public NotebookEvent(Object source,
                     NotebookEvent.Type type)

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Creates a new Notebook Event. This is used internally by java-gnome. Users only have to deal with listeners.

NotebookEvent

public NotebookEvent(Object source,
                     NotebookEvent.Type type,
                     int pageNumber)

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Creates a new Notebook Event. This is used internally by java-gnome. Users only have to deal with listeners.

Method Details

getPageNumber

public int getPageNumber()

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Return the page number on which this event occurred.

isOfType

public boolean isOfType(NotebookEvent.Type aType)

Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns:
True if the type of this event is the same as that stated.