Last change
on this file since 345 was 16, checked in by Wouter Pasman, 6 years ago |
#2 Connected more to mainPanel. Renamed MainPanelInterface to GeniusAppInterface, as it seems a=priori restrictive to have a interface to a GUI. Refactored DomainRepositoryUI to be independent of a parent to provide a JTree.
|
File size:
490 bytes
|
Rev | Line | |
---|
[16] | 1 | package genius.gui.actions;
|
---|
| 2 |
|
---|
| 3 | import java.awt.event.ActionEvent;
|
---|
| 4 |
|
---|
| 5 | import javax.swing.AbstractAction;
|
---|
| 6 |
|
---|
| 7 | import genius.gui.GeniusAppInterface;
|
---|
| 8 | import genius.gui.session.SessionPanel;
|
---|
| 9 |
|
---|
| 10 | @SuppressWarnings("serial")
|
---|
| 11 | public class Session extends AbstractAction {
|
---|
| 12 |
|
---|
| 13 | private GeniusAppInterface main;
|
---|
| 14 |
|
---|
| 15 | public Session(GeniusAppInterface main) {
|
---|
| 16 | super("Negotiation");
|
---|
| 17 | this.main = main;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | @Override
|
---|
| 21 | public void actionPerformed(ActionEvent e) {
|
---|
| 22 | main.addTab("Session", new SessionPanel());
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.