org.gnu.gnomevte
Class Terminal

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.GtkObject
              extended by org.gnu.gtk.Widget
                  extended by org.gnu.gnomevte.Terminal

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 have an equivalent in java-gnome 4.0; have a look for org.gnome.vte.Terminal.

public class Terminal
extends org.gnu.gtk.Widget

VteTerminal widget bindings implementation.


Field Summary
 
Fields inherited from class org.gnu.glib.GObject
eventsInitialized
 
Constructor Summary
  Terminal()
          Deprecated. Creates a new Termina widget.
protected Terminal(org.gnu.glib.Handle handle)
          Deprecated. Used in the bindings development.
  Terminal(java.lang.String command, java.lang.String[] args, java.lang.String workingDir)
          Deprecated. Creates a new Terminal widget and executes command inside it.
 
Method Summary
 void addListener(CharacterSizeChangedListener listener)
          Deprecated. Registers a TerminalCharacterSizeChangedListener to handle terminal character size change events.
 void addListener(CommitListener listener)
          Deprecated. Registers a TerminalCommitListener to handle terminal commit events.
 void addListener(MoveWindowListener listener)
          Deprecated. Registers a TerminalMoveWindowListener to handle terminal move window events.
 void addListener(ResizeWindowListener listener)
          Deprecated. Registers a TerminalResizeWindowListener to handle terminal resize window events.
 void addListener(TerminalListener listener)
          Deprecated. Registers a TerminalListener to handle generic terminal events.
 void addListener(TextScrolledListener listener)
          Deprecated. Registers a TerminalTextScrolledListener to handle terminal text scroll events.
 void copyClipboard()
          Deprecated. Copy currently selected text to the clipboard.
 void copyPrimary()
          Deprecated.  
 void feed(java.lang.String data)
          Deprecated. Send data to the terminal to display to handle in some way.
 void feedChild(java.lang.String data)
          Deprecated. Send data to the terminal's forked command to handle in some way.
protected  void fireTerminalCharacterSizeChangedEvent(CharacterSizeChangedEvent event)
          Deprecated. This method invokes all the TerminalCharacterSizeChangedListener that are registered with this instance of a Terminal.
protected  void fireTerminalCommitEvent(CommitEvent event)
          Deprecated. This method invokes all the TerminalCommitListeners that are registered with this instance of a Terminal.
protected  void fireTerminalEvent(TerminalEvent event)
          Deprecated. This method invokes all the TerminalListeners that are registered with this instance of a Terminal.
protected  void fireTerminalMoveWindowEvent(MoveWindowEvent event)
          Deprecated. This method invokes all the TerminalMoveWindowListener that are registered with this instance of a Terminal.
protected  void fireTerminalResizeWindowEvent(ResizeWindowEvent event)
          Deprecated. This method invokes all the TerminalResizeWindowListeners that are registered with this instance of a Terminal.
protected  void fireTerminalTextScrolledEvent(TextScrolledEvent event)
          Deprecated. This method invokes all the TerminalTextScrolledListeners that are registered with this instance of a Terminal.
 int forkCommand(java.lang.String command, java.lang.String[] args, java.lang.String directory, boolean lastlog, boolean utmp, boolean wtmp)
          Deprecated. Forks the command and show it inside the widget.
 org.gnu.gtk.Adjustment getAdjustment()
          Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
 boolean getAllowBold()
          Deprecated. Checks whether or not the terminal will attempt to draw bold text by repainting text with a one-pixel offset.
 java.lang.String getEmulation()
          Deprecated. Queries the terminal for its current emulation, as last set by a call to setEmulation().
 java.lang.String getEncoding()
          Deprecated. Determines the name of the encoding in which the terminal expects data to be encoded.
 org.gnu.pango.FontDescription getFont()
          Deprecated. Queries the terminal for information about the fonts which will be used to draw text in the terminal.
 java.lang.String getStatusLine()
          Deprecated. Some terminal emulations specify a status line which is separate from the main display area, and define a means for applications to move the cursor to the status line and back.
 boolean hasSelection()
          Deprecated. Checks if the terminal currently contains selected text.
 boolean isBellAudible()
          Deprecated. Get the terminal's audible bell state.
 boolean isBellVisible()
          Deprecated. Get the terminal's audible bell state.
 void pasteClipboard()
          Deprecated. Paste clipboard text from the clipboard to the terminal.
 void pastePrimary()
          Deprecated.  
 void removeListener(CharacterSizeChangedListener listener)
          Deprecated. Removes the given TerminalCharacterSizeChangedListener.
 void removeListener(CommitListener listener)
          Deprecated. Removes the given TerminalCommitListener.
 void removeListener(MoveWindowListener listener)
          Deprecated. Removes the given TerminalMoveWindowListener.
 void removeListener(ResizeWindowListener listener)
          Deprecated. Removes the given TerminalResizeWindowListener.
 void removeListener(TerminalListener listener)
          Deprecated. Removes the given TerminalListener.
 void removeListener(TextScrolledListener listener)
          Deprecated. Removes the given TerminalTextScrolledListener.
 void reset(boolean full, boolean clearHistory)
          Deprecated. Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.
 void setAllowBold(boolean allowBold)
          Deprecated. Controls whether or not the terminal will attempt to draw bold text by repainting text with a different offset.
 void setAudibleBell(boolean audible)
          Deprecated. Set the terminal's audible bell.
 void setBackgroudColor(org.gnu.gdk.Color color)
          Deprecated.  
 void setBackgroudImage(java.lang.String file)
          Deprecated.  
 void setBackgroundColor(org.gnu.gdk.Color color)
          Deprecated. Sets the background color for text which does not have a specific background color assigned.
 void setBackgroundImage(org.gnu.gdk.Pixbuf image)
          Deprecated. Sets the background image for the widget.
 void setBackgroundImage(java.lang.String file)
          Deprecated. Set the file as the background image of the terminal.
 void setBackgroundSaturation(int saturation)
          Deprecated. Sets the terminal's background saturation level.
 void setBackgroundTransparent(boolean transparent)
          Deprecated. Sets the terminal backgroud transparent or not.
 void setColorBold(org.gnu.gdk.Color color)
          Deprecated. Sets the color used to draw bold text in the default foreground color.
 void setColorDim(org.gnu.gdk.Color color)
          Deprecated. Sets the color used to draw dim text in the default foreground color.
 void setColors(org.gnu.gdk.Color fgcolor, org.gnu.gdk.Color bgcolor, org.gnu.gdk.Color palett, int size)
          Deprecated. The terminal widget uses a 28-color model comprised of the default foreground and background colors, the bold foreground color, the dim foreground color, an eight color palette, and bold versions of the eight color palette, and a dim version of the the eight color palette.
 void setCursorBlinks(boolean blinks)
          Deprecated. Set whether or not the cursor blinks.
 void setDefaultColors()
          Deprecated. Restores the default colors.
 void setEmulation(java.lang.String emulation)
          Deprecated. Sets what type of terminal the widget attempts to emulate by scanning for control sequences defined in the system's termcap file.
 void setEncoding(java.lang.String codeset)
          Deprecated. Changes the encoding the terminal will expect data from the child to be encoded with.
 void setFont(org.gnu.pango.FontDescription font)
          Deprecated. Sets the font used for rendering all text displayed by the terminal.
 void setForegroundColor(org.gnu.gdk.Color color)
          Deprecated. Sets the foreground color used to draw normal text
 void setPty(int pty_master)
          Deprecated. Associate a pty file descriptor with the terminal
 void setScrollbackLines(int lines)
          Deprecated. Set the number of scrollback lines.
 void setScrollOnKeystroke(boolean scrollOnKeystroke)
          Deprecated. If true, scrolls the widget down when pressing following the keyboard press.
 void setScrollOnOutput(boolean scrollOnOutput)
          Deprecated. If true, scrolls the widget down following the output.
 void setSize(int columns, int rows)
          Deprecated. Set the terminal's size.
 void setVisibleBell(boolean visible)
          Deprecated. Set the terminal's visible bell state.
static Terminal terminalAndShell()
          Deprecated. Creates an new Terminal widget and launches a shell inside it.
 
Methods inherited from class org.gnu.gtk.Widget
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, findListener, finish, fireBooleanLifeCycleEvent, fireConfigureEvent, fireDeleteDragDataEvent, fireDragMotionEvent, fireDropDragEvent, fireEndDragEvent, fireExposeEvent, fireFocusEvent, fireKeyEvent, fireLeaveDragDestinationEvent, fireLifeCycleEvent, fireMouseEvent, fireMouseMotionEvent, fireReceiveDragDataEvent, fireRequestDragDataEvent, fireStartDragEvent, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getEventListenerClass, getEventType, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getType, getWidget, getWindow, grabDefault, grabFocus, gtk_drag_dest_set, gtk_drag_dest_unset, gtk_drag_finish, gtk_drag_get_data, gtk_drag_highlight, gtk_drag_source_set_icon_pixbuf, gtk_drag_source_set_icon_stock, gtk_drag_source_set_icon, gtk_drag_source_set, gtk_drag_source_unset, gtk_drag_unhighlight, gtk_widget_activate, gtk_widget_add_accelerator, gtk_widget_add_events, gtk_widget_add_mnemonic_label, gtk_widget_can_activate_accel, gtk_widget_child_focus, gtk_widget_child_notify, gtk_widget_class_path, gtk_widget_create_pango_context, gtk_widget_create_pango_layout, gtk_widget_destroy, gtk_widget_destroyed, gtk_widget_ensure_style, gtk_widget_event, gtk_widget_freeze_child_notify, gtk_widget_get_accessible, gtk_widget_get_allocation, gtk_widget_get_ancestor, gtk_widget_get_child_requisition, gtk_widget_get_child_visible, gtk_widget_get_colormap, gtk_widget_get_composite_name, gtk_widget_get_default_colormap, gtk_widget_get_default_direction, gtk_widget_get_default_style, gtk_widget_get_default_visual, gtk_widget_get_direction, gtk_widget_get_display, gtk_widget_get_events, gtk_widget_get_extension_events, gtk_widget_get_modifier_style, gtk_widget_get_name, gtk_widget_get_pango_context, gtk_widget_get_parent_window, gtk_widget_get_parent, gtk_widget_get_pointer, gtk_widget_get_root_window, gtk_widget_get_screen, gtk_widget_get_sensitive, gtk_widget_get_settings, gtk_widget_get_size_request, gtk_widget_get_style, gtk_widget_get_toplevel, gtk_widget_get_type, gtk_widget_get_visual, gtk_widget_get_window, gtk_widget_grab_default, gtk_widget_grab_focus, gtk_widget_has_screen, gtk_widget_hide_all, gtk_widget_hide_on_delete, gtk_widget_hide, gtk_widget_intersect, gtk_widget_is_ancestor, gtk_widget_is_focus, gtk_widget_list_accel_closures, gtk_widget_list_mnemonic_labels, gtk_widget_map, gtk_widget_mnemonic_activate, gtk_widget_modify_base, gtk_widget_modify_bg, gtk_widget_modify_fg, gtk_widget_modify_font, gtk_widget_modify_style, gtk_widget_modify_text, gtk_widget_path, gtk_widget_pop_colormap, gtk_widget_pop_composite_child, gtk_widget_push_colormap, gtk_widget_push_composite_child, gtk_widget_queue_draw_area, gtk_widget_queue_draw, gtk_widget_queue_resize, gtk_widget_realize, gtk_widget_region_intersect, gtk_widget_remove_accelerator, gtk_widget_remove_mnemonic_label, gtk_widget_render_icon, gtk_widget_reparent, gtk_widget_reset_rc_styles, gtk_widget_send_expose, gtk_widget_set_accel_path, gtk_widget_set_app_paintable, gtk_widget_set_child_visible, gtk_widget_set_colormap, gtk_widget_set_composite_name, gtk_widget_set_default_colormap, gtk_widget_set_default_direction, gtk_widget_set_direction, gtk_widget_set_double_buffered, gtk_widget_set_events, gtk_widget_set_extension_events, gtk_widget_set_name, gtk_widget_set_parent_window, gtk_widget_set_parent, gtk_widget_set_redraw_on_allocate, gtk_widget_set_scroll_adjustments, gtk_widget_set_sensitive, gtk_widget_set_size_request, gtk_widget_set_state, gtk_widget_set_style, gtk_widget_shape_combine_mask, gtk_widget_show_all, gtk_widget_show_now, gtk_widget_show, gtk_widget_size_allocate, gtk_widget_size_request, gtk_widget_style_get_property, gtk_widget_thaw_child_notify, gtk_widget_translate_coordinates, gtk_widget_unmap, gtk_widget_unparent, gtk_widget_unrealize, handleButtonPressed, handleButtonReleased, handleConfigure, handleDelete, handleDestroy, handleDragDataDeleted, handleDragDataReceived, handleDragDataRequested, handleDragDestinationLeft, handleDragDropped, handleDragEnded, handleDragMotionOccurred, handleDragStarted, handleExpose, handleFocusIn, handleFocusOut, handleHide, handleKeyPressed, handleKeyReleased, handleMap, handleMouseEnter, handleMouseLeave, handleMouseMotion, handleNoExpose, handleRealize, handleScroll, handleShow, handleUnmap, handleUnrealize, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight
 
