. This
class also provides two new methods which can be used to
get the window which has fired the event and the associated
text area.
Field Summary |
protected java.lang.String |
name
|
Constructor Summary |
MenuAction(java.lang.String name)
Creates a new menu action designed by its name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
name
protected java.lang.String name
MenuAction
public MenuAction(java.lang.String name)
- Creates a new menu action designed by its name.
This name is internally used by Jext to handles scripts,
correctly build menu bar and tool bar.
- Parameters:
name
- Internal action name
getName
public java.lang.String getName()
- Returns the associated action name.
getTextArea
public static JextTextArea getTextArea(java.util.EventObject evt)
- This methods returns the selected text area in the window
which fired the event.
- Parameters:
evt
- The source event
getNSTextArea
public 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.
- Parameters:
evt
- The source event
getJextParent
public static JextFrame getJextParent(java.util.EventObject evt)
- Returns the window which fired the event.
- Parameters:
evt
- The source event
getTextArea
public static JextTextArea getTextArea(java.awt.Component c)
getNSTextArea
public static JextTextArea getNSTextArea(java.awt.Component c)
getJextParent
public static JextFrame getJextParent(java.awt.Component comp)
Copyright ? 2002 Romain Guy.