public class ContainerwideListener extends java.lang.Object implements java.awt.event.ContainerListener, java.awt.event.KeyListener, StringConstants
ALPHA_CAP_CHARS, ALPHA_CHARS, ALPHA_LOW_CHARS, ALPHANUM_CHARS_STRING, ALPHANUMERIC_CHARS, BOOLEAN_FALSE_TEXT, BOOLEAN_TRUE_TEXT, DATE_FORMAT_AMPM_STR, DATE_FORMAT_RFC_822_STR, DATE_FORMAT24_STR, DEFAULT_JAVA_VERSION_STRING, DEFAULT_NULL_STR, DEFAULT_SEP_STR, EFLOAT_CHARS, EMPTY_CHARS, EMPTY_STRING, EMPTY_STRINGS, FLOAT_CHARS, HEX_ALPHA_CAP_CHARS, HEX_ALPHA_LOW_CHARS, HEX_CHARS, HEX_PREFIX, INTEGER_CHARS, INVALID_FILENAME_CHARS, MODIFIER_TEXT_ALT, MODIFIER_TEXT_CTRL, MODIFIER_TEXT_META, MODIFIER_TEXT_META_ALT, MODIFIER_TEXT_META_CTRL, NONE, QUOTE_STRING, SIGNED_EFLOAT_CHARS, SIGNED_FLOAT_CHARS, SIGNED_INT_CHARS, SMTP_ENCRYPTION_OPTIONS, SMTP_SERVER_AUTHENTICATION_NAME, SMTP_SERVER_AUTHENTICATION_TEXT, SPACE_STRING, SSL, SSL_KEY_STORE_PROP_KEY, SSL_KEY_STORE_TYPE_PROP_KEY, SSL_TRUST_STORE_PROP_KEY, SSL_TRUST_STORE_TYPE_PROP_KEY, STARTTLS, TLS, TOD_CHARS, UNKNOWN_STRING, US_ASCII, WHITE_SPACE_CHARS, WILDCARD_ALL_CHAR, WILDCARD_CHARS, WILDCARD_SINGLE_CHAR| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(javax.swing.KeyStroke keyStroke,
javax.swing.JMenuItem item)
Add the menu item.
|
ContainerwideListener |
addMenuItems(javax.swing.JMenuBar menuBar,
boolean namedOnly)
Add menu items.
|
void |
componentAdded(java.awt.event.ContainerEvent e) |
void |
componentRemoved(java.awt.event.ContainerEvent e) |
static ContainerwideListener |
createContainerwideListener(java.awt.Container c)
Create a container wide listener.
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
ContainerwideListener |
setDebug(boolean b)
Set the debug mode.
|
public static ContainerwideListener createContainerwideListener(java.awt.Container c)
c - the container or null if none.public ContainerwideListener addMenuItems(javax.swing.JMenuBar menuBar, boolean namedOnly)
menuBar - the menu bar.namedOnly - true to only add menu items that are named, false
otherwise.public void addMenuItem(javax.swing.KeyStroke keyStroke,
javax.swing.JMenuItem item)
keyStroke - the key stroke.item - the menu item.public void componentAdded(java.awt.event.ContainerEvent e)
componentAdded in interface java.awt.event.ContainerListenerpublic void componentRemoved(java.awt.event.ContainerEvent e)
componentRemoved in interface java.awt.event.ContainerListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic ContainerwideListener setDebug(boolean b)
b - true for debug, false otherwise.