Parameter:
* Paramters:
*
index -- the selected index of the combobox.
***************************************************************************/
public void adjustGUI(int index){
int numFiles;
String tmpName = new String("");
outputType = index;
if(outputType == TAV_OUT){
gOutputFileLB.setText(TAV_FILE);
keepAllCB.setEnabled(true);
this.activeIntensityWay(false);
} else {
gOutputFileLB.setText(MEV_FILE);
keepAllCB.setEnabled(false);
this.activeIntensityWay(true);
}
numFiles = outputFileNames.size();
for(int i=0; i
inFiles -- the input files.
*
outFiles -- the output files.
***************************************************************************/
public void changeFileList(Vector inFiles, Vector outFiles){
selectedFiles = inFiles;
outputFileNames = outFiles;
gFileList.setListData(inFiles);
gOutputFileList.setListData(outFiles);
gFileNumLB.setText(NUM_FILE + selectedFiles.size());
}
public Vector getOutputFileNames() { return outputFileNames; }
public Vector getSelectedFiles() { return selectedFiles; }
public boolean isOutputReady() { return outputReady; }
public boolean keepAllInformation() { return keepAll; }
/*****************************************************************************
* Description:
* create a GUI for program
****************************************************************************/
protected void createGUI(){
this.setLayout(new GridBagLayout());
gInputFileLB = new JLabel("GenePix Files:");
gFileList = new JList();
gFileList.setBorder(gLow);
actionHandler(gFileList);
actionHandler(gOutputFileList);
gFilesSP = new JScrollPane(gFileList);
keepAllCB = new JCheckBox("Keep All Information in the GenePix Files.");
keepAllCB.setToolTipText("Attach all anotation info at the end.");
keepAllCB.setSelected(keepAll);
keepAllCB.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ce){
if(keepAllCB.isSelected()){
keepAll = true;
} else {
keepAll = false;
}
}
});
gba.add(this, gFileSplitPane, 0, 0, 2, 1, 1, 1, GBA.B, GBA.C, 5, 5, 10, 5);
gba.add(this, sortCB, 0, 1, 1, 1, 1, 0, GBA.H, GBA.C, 10, 15, 3, 5);
gba.add(this, keepAllCB, 0, 2, 1, 1, 1, 0, GBA.H, GBA.C, 3, 15, 3, 5);
gba.add(this, gIntenPanel, 1, 1, 1, 2, 1, 0, GBA.H, GBA.W, 10, 0, 3, 5);
gba.add(gInputPL, gInputFileLB, 0, 0, 1, 1, 1, 0, GBA.H, GBA.C, 5, 10, 5, 2);
gba.add(gInputPL, gFilesSP, 0, 1, 1, 1, 1, 1, GBA.B, GBA.C, 1, 2, 5, 2);
}
}