-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Genet Abay
committed
Mar 3, 2018
1 parent
d5fcd22
commit c9f102e
Showing
16 changed files
with
713 additions
and
373 deletions.
There are no files selected for viewing
212 changes: 129 additions & 83 deletions
212
src/main/java/com/compomics/coss/Controller/MainFrameController.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/main/java/com/compomics/coss/View/SearchCommandPnl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package com.compomics.coss.View; | ||
|
||
import com.compomics.coss.Controller.MainConsolControler; | ||
import java.awt.BorderLayout; | ||
import java.awt.FlowLayout; | ||
import java.awt.event.ActionEvent; | ||
import java.awt.event.ActionListener; | ||
import javax.swing.JButton; | ||
import javax.swing.JPanel; | ||
import javax.swing.JProgressBar; | ||
import com.compomics.coss.Controller.MainFrameController; | ||
|
||
/** | ||
* | ||
* @author Genet | ||
*/ | ||
public class SearchCommandPnl extends JPanel{ | ||
|
||
MainFrameController control; | ||
public SearchCommandPnl(MainFrameController control) { | ||
this.control=control; | ||
init(); | ||
} | ||
|
||
private void init(){ | ||
|
||
|
||
btnStartSearch=new JButton("Start Searching"); | ||
JButton btnCancel=new JButton("Cancel"); | ||
prgProgress=new JProgressBar(0, 100); | ||
|
||
JPanel innerControlPanel=new JPanel(new FlowLayout()); | ||
innerControlPanel.add(btnStartSearch); | ||
innerControlPanel.add(btnCancel); | ||
|
||
//start search button listenr | ||
btnStartSearch.addActionListener(new ActionListener() { | ||
@Override | ||
public void actionPerformed(ActionEvent e) { | ||
|
||
|
||
control.startSearch(); | ||
|
||
} | ||
} | ||
); | ||
|
||
|
||
//cancel button listener | ||
btnCancel.addActionListener(new ActionListener() { | ||
public void actionPerformed(ActionEvent ev) { | ||
|
||
control.stopSearch(); | ||
|
||
} | ||
} | ||
); | ||
|
||
|
||
setLayout(new BorderLayout()); | ||
add(innerControlPanel, BorderLayout.NORTH); | ||
add(prgProgress, BorderLayout.SOUTH); | ||
|
||
|
||
} | ||
|
||
public JButton btnStartSearch; | ||
public JProgressBar prgProgress; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.