public class RCONSOLE_TERMINAL extends PJUserWindow implements TerminalWindowListener, MouseListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
APPEND, CONTINUE_PASTE, COPY, CUT, PASTE, REMOVE_MARK, SELECT_ALL, SET_MARK, UNDO
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
RCONSOLE_TERMINAL(CUserWindow uw,
byte[] data)
Creates the user window that displays the terminal window.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPrintWindow(KeyEvent e)
Checks for Print Window keystroke.
|
void |
create(Transaction trans)
Create/initiate progress bar from transaction.
|
void |
dispose()
Called when disposed of.
|
Color |
getBackground(Color background,
int x,
int y)
Gets the background color when drawing a character.
|
boolean |
isFocusTraversable()
Checks if this component is focus traversable.
|
boolean |
isManagingFocus()
Tell's anybody interested that the component is managing it's own internal focus.
|
void |
mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on a component.
|
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component (does nothing).
|
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component (does nothing).
|
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component (does nothing).
|
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component (does nothing).
|
boolean |
onActivateMenu(boolean isPopup)
Handles display of the pop-up window or activation
of the menu bar.
|
boolean |
onActivateMenu(char ch)
Handles activation of the menu bar and selection
of the mnemonic character.
|
void |
onClipboard(int operation,
Rectangle r)
Performs a clipboard function.
|
boolean |
onPopup(MouseEvent e)
Handles display of the pop-up window.
|
void |
sendCharacter(char ch)
Sends a character string to the terminal.
|
void |
sendHostKey(int key)
Sends a key to the terminal.
|
void |
sendKey(KeyEvent e,
boolean isRightCtrlDown)
Sends a key to the terminal.
|
boolean |
setCursor(int x,
int y)
Sets the cursor position to X/Y.
|
boolean |
setFocus(KeyEvent event)
Sets the focus to the control in question.
|
void |
update(Transaction trans)
Update progress bar from transaction (one byte 0-100, 255=not set).
|
getCodeBase, getImage, getImage, getImage, getPPanel, getUserWindow, issueUpdate, play, play, updateStates
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public RCONSOLE_TERMINAL(CUserWindow uw, byte[] data)
public void dispose()
dispose
in class PJUserWindow
public boolean setFocus(KeyEvent event)
setFocus
in class PJUserWindow
event
- The key event causing the focus change.
This parameter may be null if no special
key event caused the focus change.JComponent.grabFocus
.public boolean isFocusTraversable()
isFocusTraversable
in class PJUserWindow
true
.public boolean isManagingFocus()
isManagingFocus
in class JComponent
true
.public void create(Transaction trans)
create
in class PJUserWindow
public void update(Transaction trans)
update
in class PJUserWindow
public void sendKey(KeyEvent e, boolean isRightCtrlDown)
sendKey
in interface TerminalWindowListener
public void sendHostKey(int key)
sendHostKey
in interface TerminalWindowListener
key
- The host key to send, typically for hot-spots.public void sendCharacter(char ch)
sendCharacter
in interface TerminalWindowListener
public boolean setCursor(int x, int y)
setCursor
in interface TerminalWindowListener
public void mouseClicked(MouseEvent e)
This will display a pop-up menu if mouse button 2 (the right one)
is pressed inside the control. Actually, it's not only the button 2 or the
right one, rather the AWT implementation
(see MouseEvent.isPopupTrigger()
).
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void onClipboard(int operation, Rectangle r)
See the se.entra.phantom.common.TerminalWindow class for the clipboard operations.
onClipboard
in interface TerminalWindowListener
public boolean onPopup(MouseEvent e)
onPopup
in interface TerminalWindowListener
public boolean checkPrintWindow(KeyEvent e)
checkPrintWindow
in interface TerminalWindowListener
public boolean onActivateMenu(boolean isPopup)
onActivateMenu
in interface TerminalWindowListener
public boolean onActivateMenu(char ch)
onActivateMenu
in interface TerminalWindowListener
public Color getBackground(Color background, int x, int y)
getBackground
in interface TerminalWindowListener
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.