this.addHostButton.setText("Update Host");
}
private void initGUI() {
GridPanel infoPanel = new GridPanel();
this.hostNameComboBox = new XBayaComboBox(
new javax.swing.DefaultComboBoxModel(initHostNameList()));
this.hostNameComboBox.setEditable(true);
this.hostNameComboBox.getJComboBox().addItemListener(
new ItemListener() {
@Override
public void itemStateChanged(ItemEvent arg0) {
HostDescriptionRegistrationWindow.this.gateKeeprEndpointComboBox
.setModel(new javax.swing.DefaultComboBoxModel(
gateWayEndPoint()));
HostDescriptionRegistrationWindow.this.gridFTPEndPointComboBox
.setModel(new javax.swing.DefaultComboBoxModel(
initGridFtpEndPoint()));
}
});
this.hostNameLabel = new XBayaLabel("Host Name", this.hostNameComboBox);
this.serviceTypesScrollPanel = new JScrollPane();
this.serviceTypesList = new JList();
this.serviceTypesList.setModel(new javax.swing.AbstractListModel() {
String[] strings = { "gram5", "ws-gram" };
@Override
public int getSize() {
return this.strings.length;
}
@Override
public Object getElementAt(int i) {
return this.strings[i];
}
});
this.serviceTypesScrollPanel.setViewportView(this.serviceTypesList);
this.serviceTypesLabel = new XBayaLabel("Service Types",
this.serviceTypesList);
this.hostEnvTextField = new XBayaTextField();
this.hostEnvLabel = new XBayaLabel("Host Environment",
this.hostEnvTextField);
this.tempDirTextField = new XBayaTextField("/tmp");
this.tempDirLabel = new XBayaLabel("Temp Dir", this.tempDirTextField);
this.sshEnabledCheckBox = new JCheckBox();
this.sshEnabledCheckBox.setSelected(false);
this.sshEnabledLabel = new XBayaLabel("SSH Enabled",
this.sshEnabledCheckBox);
this.jobManagerComboBox = new XBayaComboBox(
new javax.swing.DefaultComboBoxModel(new String[] { "PBS",
"FORK", "LSF", "MULTI", "CONDOR", "SPRUCE",
"LoadLeveler" }));
this.jobManagerLabel = new XBayaLabel("Gate Keeper JobManager",
this.jobManagerComboBox);
this.gateKeeprEndpointComboBox = new XBayaComboBox(
new javax.swing.DefaultComboBoxModel(gateWayEndPoint()));
this.gateKeeperEndPointLabel = new XBayaLabel("GateKeeper EndPoint",
this.gateKeeprEndpointComboBox);
this.wsGramPresentCheckBox = new JCheckBox();
this.wsGramPresentCheckBox.setSelected(false);
this.wsGramLabel = new XBayaLabel("WSGram Present",
this.wsGramPresentCheckBox);
this.gridFTPEndPointComboBox = new XBayaComboBox(
new javax.swing.DefaultComboBoxModel(initGridFtpEndPoint()));
this.gridFTPendpointLabel = new XBayaLabel("GridFtp Endpoint",
this.gridFTPEndPointComboBox);
this.isPublicCheckBox = new JCheckBox();
this.isPublicCheckBox.setSelected(false);
this.isPublicLabel = new XBayaLabel("Is Public",
this.isPublicCheckBox);
this.gfacPathTextField = new XBayaTextField();
this.gfacPathLabel = new XBayaLabel("GFac Path (Optional)",
this.gfacPathTextField);
this.jdkNameComboBox = new XBayaComboBox(
new javax.swing.DefaultComboBoxModel(new String[] { "jdk 1.4",
"jdk 1.5", "jdk 1.6" }));
this.jdkNameComboBox.setSelectedItem("jdk 1.5");
this.jdkNameLabel = new XBayaLabel("JDK Name (Optional)", this.jdkNameComboBox);