org.gnu.gnomevte.event

Class CommitEvent

public class CommitEvent extends GtkEvent

An event representing a commit action by a {@link org.gnu.gnomevte.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.