Methods inherited from class org.gnu.gtk.GtkObject
checkState, destroy, getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, finalize, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode, setHandle
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Terminal

protected Terminal(org.gnu.glib.Handle handle)
Deprecated. 
Used in the bindings development. You should not use this constructor Use Terminal () or Terminal (command, args, workingDir) instead.


Terminal

public Terminal()
Deprecated. 
Creates a new Termina widget. This constructor launchs a shell inside de widget.


Terminal

public Terminal(java.lang.String command,
                java.lang.String[] args,
                java.lang.String workingDir)
Deprecated. 
Creates a new Terminal widget and executes command inside it.

Parameters:
command - Command launched inside the terminal.
args - arguments passed to the command.
workingDir - working directory passed to the process.
Method Detail

terminalAndShell

public static Terminal terminalAndShell()
Deprecated. 
Creates an new Terminal widget and launches a shell inside it.

Returns:
The widget with a shell in it.

forkCommand

public int forkCommand(java.lang.String command,
                       java.lang.String[] args,
                       java.lang.String directory,
                       boolean lastlog,
                       boolean utmp,
                       boolean wtmp)
Deprecated. 
Forks the command and show it inside the widget.

Parameters:
command - program to launch in a new process.
args - The argument list available to the executed program.
directory - working directory available to the executed program. FIXME: investigate the meaning of laslog, utmp, wtmp.
Returns:
Integer representing the process id.

setPty

public void setPty(int pty_master)
Deprecated. 
Associate a pty file descriptor with the terminal

Parameters:
pty_master - pty fd

feed

public void feed(java.lang.String data)
Deprecated. 
Send data to the terminal to display to handle in some way. If data is null, it will be ignored.

Parameters:
data - Sent to the terminal.

feedChild

public void feedChild(java.lang.String data)
Deprecated. 
Send data to the terminal's forked command to handle in some way. If data is null, it will be ignored.

Parameters:
data - Sent to the terminal.

copyClipboard

public void copyClipboard()
Deprecated. 
Copy currently selected text to the clipboard.


pasteClipboard

public void pasteClipboard()
Deprecated. 
Paste clipboard text from the clipboard to the terminal.


copyPrimary

public void copyPrimary()
Deprecated. 

pastePrimary

public void pastePrimary()
Deprecated. 

setSize

public void setSize(int columns,
                    int rows)
Deprecated. 
Set the terminal's size.

Parameters:
columns - The terminal's width.
rows - The terminal's height.

setAudibleBell

public void setAudibleBell(boolean audible)
Deprecated. 
Set the terminal's audible bell.

Parameters:
audible - If true, the terminal emits a Bip to attract users attention.

isBellAudible

public boolean isBellAudible()
Deprecated. 
Get the terminal's audible bell state.

Returns:
The audible bell state.

setVisibleBell

public void setVisibleBell(boolean visible)
Deprecated. 
Set the terminal's visible bell state.

Parameters:
visible - If true, the terminal blinks to attract users attention.

isBellVisible

public boolean isBellVisible()
Deprecated. 
Get the terminal's audible bell state.

Returns:
The visual bell state

setScrollOnOutput

public void setScrollOnOutput(boolean scrollOnOutput)
Deprecated. 
If true, scrolls the widget down following the output.

Parameters:
scrollOnOutput - If true, scroll.

setScrollOnKeystroke

public void setScrollOnKeystroke(boolean scrollOnKeystroke)
Deprecated. 
If true, scrolls the widget down when pressing following the keyboard press.

Parameters:
scrollOnKeystroke - If true, scroll.

setDefaultColors

public void setDefaultColors()
Deprecated. 
Restores the default colors.


setBackgroundImage

