OkCancelBeanpublic class OkCancelBean extends BeanPanel implements borland.jbcl.util.BlackBox
Fields Summary |
---|
public static final String | OK_EVENT | public static final String | CANCEL_EVENT | public static final String | HELP_EVENT | private BorderLayout | borderLayout1 | private Panel | panel1 | private FlowLayout | flowLayout1 | private Button | ok | private Button | cancel | private Button | help |
Constructors Summary |
---|
public OkCancelBean()
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
|
Methods Summary |
---|
void | cancel_actionPerformed(java.awt.event.ActionEvent e)
processActionEvent(new ActionEvent(this,ActionEvent.ACTION_PERFORMED,CANCEL_EVENT));
| void | help_actionPerformed(java.awt.event.ActionEvent e)
processActionEvent(new ActionEvent(this,ActionEvent.ACTION_PERFORMED,HELP_EVENT));
| private void | jbInit()
ok.setLabel(" OK ");
ok.addActionListener(new OkCancelBean_ok_actionAdapter(this));
cancel.setLabel("Cancel");
cancel.addActionListener(new OkCancelBean_cancel_actionAdapter(this));
help.setLabel(" Help ");
help.addActionListener(new OkCancelBean_help_actionAdapter(this));
panel1.setLayout(flowLayout1);
this.setLayout(borderLayout1);
this.add(panel1, BorderLayout.CENTER);
panel1.add(ok, null);
panel1.add(cancel, null);
panel1.add(help, null);
| void | ok_actionPerformed(java.awt.event.ActionEvent e)
//Args: event source,event ID, event command
processActionEvent(new ActionEvent(this,ActionEvent.ACTION_PERFORMED,OK_EVENT));
|
|