|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vxmlsurfer.InputWindow
public class InputWindow
Input Window for the HearSay Application
Field Summary | |
---|---|
static CustomField |
command
|
(package private) static java.util.List<java.lang.String> |
inputQ
|
static int |
QUEUE_SIZE
|
Constructor Summary | |
---|---|
InputWindow(Processor proc)
constructor for InputWindow. |
Method Summary | |
---|---|
static void |
addToQueue(java.lang.String text)
this method adds commands to the input queue |
void |
clearText()
clears text in the input window |
void |
closeInputWindow()
exiting from the system |
static void |
decreaseWindowSize()
Method to decrease the size of input window |
static void |
echoON(boolean status)
To turn on/off echoing option |
void |
focusGained(java.awt.event.FocusEvent e)
executed when input window gets focus |
void |
focusLost(java.awt.event.FocusEvent e)
|
void |
getFocus()
Get focus to the Input Window |
int |
getFontSize()
Returns the fontsize so that it can be used to save user profile |
void |
getInputWindow(Terminator terminator)
Creates Input Window |
static InputWindow |
getInstance(Processor processThread)
Get instance of the Input Window |
void |
getScreenResolution()
Gets the system's screen resolution |
java.awt.Dimension |
getWindowDimension()
Returns the dimensions of the window Dimensions may be used to save the user profile |
static void |
increaseWindowSize()
Method to increase the size of the input window |
static boolean |
isUserinputMode()
checks if input window has been set to accept input from field |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
executed when a key is pressed |
static void |
minimizeWindow()
Method used to minimize InputWindow |
static void |
multiLineWindow()
Method used by shortcut "Ctrl+Enter" to go to the next line |
void |
selectAllText()
selects all text in the input window |
void |
setBackColor(java.awt.Color backGround)
sets background color of input window |
void |
setCaretPosotion(int pos)
sets caret position in the input window |
void |
setColor(java.awt.Color backGround,
java.awt.Color foreGround)
sets foreground and background color of input window |
void |
setFontSize(int fontSize)
Can be used to set the font size |
void |
setForeColor(java.awt.Color foreGround)
sets foreground of input window |
void |
setPasswordMode(boolean mode)
|
void |
setText(java.lang.String text)
set text in the input window |
static void |
setUserinputMode(boolean mode)
sets mode to accept input from field |
void |
setWindowDimension(java.awt.Dimension d)
Used to set the inout window based on the saved user profile |
void |
windowCreation(Terminator terminator)
Creating the input window |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static CustomField command
public static int QUEUE_SIZE
static java.util.List<java.lang.String> inputQ
Constructor Detail |
---|
public InputWindow(Processor proc)
proc
- Method Detail |
---|
public static InputWindow getInstance(Processor processThread)
public void getFocus()
public static void addToQueue(java.lang.String text)
text
- public void closeInputWindow()
public void windowCreation(Terminator terminator)
terminator
- public static void multiLineWindow()
public static void minimizeWindow()
public static void echoON(boolean status)
status
- boolean variable indicating statuspublic void getScreenResolution()
public void setWindowDimension(java.awt.Dimension d)
d
- Dimesion of the windowpublic java.awt.Dimension getWindowDimension()
public int getFontSize()
public void setFontSize(int fontSize)
fontSize
- public void getInputWindow(Terminator terminator)
terminator
- for proper terminationpublic void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
FocusEvent
- public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void setColor(java.awt.Color backGround, java.awt.Color foreGround)
background
- colorforeground
- colorpublic void setBackColor(java.awt.Color backGround)
background
- colorpublic void setForeColor(java.awt.Color foreGround)
foreground
- colorpublic void setText(java.lang.String text)
text
- public void clearText()
public void setCaretPosotion(int pos)
position
- public void selectAllText()
public void setPasswordMode(boolean mode)
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
KeyEvent
- public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public static void increaseWindowSize()
public static void decreaseWindowSize()
public static boolean isUserinputMode()
public static void setUserinputMode(boolean mode)
mode
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |