All Packages This Package Class Hierarchy Class Search Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----jkp.awt.BorderedPanel
|
+----jkp.awt.ActionEventPanel
| Summary |
public class ActionEventPanel
extends jkp.awt.BorderedPanel
{
// Fields 2
private String actioncommand;
private transient ActionListener actionlistener;
// Constructors 2
public ActionEventPanel();
public ActionEventPanel(LayoutManager);
// Methods 7
public synchronized void addActionListener(ActionListener);
public void generateActionEvent(String);
public String getActionCommand();
protected void processActionEvent(ActionEvent);
protected void processEvent(AWTEvent);
public synchronized void removeActionListener(ActionListener);
public void setActionCommand(String);
}
A panel that can generate an ActionEvent when desired.
| Cross Reference |
| Fields |
· actioncommand | Summary | Top |
private String actioncommand
Command to send to listeners when ActionEvent is triggered.
· actionlistener | Summary | Top |
private transient ActionListener actionlistener
Who's listening to this panel
| Constructors |
· ActionEventPanel | Summary | Top |
public ActionEventPanel()
Constructs an ActionEventPanel.
· ActionEventPanel | Summary | Top |
public ActionEventPanel(LayoutManager layout)
Constructs an ActionEventPanel with the specified layout manager.
Parameter Description layout the layout manager to use for this panel.
| Methods |
· addActionListener | Summary | Top |
public synchronized void addActionListener(ActionListener al)
Adds the specified action listener to receive action events from this component.
Parameter Description al the action listener
· generateActionEvent | Summary | Top |
public void generateActionEvent(String eventcommand)
This panel has changed. Notify listeners.
Parameter Description eventcommand the action command associated with this event
· getActionCommand | Summary | Top |
public String getActionCommand()
Gets ActionEvent command.
- Returns:
- the action command
· processActionEvent | Summary | Top |
protected void processActionEvent(ActionEvent ae)
Processes action events occurring on this component by dispatching them to any registered ActionListener objects.
Parameter Description ae the action event
· processEvent | Summary | Top |
protected void processEvent(AWTEvent e)
Processes events occurring on this component. By default this method calls the appropriate process
Event method for the given class of event.
Parameter Description e the event
- Overrides:
- processEvent in class Container
· removeActionListener | Summary | Top |
public synchronized void removeActionListener(ActionListener al)
Removes the specified action listener so that it no longer receives action events from this component.
Parameter Description al the action listener
· setActionCommand | Summary | Top |
public void setActionCommand(String command)
Sets ActionEvent command.
Parameter Description command the command to pass to ActionListeners
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7