|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.jython.DefaultMenuWrangler
public class DefaultMenuWrangler
Nested Class Summary | |
---|---|
private static class |
DefaultMenuWrangler.ClearBufferAction
Clears out the console's JTextPane , though a fresh jython
prompt is shown afterwards. |
private static class |
DefaultMenuWrangler.CopyTextAction
Basic "copy" operation. |
private static class |
DefaultMenuWrangler.CutTextAction
Allows the user to trigger a "cut" operation. |
private static class |
DefaultMenuWrangler.MenuAction
Generalized representation of a "context popup menu". |
private static class |
DefaultMenuWrangler.PasteTextAction
Allows the user to (attempt) to paste the contents of the system clipboard. |
private static class |
DefaultMenuWrangler.SelectBufferAction
Selects everything contained in the console's JTextPane . |
Field Summary | |
---|---|
private DefaultMenuWrangler.ClearBufferAction |
clearAction
Allows the user to clear out the buffer via the menu. |
private Console |
console
The Console whose menus we're "wrangling". |
private DefaultMenuWrangler.CopyTextAction |
copyAction
Handles "copy" requests that originate from the menu. |
private DefaultMenuWrangler.CutTextAction |
cutAction
Handles "cut" requests that originate from the menu. |
private static org.slf4j.Logger |
logger
|
private DefaultMenuWrangler.PasteTextAction |
pasteAction
Handles "paste" requests that originate from the menu. |
private DefaultMenuWrangler.SelectBufferAction |
selectAction
Allows the user to select the buffer's contents. |
Constructor Summary | |
---|---|
DefaultMenuWrangler(Console console)
|
Method Summary | |
---|---|
JPopupMenu |
buildMenu()
|
private JMenu |
makeLocalsMenu()
Returns the contents of Jython's local namespace as a JMenu that
allows for (limited) introspection. |
void |
stateChanged()
Don't need to handle this just yet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.slf4j.Logger logger
private final Console console
Console
whose menus we're "wrangling".
private final DefaultMenuWrangler.CutTextAction cutAction
private final DefaultMenuWrangler.CopyTextAction copyAction
private final DefaultMenuWrangler.PasteTextAction pasteAction
private final DefaultMenuWrangler.ClearBufferAction clearAction
private final DefaultMenuWrangler.SelectBufferAction selectAction
Constructor Detail |
---|
public DefaultMenuWrangler(Console console)
Method Detail |
---|
public JPopupMenu buildMenu()
buildMenu
in interface MenuWrangler
public void stateChanged()
stateChanged
in interface MenuWrangler
private JMenu makeLocalsMenu()
JMenu
that
allows for (limited) introspection.
JMenu
containing the local namespace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |