public class MessagesWindow
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.datatransfer.ClipboardOwner
Constructor and Description |
---|
MessagesWindow() |
Modifier and Type | Method and Description |
---|---|
static void |
appendString(java.lang.String str)
Method to add text to the Messages Window.
|
void |
clear(boolean all)
Method to erase everything in the Messages Window.
|
static void |
clearAll() |
void |
copyText(boolean all,
boolean cut)
Method to copy text from the Messages Window.
|
java.awt.Container |
getContent() |
static MessagesWindow |
getFocusOwner()
If a MessagesWindow has the focus, return it; else return null.
|
java.awt.Rectangle |
getMessagesLocation()
Method to return the bounds of the Messages Window.
|
static java.lang.Iterable<MessagesWindow> |
getMessagesWindows() |
static int |
getMinMessagesCharWidth()
Method to return the number of columns in the narrowest Messages Window.
|
static void |
init() |
boolean |
isFocusOwner()
Method to tell whether the Messages Window is the current window.
|
void |
lostOwnership(java.awt.datatransfer.Clipboard parClipboard,
java.awt.datatransfer.Transferable parTransferable) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
pasteText()
Method to paste text from the clipboard to the Messages Window.
|
void |
requestFocus()
Method to request focus on the Messages Window.
|
void |
saveAll()
Method to copy text from the Messages Window.
|
void |
selectAll()
Method to select all text in the Messages Window.
|
static void |
selectFont()
Method to interactively select the messages window font.
|
static void |
tileWithEdit()
Method to adjust the Messages Window so that it attaches to the current Edit Window.
|
public static void init()
public static java.lang.Iterable<MessagesWindow> getMessagesWindows()
public java.awt.Container getContent()
public boolean isFocusOwner()
public static MessagesWindow getFocusOwner()
public void requestFocus()
public java.awt.Rectangle getMessagesLocation()
public static int getMinMessagesCharWidth()
public static void tileWithEdit()
public static void appendString(java.lang.String str)
str
- the text to add.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void lostOwnership(java.awt.datatransfer.Clipboard parClipboard, java.awt.datatransfer.Transferable parTransferable)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
public void pasteText()
public void copyText(boolean all, boolean cut)
all
- true to copy ALL text in the Messages Window; false to copy only the selected text.cut
- true to cut instead of copy (delete after copying).public void saveAll()
public void clear(boolean all)
all
- true to delete all text; false to delete only selected text.public static void clearAll()
public void selectAll()
public static void selectFont()