|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gnomevte.Terminal
org.gnome.vte.Terminal
.
public class Terminal
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 |
---|
protected Terminal(org.gnu.glib.Handle handle)
Terminal ()
or Terminal (command, args, workingDir)
instead.
public Terminal()
public Terminal(java.lang.String command, java.lang.String[] args, java.lang.String workingDir)
command
inside it.
command
- Command launched inside the terminal.args
- arguments passed to the command
.workingDir
- working directory passed to the process.Method Detail |
---|
public static Terminal terminalAndShell()
public int forkCommand(java.lang.String command, java.lang.String[] args, java.lang.String directory, boolean lastlog, boolean utmp, boolean wtmp)
command
and show it inside the widget.
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.
public void setPty(int pty_master)
pty_master
- pty fdpublic void feed(java.lang.String data)
data
- Sent to the terminal.public void feedChild(java.lang.String data)
data
- Sent to the terminal.public void copyClipboard()
public void pasteClipboard()
public void copyPrimary()
public void pastePrimary()
public void setSize(int columns, int rows)
columns
- The terminal's width.rows
- The terminal's height.public void setAudibleBell(boolean audible)
audible
- If true, the terminal emits a Bip to attract users attention.public boolean isBellAudible()
public void setVisibleBell(boolean visible)
visible
- If true, the terminal blinks to attract users attention.public boolean isBellVisible()
public void setScrollOnOutput(boolean scrollOnOutput)
scrollOnOutput
- If true, scroll.public void setScrollOnKeystroke(boolean scrollOnKeystroke)
scrollOnKeystroke
- If true, scroll.public void setDefaultColors()
public void setBackgroundImage(java.lang.String file) throws java.io.FileNotFoundException
file
as the background image of the terminal.
file
- File to set as background.
java.io.FileNotFoundException
- if the image doesn't exist.public void setBackgroudImage(java.lang.String file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void setBackgroundImage(org.gnu.gdk.Pixbuf image)
image
- public void setCursorBlinks(boolean blinks)
blinks
- If true, blinks.public void setScrollbackLines(int lines)
lines
- The number of lines to save in the buffer.public void setBackgroundSaturation(int saturation)
saturation
- The saturation level.public void setBackgroundTransparent(boolean transparent)
transparent
- Transparent if true
.public void setBackgroundColor(org.gnu.gdk.Color color)
color
- public void setBackgroudColor(org.gnu.gdk.Color color)
public void setForegroundColor(org.gnu.gdk.Color color)
color
- public void setColors(org.gnu.gdk.Color fgcolor, org.gnu.gdk.Color bgcolor, org.gnu.gdk.Color palett, int size)
fgcolor
- bgcolor
- palett
- size
- public void setColorBold(org.gnu.gdk.Color color)
color
- public void setColorDim(org.gnu.gdk.Color color)
color
- public void setFont(org.gnu.pango.FontDescription font)
setFont
in class org.gnu.gtk.Widget
public org.gnu.pango.FontDescription getFont()
public void setAllowBold(boolean allowBold)
allowBold
- public boolean getAllowBold()
public void reset(boolean full, boolean clearHistory)
full
- true to reset tabstopsclearHistory
- true to empty the terminal's scrollback bufferpublic void setEmulation(java.lang.String emulation)
emulation
- public java.lang.String getEmulation()
public void setEncoding(java.lang.String codeset)
codeset
- public java.lang.String getEncoding()
public java.lang.String getStatusLine()
public boolean hasSelection()
true
if the terminal has a selection.public org.gnu.gtk.Adjustment getAdjustment()
Adjustment
which is the "model" object for Terminal.
protected void fireTerminalEvent(TerminalEvent event)
event
- the event to fire.protected void fireTerminalCommitEvent(CommitEvent event)
event
- the event to fire.protected void fireTerminalCharacterSizeChangedEvent(CharacterSizeChangedEvent event)
event
- the event to fire.protected void fireTerminalMoveWindowEvent(MoveWindowEvent event)
event
- the event to fire.protected void fireTerminalResizeWindowEvent(ResizeWindowEvent event)
event
- the event to fire.protected void fireTerminalTextScrolledEvent(TextScrolledEvent event)
event
- the event to fire.public void addListener(TerminalListener listener)
listener
- the listener to register.public void removeListener(TerminalListener listener)
listener
- the listener to remove.public void addListener(CommitListener listener)
listener
- the listener to register.public void removeListener(CommitListener listener)
listener
- the listener to remove.public void addListener(CharacterSizeChangedListener listener)
listener
- the listener to register.public void removeListener(CharacterSizeChangedListener listener)
listener
- the listener to remove.public void addListener(MoveWindowListener listener)
listener
- the listener to register.public void removeListener(MoveWindowListener listener)
listener
- the listener to remove.public void addListener(ResizeWindowListener listener)
listener
- the listener to register.public void removeListener(ResizeWindowListener listener)
listener
- the listener to remove.public void addListener(TextScrolledListener listener)
listener
- the listener to register.public void removeListener(TextScrolledListener listener)
listener
- the listener to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |