TelnetEventListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.WindowListener, java.util.EventListenerpublic class DataIn extends SyncFrame implements java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.WindowListener, TelnetEventListener
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy| Modifier and Type | Field | Description |
|---|---|---|
static int |
DOWN |
The down direction
|
static int |
MYSPELL |
A variable representing the use of MYSPELL-style dictionaries
|
static int |
UP |
The up direction
|
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR| Constructor | Description |
|---|---|
DataIn() |
The constructor for DataIn, producing a new data input area.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
|
void |
append(java.lang.String text) |
Append the given string to whatever text exists in the DataIn
window.
|
void |
checkPopup(java.awt.event.MouseEvent mouse) |
Check for PopupTrigger to display command history
|
java.awt.Component |
exportText() |
We export our TextArea for use in a "combined" JamochaMUD
configuration, where both the input and output are shown in the same
frame.
|
java.awt.Color |
getBackgroundColour() |
|
int |
getCaretPosition() |
Get the location of our caret based on the number of characters
from the beginning of the text area.
|
int |
getColumns() |
Get the number of columns visible in our DataIn display
|
java.awt.Font |
getFont() |
|
java.awt.Color |
getForegroundColour() |
|
java.lang.String |
getLastWord() |
Deprecated.
|
int |
getLimit() |
|
java.lang.String |
getText() |
Get all the text currently in the DataIn window.
|
java.awt.Component |
getTextVariable() |
Return the variable representing our DataIn area.
|
void |
hideFramesQuick() |
Method to hide all the frames.
|
void |
historyBegin() |
Scroll to the first item in the history
|
void |
historyEnd() |
Scroll to the last item in the history
|
boolean |
isAntiAliasing() |
Returns whether antialiasing is active on this component
|
boolean |
isSpellCheck() |
This method returns whether spell-checking is currently active
|
void |
jmGainFocus() |
This lets our other classes bring us into focus
|
void |
jMSendText() |
Deprecated.
The SendText method in CHandler should now be used
|
void |
keyPressed(java.awt.event.KeyEvent event) |
|
void |
keyReleased(java.awt.event.KeyEvent event) |
|
void |
keyTyped(java.awt.event.KeyEvent event) |
|
void |
mouseClicked(java.awt.event.MouseEvent evt) |
|
void |
mouseEntered(java.awt.event.MouseEvent evt) |
|
void |
mouseExited(java.awt.event.MouseEvent evt) |
|
void |
mousePressed(java.awt.event.MouseEvent evt) |
|
void |
mouseReleased(java.awt.event.MouseEvent evt) |
|
void |
restoreMinimizedFrames() |
Restore frames hidden by the 'Supervisor' function
|
void |
restoreText() |
We are having our TextArea "returned" to us from the main window.
|
void |
scrollHistory(int direction) |
This "scrolls" the history shown in the input window (not the pop-up
menu) one step in the direction given.
|
void |
setAntiAliasing(boolean state) |
Enable or disable anti-aliasing
|
void |
setBackgroundColour(java.awt.Color bgColour) |
Set the background colour for the DataIn window.
|
void |
setCaretPosition(int pos) |
Set the caret's location based on the given index from the
first character in the text area.
|
void |
setColumns(int cols) |
Sets the number of columns to be visible
|
void |
setFont(java.awt.Font newFont) |
Set the font to be used for the DataIn window.
|
void |
setForegroundColour(java.awt.Color fgColour) |
Sets the foreground colour for the DataIn area.
|
void |
setFromHistory(int currentPos) |
Set the current text from the scrollback menu, the item indicated by int
pos
|
void |
setLimit(int newLim) |
This method sets the maximum number of entries that will be saved in the
command history pop-up.
|
void |
setRows(int rows) |
Set the number of rows available in our DataIn area.
|
void |
setSpellCheck(boolean state) |
Allow the auto spellcheck feature to be enabled / disabled.
|
void |
setText(java.lang.String text) |
Set the text visible in the DataIn window.
|
void |
setWindowTitle() |
Set the title of this frame on the basis of if the active MU* (the one
visible at the moment) is connected or not.
|
void |
showPopup(java.awt.Component origin,
int xPos,
int yPos) |
Display the pop-up menu
|
void |
telnetMessageReceived(TelnetEvent event) |
Currently not used.
|
void |
windowActivated(java.awt.event.WindowEvent event) |
Bring the frame into focus so the user may type
|
void |
windowClosed(java.awt.event.WindowEvent event) |
|
void |
windowClosing(java.awt.event.WindowEvent event) |
|
void |
windowDeactivated(java.awt.event.WindowEvent event) |
|
void |
windowDeiconified(java.awt.event.WindowEvent event) |
|
void |
windowIconified(java.awt.event.WindowEvent event) |
|
void |
windowOpened(java.awt.event.WindowEvent event) |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, update, validate, validateTreeaddNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, isCloseState, isLocked, isSynced, isTerminationState, paramString, processComponentEvent, processWindowEvent, setAllStates, setBounds, setBounds, setCloseState, setGroupSync, setLocation, setLocation, setLock, setSync, setSyncFrameGroup, setTerminationStateaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontpublic static final int MYSPELL
public static final int UP
public static final int DOWN
public DataIn()
public void keyPressed(java.awt.event.KeyEvent event)
keyPressed in interface java.awt.event.KeyListenerevent - public void keyReleased(java.awt.event.KeyEvent event)
keyReleased in interface java.awt.event.KeyListenerevent - public void keyTyped(java.awt.event.KeyEvent event)
keyTyped in interface java.awt.event.KeyListenerevent - public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerevent - public void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenerevt - public void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListenerevt - public void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListenerevt - public void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerevt - public void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListenerevt - public void checkPopup(java.awt.event.MouseEvent mouse)
mouse - public void showPopup(java.awt.Component origin,
int xPos,
int yPos)
origin - The Component that originally received the mouse click.xPos - The x-position of the mouse within the origin componentyPos - The y-position of the mouse within the origin componentpublic void windowActivated(java.awt.event.WindowEvent event)
windowActivated in interface java.awt.event.WindowListenerevent - public void windowClosed(java.awt.event.WindowEvent event)
windowClosed in interface java.awt.event.WindowListenerevent - public void windowClosing(java.awt.event.WindowEvent event)
windowClosing in interface java.awt.event.WindowListenerevent - public void windowDeactivated(java.awt.event.WindowEvent event)
windowDeactivated in interface java.awt.event.WindowListenerevent - public void windowDeiconified(java.awt.event.WindowEvent event)
windowDeiconified in interface java.awt.event.WindowListenerevent - public void windowIconified(java.awt.event.WindowEvent event)
windowIconified in interface java.awt.event.WindowListenerevent - public void windowOpened(java.awt.event.WindowEvent event)
windowOpened in interface java.awt.event.WindowListenerevent - public void telnetMessageReceived(TelnetEvent event)
telnetMessageReceived in interface TelnetEventListenerevent - A telnet event.public void hideFramesQuick()
public void restoreMinimizedFrames()
public void jMSendText()
public void setFromHistory(int currentPos)
currentPos - The index of the command history to use as the text
for the DataIn text area.public void setText(java.lang.String text)
text - The text to display in the DataIn window.public void setFont(java.awt.Font newFont)
setFont in class java.awt.ContainernewFont - The Font to use.public java.awt.Font getFont()
getFont in class java.awt.Componentpublic void append(java.lang.String text)
text - The text to be appended.public java.lang.String getText()
public void setCaretPosition(int pos)
pos - Location of the caretpublic int getCaretPosition()
public int getColumns()
public void setColumns(int cols)
cols - Number of columns to be visiblepublic void setForegroundColour(java.awt.Color fgColour)
fgColour - The foreground colour to use.public java.awt.Color getForegroundColour()
public void setBackgroundColour(java.awt.Color bgColour)
bgColour - The background colour.public java.awt.Color getBackgroundColour()
public void setWindowTitle()
public java.awt.Component exportText()
public void restoreText()
public java.awt.Component getTextVariable()
public void setRows(int rows)
rows - The number of rows to set for the DataIn window.public void jmGainFocus()
public java.lang.String getLastWord()
public void setAntiAliasing(boolean state)
state - true - enable anti-aliased text
false - disable anti-aliased textpublic boolean isAntiAliasing()
true - Antialiasing is enabled false -
Antialiasing is not enabledpublic void setLimit(int newLim)
newLim - The maximum number of lines to save for command history.public int getLimit()
public void historyBegin()
public void historyEnd()
public void scrollHistory(int direction)
direction - The direction to move the position pointerpublic boolean isSpellCheck()
true The spell-checker is active false
The spell-check is not activepublic void setSpellCheck(boolean state)
state - true - enable in-line spell checking
false - disable in-line spell checking