public void setBackgroundImage(java.lang.String file)
                        throws java.io.FileNotFoundException
Deprecated. 
Set the file as the background image of the terminal.

Parameters:
file - File to set as background.
Throws:
java.io.FileNotFoundException - if the image doesn't exist.

setBackgroudImage

public void setBackgroudImage(java.lang.String file)
                       throws java.io.FileNotFoundException
Deprecated. 
Throws:
java.io.FileNotFoundException

setBackgroundImage

public void setBackgroundImage(org.gnu.gdk.Pixbuf image)
Deprecated. 
Sets the background image for the widget. Text which would otherwise be drawn using the default background color will instead be drawn over the specified image. If necessary, the image will be tiled to cover the widget's entire visible area.

Parameters:
image -

setCursorBlinks

public void setCursorBlinks(boolean blinks)
Deprecated. 
Set whether or not the cursor blinks.

Parameters:
blinks - If true, blinks.

setScrollbackLines

public void setScrollbackLines(int lines)
Deprecated. 
Set the number of scrollback lines.

Parameters:
lines - The number of lines to save in the buffer.

setBackgroundSaturation

public void setBackgroundSaturation(int saturation)
Deprecated. 
Sets the terminal's background saturation level.

Parameters:
saturation - The saturation level.

setBackgroundTransparent

public void setBackgroundTransparent(boolean transparent)
Deprecated. 
Sets the terminal backgroud transparent or not.

Parameters:
transparent - Transparent if true.

setBackgroundColor

public void setBackgroundColor(org.gnu.gdk.Color color)
Deprecated. 
Sets the background color for text which does not have a specific background color assigned. Only has effect when no background image is set and when the terminal is not transparent.

Parameters:
color -

setBackgroudColor

public void setBackgroudColor(org.gnu.gdk.Color color)
Deprecated. 

setForegroundColor

public void setForegroundColor(org.gnu.gdk.Color color)
Deprecated. 
Sets the foreground color used to draw normal text

Parameters:
color -

setColors

public void setColors(org.gnu.gdk.Color fgcolor,
                      org.gnu.gdk.Color bgcolor,
                      org.gnu.gdk.Color palett,
                      int size)
Deprecated. 
The terminal widget uses a 28-color model comprised of the default foreground and background colors, the bold foreground color, the dim foreground color, an eight color palette, and bold versions of the eight color palette, and a dim version of the the eight color palette. size must be either 0, 8, 16, or 24. If foreground is null and size is greater than 0, the new foreground color is taken from palette[7]. If background is null and size is greater than 0, the new background color is taken from palette[0]. If size is 8 or 16, the third (dim) and possibly second (bold) 8-color palette is extrapolated from the new background color and the items in palette.

Parameters:
fgcolor -
bgcolor -
palett -
size -

setColorBold

public void setColorBold(org.gnu.gdk.Color color)
Deprecated. 
Sets the color used to draw bold text in the default foreground color.

Parameters:
color -

setColorDim

public void setColorDim(org.gnu.gdk.Color color)
Deprecated. 
Sets the color used to draw dim text in the default foreground color.

Parameters:
color -

setFont

public void setFont(org.gnu.pango.FontDescription font)
Deprecated. 
Sets the font used for rendering all text displayed by the terminal. The terminal will immediately attempt to load the desired font, retrieve its metrics, and attempts to resize itself to keep the same number of rows and columns.

Overrides:
setFont in class org.gnu.gtk.Widget

getFont

public org.gnu.pango.FontDescription getFont()
Deprecated. 
Queries the terminal for information about the fonts which will be used to draw text in the terminal.

Returns:
FontDescription

setAllowBold

public void setAllowBold(boolean allowBold)
Deprecated. 
Controls whether or not the terminal will attempt to draw bold text by repainting text with a different offset.

Parameters:
allowBold -

getAllowBold

public boolean getAllowBold()
Deprecated. 
Checks whether or not the terminal will attempt to draw bold text by repainting text with a one-pixel offset.

Returns:
boolean

reset

public void reset(boolean full,
                  boolean clearHistory)
Deprecated. 
Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.

Parameters:
full - true to reset tabstops
clearHistory - true to empty the terminal's scrollback buffer

setEmulation

public void setEmulation(java.lang.String emulation)
Deprecated. 
Sets what type of terminal the widget attempts to emulate by scanning for control sequences defined in the system's termcap file. Unless you are interested in this feature, always use "xterm".

Parameters:
emulation -

getEmulation

public java.lang.String getEmulation()
Deprecated. 
Queries the terminal for its current emulation, as last set by a call to setEmulation().

Returns:
String

setEncoding

public void setEncoding(java.lang.String codeset)
Deprecated. 
Changes the encoding the terminal will expect data from the child to be encoded with. For certain terminal types, applications executing in the terminal can change the encoding. The default encoding is defined by the application's locale settings.

Parameters:
codeset -

getEncoding

public java.lang.String getEncoding()
Deprecated. 
Determines the name of the encoding in which the terminal expects data to be encoded.

Returns:
String

getStatusLine

public java.lang.String getStatusLine()
Deprecated. 
Some terminal emulations specify a status line which is separate from the main display area, and define a means for applications to move the cursor to the status line and back.

Returns:
the current contents of the terminal's status line. For terminals like "xterm", this will usually be the empty string.

hasSelection

public boolean hasSelection()
Deprecated. 
Checks if the terminal currently contains selected text. Note that this is different from determining if the terminal is the owner of any GtkClipboard items.

Returns:
true if the terminal has a selection.

getAdjustment

public org.gnu.gtk.Adjustment getAdjustment()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Get the Adjustment which is the "model" object for Terminal.

Returns:
The adjustment model

fireTerminalEvent

protected void fireTerminalEvent(TerminalEvent event)
Deprecated. 
This method invokes all the TerminalListeners that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

fireTerminalCommitEvent

protected void fireTerminalCommitEvent(CommitEvent event)
Deprecated. 
This method invokes all the TerminalCommitListeners that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

fireTerminalCharacterSizeChangedEvent

protected void fireTerminalCharacterSizeChangedEvent(CharacterSizeChangedEvent event)
Deprecated. 
This method invokes all the TerminalCharacterSizeChangedListener that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

fireTerminalMoveWindowEvent

protected void fireTerminalMoveWindowEvent(MoveWindowEvent event)
Deprecated. 
This method invokes all the TerminalMoveWindowListener that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

fireTerminalResizeWindowEvent

protected void fireTerminalResizeWindowEvent(ResizeWindowEvent event)
Deprecated. 
This method invokes all the TerminalResizeWindowListeners that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

fireTerminalTextScrolledEvent

protected void fireTerminalTextScrolledEvent(TextScrolledEvent event)
Deprecated. 
This method invokes all the TerminalTextScrolledListeners that are registered with this instance of a Terminal.

Parameters:
event - the event to fire.

addListener

public void addListener(TerminalListener listener)
Deprecated. 
Registers a TerminalListener to handle generic terminal events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(TerminalListener listener)
Deprecated. 
Removes the given TerminalListener.

Parameters:
listener - the listener to remove.

addListener

public void addListener(CommitListener listener)
Deprecated. 
Registers a TerminalCommitListener to handle terminal commit events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(CommitListener listener)
Deprecated. 
Removes the given TerminalCommitListener.

Parameters:
listener - the listener to remove.

addListener

public void addListener(CharacterSizeChangedListener listener)
Deprecated. 
Registers a TerminalCharacterSizeChangedListener to handle terminal character size change events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(CharacterSizeChangedListener listener)
Deprecated. 
Removes the given TerminalCharacterSizeChangedListener.

Parameters:
listener - the listener to remove.

addListener

public void addListener(MoveWindowListener listener)
Deprecated. 
Registers a TerminalMoveWindowListener to handle terminal move window events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(MoveWindowListener listener)
Deprecated. 
Removes the given TerminalMoveWindowListener.

Parameters:
listener - the listener to remove.

addListener

public void addListener(ResizeWindowListener listener)
Deprecated. 
Registers a TerminalResizeWindowListener to handle terminal resize window events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(ResizeWindowListener listener)
Deprecated. 
Removes the given TerminalResizeWindowListener.

Parameters:
listener - the listener to remove.

addListener

public void addListener(TextScrolledListener listener)
Deprecated. 
Registers a TerminalTextScrolledListener to handle terminal text scroll events.

Parameters:
listener - the listener to register.

removeListener

public void removeListener(TextScrolledListener listener)
Deprecated. 
Removes the given TerminalTextScrolledListener.

Parameters:
listener - the listener to remove.