public abstract class MenuAction
extends java.lang.Object
implements java.awt.event.ActionListener
ActionListener
and
handles action events fired by Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
Constructor and Description |
---|
MenuAction(java.lang.String name)
Creates a new menu action designed by its name.
|
Modifier and Type | Method and Description |
---|---|
static JextFrame |
getJextParent(java.awt.Component comp) |
static JextFrame |
getJextParent(java.util.EventObject evt)
Returns the window which fired the event.
|
java.lang.String |
getName()
Returns the associated action name.
|
static JextTextArea |
getNSTextArea(java.awt.Component c) |
static JextTextArea |
getNSTextArea(java.util.EventObject evt)
This methods returns the selected text area in the window
which fired the event, excluding the splitted one.
|
static JextTextArea |
getTextArea(java.awt.Component c) |
static JextTextArea |
getTextArea(java.util.EventObject evt)
This methods returns the selected text area in the window
which fired the event.
|
public MenuAction(java.lang.String name)
name
- Internal action namepublic java.lang.String getName()
public static JextTextArea getTextArea(java.util.EventObject evt)
evt
- The source eventpublic static JextTextArea getNSTextArea(java.util.EventObject evt)
evt
- The source eventpublic static JextFrame getJextParent(java.util.EventObject evt)
evt
- The source eventpublic static JextTextArea getTextArea(java.awt.Component c)
public static JextTextArea getNSTextArea(java.awt.Component c)
public static JextFrame getJextParent(java.awt.Component comp)
Copyright ? 2002 Romain Guy.