org.gnu.gtk.event

Class NotebookEvent

public class NotebookEvent extends GtkEvent

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. Signal handling an connection has been completely re-implemented in java-gnome 4.0, so you will need to refactor any code attempting to use this class.

An event represeting action by a Notebook widget.

See Also: NotebookListener

Nested Class Summary
static classNotebookEvent.Type
Constructor Summary
NotebookEvent(Object source, NotebookEvent.Type type)
Creates a new Notebook Event.
NotebookEvent(Object source, NotebookEvent.Type type, int pageNumber)
Creates a new Notebook Event.
Method Summary
intgetPageNumber()
Return the page number on which this event occurred.
booleanisOfType(NotebookEvent.Type aType)

Constructor Detail

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 Detail

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.