org.gnu.gnomevte.event

Class CommitEvent

public class CommitEvent 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 has been completely re-designed in java-gnome 4.0, so there will be no direct correspondant for this class. See individual inner interfaces in classes within org.gnome.vte

An event representing a commit action by a Terminal widget. This event is fired every time that data is sent to the terminal. This normally happens after pasting some text or by interacting with the keyboard.
Nested Class Summary
static classCommitEvent.Type
Type of a TerminalCommitEvent.
Constructor Summary
CommitEvent(Object source, EventType type, String committedText)
Constructor for TerminalCommitEvent.
Method Summary
StringgetCommittedText()
Get's the text that is being committed to the Terminal.
booleanisOfType(CommitEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Constructor Detail

CommitEvent

public CommitEvent(Object source, EventType type, String committedText)
Constructor for TerminalCommitEvent.

Parameters: source the source of the event. type the event type. committedText the text that is committed (sent) to the Terminal.

Method Detail

getCommittedText

public String getCommittedText()
Get's the text that is being committed to the Terminal.

Returns: the committed text.

isOfType

public boolean isOfType(CommitEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Parameters: aType the type to compare to.

Returns: true if the events are of same type.