mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
2774 changed all new static text for managing organizations to @messages
This commit is contained in:
parent
a169d40b90
commit
a2c448c06f
@ -212,48 +212,6 @@ CasePropertiesPanel.lbDbName.text=Database Name:
|
|||||||
CasePropertiesPanel.lbDbType.text=Case Type:
|
CasePropertiesPanel.lbDbType.text=Case Type:
|
||||||
CasePropertiesPanel.caseNumberLabel.text=Case Number:
|
CasePropertiesPanel.caseNumberLabel.text=Case Number:
|
||||||
LocalDiskPanel.changeDatabasePathCheckbox.text=Update case to use VHD file upon completion
|
LocalDiskPanel.changeDatabasePathCheckbox.text=Update case to use VHD file upon completion
|
||||||
CasePropertiesPanel.lbCaseUUIDLabel.text=Case UUID:
|
|
||||||
CentralRepoCaseOptionsPanel.pnOrganization.border.title=Organization
|
|
||||||
CentralRepoCaseOptionsPanel.pnExaminer.border.title=Examiner Details
|
|
||||||
CentralRepoCaseOptionsPanel.bnNewOrganization.text=Manage Organizations
|
|
||||||
CentralRepoCaseOptionsPanel.lbNotesLabel.text=Notes:
|
|
||||||
CentralRepoCaseOptionsPanel.lbPointOfContactPhoneLabel.text=Phone:
|
|
||||||
CentralRepoCaseOptionsPanel.lbExaminerPhoneLabel.text=Phone:
|
|
||||||
CentralRepoCaseOptionsPanel.lbPointOfContactEmailLabel.text=Email:
|
|
||||||
CentralRepoCaseOptionsPanel.lbPointOfContactNameLabel.text=Point of Contact:
|
|
||||||
CentralRepoCaseOptionsPanel.lbExaminerEmailLabel.text=Email:
|
|
||||||
CentralRepoCaseOptionsPanel.lbOrganizationNameLabel.text=Organization Name:
|
|
||||||
CentralRepoCaseOptionsPanel.lbExaminerNameLabel.text=Name:
|
|
||||||
CasePropertiesPanel.casePanel.border.title=Case
|
|
||||||
CasePropertiesPanel.examinerLabel.text=Name:
|
|
||||||
CasePropertiesPanel.lbExaminerPhoneLabel.text=Phone:
|
|
||||||
CasePropertiesPanel.lbExaminerEmailLabel.text=Email:
|
|
||||||
CasePropertiesPanel.lbNotesLabel.text=Notes:
|
|
||||||
CasePropertiesPanel.examinerPanel.border.title=Examiner
|
|
||||||
CasePropertiesPanel.lbOrganizationNameLabel1.text=Name:
|
|
||||||
CasePropertiesPanel.pnOrganization1.border.title=Organization
|
|
||||||
CasePropertiesPanel.lbPointOfContactPhoneLabel1.text=Phone:
|
|
||||||
CasePropertiesPanel.lbPointOfContactEmailLabel1.text=Email:
|
|
||||||
CasePropertiesPanel.lbPointOfContactNameLabel1.text=Point of Contact:
|
|
||||||
CaseInformationPanel.jButton1.text=Edit
|
|
||||||
OptionalCasePropertiesPanel.lbPointOfContactEmailLabel.text=Email:
|
|
||||||
OptionalCasePropertiesPanel.lbOrganizationNameLabel.text=Name:
|
|
||||||
OptionalCasePropertiesPanel.bnNewOrganization.text=Manage Organizations
|
|
||||||
OptionalCasePropertiesPanel.lbPointOfContactNameLabel.text=Point of Contact:
|
|
||||||
OptionalCasePropertiesPanel.lbPointOfContactPhoneLabel.text=Phone:
|
|
||||||
OptionalCasePropertiesPanel.orgainizationPanel.border.title=Organization
|
|
||||||
OptionalCasePropertiesPanel.lbNotesLabel.text=Notes:
|
|
||||||
OptionalCasePropertiesPanel.examinerLabel.text=Name:
|
|
||||||
OptionalCasePropertiesPanel.lbExaminerEmailLabel.text=Email:
|
|
||||||
OptionalCasePropertiesPanel.examinerTextField.text=
|
|
||||||
OptionalCasePropertiesPanel.lbExaminerPhoneLabel.text=Phone:
|
|
||||||
OptionalCasePropertiesPanel.examinerPanel.border.title=Examiner
|
|
||||||
OptionalCasePropertiesPanel.caseNumberTextField.text=
|
|
||||||
OptionalCasePropertiesPanel.caseNumberLabel.text=Number:
|
|
||||||
OptionalCasePropertiesPanel.casePanel.border.title=Case
|
|
||||||
EditOptionalCasePropertiesPanel.saveButton.text=Save
|
|
||||||
EditOptionalCasePropertiesPanel.cancelButton.text=Cancel
|
|
||||||
OptionalCasePropertiesPanel.caseDisplayNameLabel.text=Name:
|
|
||||||
CueBannerPanel.openAutoIngestCaseButton.text=
|
CueBannerPanel.openAutoIngestCaseButton.text=
|
||||||
CueBannerPanel.openExistingCaseButton.text=
|
CueBannerPanel.openExistingCaseButton.text=
|
||||||
CueBannerPanel.openRecentCaseButton.text=
|
CueBannerPanel.openRecentCaseButton.text=
|
||||||
|
@ -22,7 +22,7 @@ package org.sleuthkit.autopsy.casemodule;
|
|||||||
* Wrapper to contain the modifiable details of a case, such as case display
|
* Wrapper to contain the modifiable details of a case, such as case display
|
||||||
* name, case number, and examiner related fields.
|
* name, case number, and examiner related fields.
|
||||||
*/
|
*/
|
||||||
class CaseDetails {
|
final class CaseDetails {
|
||||||
|
|
||||||
private final String caseDisplayName;
|
private final String caseDisplayName;
|
||||||
private final String caseNumber;
|
private final String caseNumber;
|
||||||
|
@ -36,12 +36,10 @@
|
|||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="tabbedPane" pref="709" max="32767" attributes="0"/>
|
<Component id="tabbedPane" pref="709" max="32767" attributes="0"/>
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="editDetailsButton" linkSize="3" min="-2" pref="88" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Component id="jButton1" linkSize="1" min="-2" pref="61" max="-2" attributes="0"/>
|
<Component id="closeButton" linkSize="3" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="closeButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -52,7 +50,7 @@
|
|||||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="closeButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="closeButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="editDetailsButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@ -76,14 +74,14 @@
|
|||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton1">
|
<Component class="javax.swing.JButton" name="editDetailsButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CaseInformationPanel.jButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CaseInformationPanel.editDetailsButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="editDetailsButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
|
@ -47,8 +47,10 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Messages({
|
@Messages({
|
||||||
"CaseInformationPanel.caseDetails.header=Case Details",
|
"CaseInformationPanel.caseDetails.header=Details",
|
||||||
"CaseInformationPanel.ingestJobInfo.header=Ingest History"
|
"CaseInformationPanel.ingestJobInfo.header=Ingest History",
|
||||||
|
"CaseInformationPanel.editDetailsButton.text=Edit Details",
|
||||||
|
"CaseInformationPanel.editDetailsDialog.title=Edit Case Details"
|
||||||
})
|
})
|
||||||
private void customizeComponents() {
|
private void customizeComponents() {
|
||||||
propertiesPanel = new CasePropertiesPanel(Case.getCurrentCase());
|
propertiesPanel = new CasePropertiesPanel(Case.getCurrentCase());
|
||||||
@ -84,16 +86,16 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
outerDetailsPanel = new javax.swing.JPanel();
|
outerDetailsPanel = new javax.swing.JPanel();
|
||||||
tabbedPane = new javax.swing.JTabbedPane();
|
tabbedPane = new javax.swing.JTabbedPane();
|
||||||
closeButton = new javax.swing.JButton();
|
closeButton = new javax.swing.JButton();
|
||||||
jButton1 = new javax.swing.JButton();
|
editDetailsButton = new javax.swing.JButton();
|
||||||
|
|
||||||
tabbedPane.setPreferredSize(new java.awt.Dimension(420, 200));
|
tabbedPane.setPreferredSize(new java.awt.Dimension(420, 200));
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(closeButton, org.openide.util.NbBundle.getMessage(CaseInformationPanel.class, "CaseInformationPanel.closeButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(closeButton, org.openide.util.NbBundle.getMessage(CaseInformationPanel.class, "CaseInformationPanel.closeButton.text")); // NOI18N
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(CaseInformationPanel.class, "CaseInformationPanel.jButton1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(editDetailsButton, org.openide.util.NbBundle.getMessage(CaseInformationPanel.class, "CaseInformationPanel.editDetailsButton.text")); // NOI18N
|
||||||
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
editDetailsButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton1ActionPerformed(evt);
|
editDetailsButtonActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -102,15 +104,13 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
outerDetailsPanelLayout.setHorizontalGroup(
|
outerDetailsPanelLayout.setHorizontalGroup(
|
||||||
outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE)
|
.addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, outerDetailsPanelLayout.createSequentialGroup()
|
.addGroup(outerDetailsPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(editDetailsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(closeButton))
|
||||||
.addComponent(closeButton)
|
|
||||||
.addGap(5, 5, 5))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
outerDetailsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, jButton1});
|
outerDetailsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, editDetailsButton});
|
||||||
|
|
||||||
outerDetailsPanelLayout.setVerticalGroup(
|
outerDetailsPanelLayout.setVerticalGroup(
|
||||||
outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
@ -119,7 +119,7 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
.addGap(0, 0, 0)
|
.addGap(0, 0, 0)
|
||||||
.addGroup(outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(outerDetailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(closeButton)
|
.addComponent(closeButton)
|
||||||
.addComponent(jButton1))
|
.addComponent(editDetailsButton))
|
||||||
.addGap(5, 5, 5))
|
.addGap(5, 5, 5))
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -138,8 +138,8 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
private void editDetailsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editDetailsButtonActionPerformed
|
||||||
JDialog editCasePropertiesDialog = new JDialog(WindowManager.getDefault().getMainWindow(), "Edit Case Details", true);
|
JDialog editCasePropertiesDialog = new JDialog(WindowManager.getDefault().getMainWindow(), Bundle.CaseInformationPanel_editDetailsDialog_title(), true);
|
||||||
EditOptionalCasePropertiesPanel editCasePropertiesPanel = new EditOptionalCasePropertiesPanel();
|
EditOptionalCasePropertiesPanel editCasePropertiesPanel = new EditOptionalCasePropertiesPanel();
|
||||||
editCasePropertiesPanel.addCancelButtonAction((ActionEvent e) -> {
|
editCasePropertiesPanel.addCancelButtonAction((ActionEvent e) -> {
|
||||||
editCasePropertiesDialog.setVisible(false);
|
editCasePropertiesDialog.setVisible(false);
|
||||||
@ -162,11 +162,11 @@ class CaseInformationPanel extends javax.swing.JPanel {
|
|||||||
editCasePropertiesDialog.setVisible(true);
|
editCasePropertiesDialog.setVisible(true);
|
||||||
editCasePropertiesDialog.toFront();
|
editCasePropertiesDialog.toFront();
|
||||||
propertiesPanel.updateCaseInfo();
|
propertiesPanel.updateCaseInfo();
|
||||||
}//GEN-LAST:event_jButton1ActionPerformed
|
}//GEN-LAST:event_editDetailsButtonActionPerformed
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JButton closeButton;
|
private javax.swing.JButton closeButton;
|
||||||
private javax.swing.JButton jButton1;
|
private javax.swing.JButton editDetailsButton;
|
||||||
private javax.swing.JPanel outerDetailsPanel;
|
private javax.swing.JPanel outerDetailsPanel;
|
||||||
private javax.swing.JTabbedPane tabbedPane;
|
private javax.swing.JTabbedPane tabbedPane;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.casemodule;
|
package org.sleuthkit.autopsy.casemodule;
|
||||||
|
|
||||||
import java.awt.Dialog;
|
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.awt.Toolkit;
|
import java.awt.Toolkit;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="casePanel" max="32767" attributes="0"/>
|
<Component id="casePanel" max="32767" attributes="0"/>
|
||||||
<Component id="examinerPanel" alignment="0" max="32767" attributes="0"/>
|
<Component id="examinerPanel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="pnOrganization1" alignment="1" max="32767" attributes="0"/>
|
<Component id="pnOrganization" alignment="1" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@ -74,7 +74,7 @@
|
|||||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||||
<Component id="examinerPanel" min="-2" max="-2" attributes="0"/>
|
<Component id="examinerPanel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||||
<Component id="pnOrganization1" min="-2" max="-2" attributes="0"/>
|
<Component id="pnOrganization" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@ -416,13 +416,13 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbExaminerEmailLabel" max="32767" attributes="0"/>
|
<Component id="lbExaminerPhoneLabel" max="32767" attributes="0"/>
|
||||||
<Component id="lbExaminerEmailText" max="32767" attributes="0"/>
|
<Component id="lbExaminerPhoneText" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbExaminerPhoneLabel" max="32767" attributes="0"/>
|
<Component id="lbExaminerEmailLabel" max="32767" attributes="0"/>
|
||||||
<Component id="lbExaminerPhoneText" max="32767" attributes="0"/>
|
<Component id="lbExaminerEmailText" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
@ -544,12 +544,12 @@
|
|||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="pnOrganization1">
|
<Container class="javax.swing.JPanel" name="pnOrganization">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
||||||
<TitledBorder title="Organization">
|
<TitledBorder title="Organization">
|
||||||
<ResourceString PropertyName="titleX" bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.pnOrganization1.border.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString PropertyName="titleX" bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.pnOrganization.border.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
<Font PropertyName="font" name="Tahoma" size="12" style="0"/>
|
<Font PropertyName="font" name="Tahoma" size="12" style="0"/>
|
||||||
</TitledBorder>
|
</TitledBorder>
|
||||||
</Border>
|
</Border>
|
||||||
@ -559,24 +559,31 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="lbPointOfContactEmailLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="lbPointOfContactPhoneLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbPointOfContactNameLabel1" alignment="0" max="32767" attributes="0"/>
|
<Component id="lbPointOfContactEmailLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="lbPointOfContactNameLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Component id="lbOrganizationNameLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
|
<Component id="lbPointOfContactNameText" alignment="1" pref="411" max="32767" attributes="0"/>
|
||||||
|
<Component id="lbOrganizationNameText" alignment="0" max="32767" attributes="0"/>
|
||||||
|
<Component id="lbPointOfContactEmailText" alignment="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="lbPointOfContactPhoneLabel" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="lbPointOfContactPhoneText" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="lbOrganizationNameLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
|
||||||
<Component id="lbPointOfContactNameText1" alignment="1" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbOrganizationNameText" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactPhoneText1" alignment="1" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactEmailText1" alignment="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -585,23 +592,23 @@
|
|||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbOrganizationNameLabel1" max="32767" attributes="0"/>
|
<Component id="lbOrganizationNameLabel" max="32767" attributes="0"/>
|
||||||
<Component id="lbOrganizationNameText" max="32767" attributes="0"/>
|
<Component id="lbOrganizationNameText" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbPointOfContactNameLabel1" alignment="0" max="32767" attributes="0"/>
|
<Component id="lbPointOfContactNameLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="lbPointOfContactNameText1" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
<Component id="lbPointOfContactNameText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactEmailLabel1" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactEmailText1" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="lbPointOfContactPhoneLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="lbPointOfContactPhoneLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="lbPointOfContactPhoneText1" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
<Component id="lbPointOfContactPhoneText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
|
<Component id="lbPointOfContactEmailLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
|
<Component id="lbPointOfContactEmailText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@ -609,10 +616,10 @@
|
|||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JLabel" name="lbOrganizationNameLabel1">
|
<Component class="javax.swing.JLabel" name="lbOrganizationNameLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbOrganizationNameLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbOrganizationNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[82, 14]"/>
|
<Dimension value="[82, 14]"/>
|
||||||
@ -625,17 +632,17 @@
|
|||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactNameLabel1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactNameLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactNameLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailLabel1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactEmailLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactEmailLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[82, 14]"/>
|
<Dimension value="[82, 14]"/>
|
||||||
@ -648,10 +655,10 @@
|
|||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneLabel1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactPhoneLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CasePropertiesPanel.lbPointOfContactPhoneLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[82, 14]"/>
|
<Dimension value="[82, 14]"/>
|
||||||
@ -664,11 +671,11 @@
|
|||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactNameText1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactNameText">
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailText1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailText">
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneText1">
|
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneText">
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbOrganizationNameText">
|
<Component class="javax.swing.JLabel" name="lbOrganizationNameText">
|
||||||
</Component>
|
</Component>
|
||||||
|
@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.casemodule;
|
|||||||
|
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
|
import org.openide.util.NbBundle.Messages;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
||||||
@ -63,15 +64,15 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
dbNameField.setText(theCase.getMetadata().getCaseDatabaseName());
|
dbNameField.setText(theCase.getMetadata().getCaseDatabaseName());
|
||||||
}
|
}
|
||||||
boolean cREnabled = EamDb.isEnabled();
|
boolean cREnabled = EamDb.isEnabled();
|
||||||
lbOrganizationNameLabel1.setEnabled(cREnabled);
|
lbOrganizationNameLabel.setEnabled(cREnabled);
|
||||||
lbOrganizationNameText.setEnabled(cREnabled);
|
lbOrganizationNameText.setEnabled(cREnabled);
|
||||||
lbPointOfContactEmailLabel1.setEnabled(cREnabled);
|
lbPointOfContactEmailLabel.setEnabled(cREnabled);
|
||||||
lbPointOfContactEmailText1.setEnabled(cREnabled);
|
lbPointOfContactEmailText.setEnabled(cREnabled);
|
||||||
lbPointOfContactNameLabel1.setEnabled(cREnabled);
|
lbPointOfContactNameLabel.setEnabled(cREnabled);
|
||||||
lbPointOfContactNameText1.setEnabled(cREnabled);
|
lbPointOfContactNameText.setEnabled(cREnabled);
|
||||||
lbPointOfContactPhoneLabel1.setEnabled(cREnabled);
|
lbPointOfContactPhoneLabel.setEnabled(cREnabled);
|
||||||
lbPointOfContactPhoneText1.setEnabled(cREnabled);
|
lbPointOfContactPhoneText.setEnabled(cREnabled);
|
||||||
pnOrganization1.setEnabled(cREnabled);
|
pnOrganization.setEnabled(cREnabled);
|
||||||
EamOrganization currentOrg = null;
|
EamOrganization currentOrg = null;
|
||||||
if (cREnabled) {
|
if (cREnabled) {
|
||||||
try {
|
try {
|
||||||
@ -85,19 +86,20 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
currentOrg = correlationCase.getOrg();
|
currentOrg = correlationCase.getOrg();
|
||||||
}
|
}
|
||||||
} catch (EamDbException ex) {
|
} catch (EamDbException ex) {
|
||||||
|
//WJS-TODO handle exception
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentOrg != null) {
|
if (currentOrg != null) {
|
||||||
lbOrganizationNameText.setText(currentOrg.getName());
|
lbOrganizationNameText.setText(currentOrg.getName());
|
||||||
lbPointOfContactNameText1.setText(currentOrg.getPocName());
|
lbPointOfContactNameText.setText(currentOrg.getPocName());
|
||||||
lbPointOfContactPhoneText1.setText(currentOrg.getPocPhone());
|
lbPointOfContactPhoneText.setText(currentOrg.getPocPhone());
|
||||||
lbPointOfContactEmailText1.setText(currentOrg.getPocEmail());
|
lbPointOfContactEmailText.setText(currentOrg.getPocEmail());
|
||||||
} else {
|
} else {
|
||||||
lbOrganizationNameText.setText("");
|
lbOrganizationNameText.setText("");
|
||||||
lbPointOfContactNameText1.setText("");
|
lbPointOfContactNameText.setText("");
|
||||||
lbPointOfContactPhoneText1.setText("");
|
lbPointOfContactPhoneText.setText("");
|
||||||
lbPointOfContactEmailText1.setText("");
|
lbPointOfContactEmailText.setText("");
|
||||||
}
|
}
|
||||||
Case.CaseType caseType = theCase.getCaseType();
|
Case.CaseType caseType = theCase.getCaseType();
|
||||||
caseTypeField.setText(caseType.getLocalizedDisplayName());
|
caseTypeField.setText(caseType.getLocalizedDisplayName());
|
||||||
@ -106,6 +108,19 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
repaint();
|
repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({"CasePropertiesPanel.casePanel.border.title=Case",
|
||||||
|
"CasePropertiesPanel.lbCaseUUIDLabel.text=Case UUID:",
|
||||||
|
"CasePropertiesPanel.examinerPanel.border.title=Examiner",
|
||||||
|
"CasePropertiesPanel.examinerLabel.text=Name:",
|
||||||
|
"CasePropertiesPanel.lbExaminerPhoneLable.text=Phone:",
|
||||||
|
"CasePropertiesPanel.lbExaminerEmailLabel.text=Email:",
|
||||||
|
"CasePropertiesPanel.lbNotesLabel.text=Notes:",
|
||||||
|
"CasePropertiesPanel.organizationPanel.border.title=Organization",
|
||||||
|
"CasePropertiesPanel.lbOrganizationNameLabel.text=Name:",
|
||||||
|
"CasePropertiesPanel.lbPointOfContactNameLabel.text=Point of Contact:",
|
||||||
|
"CasePropertiesPanel.lbPointOfContactPhoneLabel.text=Phone:",
|
||||||
|
"CasePropertiesPanel.lbPointOfContactEmailLabel.text=Email:"})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In this generated code below, there are 2 strings "Path" and "Remove"
|
* In this generated code below, there are 2 strings "Path" and "Remove"
|
||||||
* that are table column headers in the DefaultTableModel. When this model
|
* that are table column headers in the DefaultTableModel. When this model
|
||||||
@ -152,14 +167,14 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
lbExaminerPhoneLabel = new javax.swing.JLabel();
|
lbExaminerPhoneLabel = new javax.swing.JLabel();
|
||||||
lbExaminerPhoneText = new javax.swing.JLabel();
|
lbExaminerPhoneText = new javax.swing.JLabel();
|
||||||
lbExaminerEmailText = new javax.swing.JLabel();
|
lbExaminerEmailText = new javax.swing.JLabel();
|
||||||
pnOrganization1 = new javax.swing.JPanel();
|
pnOrganization = new javax.swing.JPanel();
|
||||||
lbOrganizationNameLabel1 = new javax.swing.JLabel();
|
lbOrganizationNameLabel = new javax.swing.JLabel();
|
||||||
lbPointOfContactNameLabel1 = new javax.swing.JLabel();
|
lbPointOfContactNameLabel = new javax.swing.JLabel();
|
||||||
lbPointOfContactEmailLabel1 = new javax.swing.JLabel();
|
lbPointOfContactEmailLabel = new javax.swing.JLabel();
|
||||||
lbPointOfContactPhoneLabel1 = new javax.swing.JLabel();
|
lbPointOfContactPhoneLabel = new javax.swing.JLabel();
|
||||||
lbPointOfContactNameText1 = new javax.swing.JLabel();
|
lbPointOfContactNameText = new javax.swing.JLabel();
|
||||||
lbPointOfContactEmailText1 = new javax.swing.JLabel();
|
lbPointOfContactEmailText = new javax.swing.JLabel();
|
||||||
lbPointOfContactPhoneText1 = new javax.swing.JLabel();
|
lbPointOfContactPhoneText = new javax.swing.JLabel();
|
||||||
lbOrganizationNameText = new javax.swing.JLabel();
|
lbOrganizationNameText = new javax.swing.JLabel();
|
||||||
|
|
||||||
jTextArea1.setColumns(20);
|
jTextArea1.setColumns(20);
|
||||||
@ -354,12 +369,12 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addComponent(lbExaminerNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbExaminerNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbExaminerEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(lbExaminerPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbExaminerPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(lbExaminerEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
@ -367,64 +382,68 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addGap(6, 6, 6))
|
.addGap(6, 6, 6))
|
||||||
);
|
);
|
||||||
|
|
||||||
pnOrganization1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.pnOrganization1.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
|
pnOrganization.setBorder(javax.swing.BorderFactory.createTitledBorder(null, org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.pnOrganization.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
|
||||||
|
|
||||||
lbOrganizationNameLabel1.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbOrganizationNameLabel1.text")); // NOI18N
|
lbOrganizationNameLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbOrganizationNameLabel.text")); // NOI18N
|
||||||
lbOrganizationNameLabel1.setMaximumSize(new java.awt.Dimension(82, 14));
|
lbOrganizationNameLabel.setMaximumSize(new java.awt.Dimension(82, 14));
|
||||||
lbOrganizationNameLabel1.setMinimumSize(new java.awt.Dimension(82, 14));
|
lbOrganizationNameLabel.setMinimumSize(new java.awt.Dimension(82, 14));
|
||||||
lbOrganizationNameLabel1.setPreferredSize(new java.awt.Dimension(82, 14));
|
lbOrganizationNameLabel.setPreferredSize(new java.awt.Dimension(82, 14));
|
||||||
|
|
||||||
lbPointOfContactNameLabel1.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactNameLabel1.text")); // NOI18N
|
lbPointOfContactNameLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactNameLabel.text")); // NOI18N
|
||||||
|
|
||||||
lbPointOfContactEmailLabel1.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactEmailLabel1.text")); // NOI18N
|
lbPointOfContactEmailLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactEmailLabel.text")); // NOI18N
|
||||||
lbPointOfContactEmailLabel1.setMaximumSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactEmailLabel.setMaximumSize(new java.awt.Dimension(82, 14));
|
||||||
lbPointOfContactEmailLabel1.setMinimumSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactEmailLabel.setMinimumSize(new java.awt.Dimension(82, 14));
|
||||||
lbPointOfContactEmailLabel1.setPreferredSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactEmailLabel.setPreferredSize(new java.awt.Dimension(82, 14));
|
||||||
|
|
||||||
lbPointOfContactPhoneLabel1.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactPhoneLabel1.text")); // NOI18N
|
lbPointOfContactPhoneLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactPhoneLabel.text")); // NOI18N
|
||||||
lbPointOfContactPhoneLabel1.setMaximumSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactPhoneLabel.setMaximumSize(new java.awt.Dimension(82, 14));
|
||||||
lbPointOfContactPhoneLabel1.setMinimumSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactPhoneLabel.setMinimumSize(new java.awt.Dimension(82, 14));
|
||||||
lbPointOfContactPhoneLabel1.setPreferredSize(new java.awt.Dimension(82, 14));
|
lbPointOfContactPhoneLabel.setPreferredSize(new java.awt.Dimension(82, 14));
|
||||||
|
|
||||||
javax.swing.GroupLayout pnOrganization1Layout = new javax.swing.GroupLayout(pnOrganization1);
|
javax.swing.GroupLayout pnOrganizationLayout = new javax.swing.GroupLayout(pnOrganization);
|
||||||
pnOrganization1.setLayout(pnOrganization1Layout);
|
pnOrganization.setLayout(pnOrganizationLayout);
|
||||||
pnOrganization1Layout.setHorizontalGroup(
|
pnOrganizationLayout.setHorizontalGroup(
|
||||||
pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(pnOrganization1Layout.createSequentialGroup()
|
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
||||||
.addComponent(lbPointOfContactEmailLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(lbPointOfContactPhoneLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbPointOfContactNameLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(lbOrganizationNameLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(lbOrganizationNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(lbPointOfContactNameText1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(lbOrganizationNameText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactPhoneText1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbOrganizationNameText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactEmailText1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
||||||
|
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
||||||
|
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
pnOrganization1Layout.setVerticalGroup(
|
pnOrganizationLayout.setVerticalGroup(
|
||||||
pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(pnOrganization1Layout.createSequentialGroup()
|
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbOrganizationNameLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbOrganizationNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbOrganizationNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(lbOrganizationNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbPointOfContactNameLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactNameText1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(lbPointOfContactEmailLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(lbPointOfContactEmailText1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(pnOrganization1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbPointOfContactPhoneLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactPhoneText1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGap(6, 6, 6))
|
.addGap(6, 6, 6))
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -437,7 +456,7 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(casePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(casePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(examinerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(examinerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(pnOrganization1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(pnOrganization, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
detailsPanelLayout.setVerticalGroup(
|
detailsPanelLayout.setVerticalGroup(
|
||||||
@ -447,7 +466,7 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addGap(0, 0, 0)
|
.addGap(0, 0, 0)
|
||||||
.addComponent(examinerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(examinerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGap(0, 0, 0)
|
.addGap(0, 0, 0)
|
||||||
.addComponent(pnOrganization1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(pnOrganization, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -469,15 +488,11 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
|
//WJS-TODO ensure case not saved with empty name
|
||||||
// @NbBundle.Messages({
|
// @NbBundle.Messages({
|
||||||
// "CasePropertiesPanel.errorDialog.emptyCaseNameMessage=No case name entered.",
|
// "CasePropertiesPanel.errorDialog.emptyCaseNameMessage=No case name entered.",
|
||||||
// "CasePropertiesPanel.errorDialog.invalidCaseNameMessage=Case names cannot include the following symbols: \\, /, :, *, ?, \", <, >, |"
|
// "CasePropertiesPanel.errorDialog.invalidCaseNameMessage=Case names cannot include the following symbols: \\, /, :, *, ?, \", <, >, |"
|
||||||
// })
|
// })
|
||||||
// void saveChanges() {
|
|
||||||
// saveCaseName();
|
|
||||||
// saveCaseNumber();
|
|
||||||
// saveExaminerName();
|
|
||||||
// }
|
|
||||||
// private void saveCaseName() {
|
// private void saveCaseName() {
|
||||||
// String newCaseDisplayName = caseNameTextField.getText();
|
// String newCaseDisplayName = caseNameTextField.getText();
|
||||||
//
|
//
|
||||||
@ -502,54 +517,7 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
// LOGGER.log(Level.SEVERE, "Failed to update case display name", ex); //NON-NLS
|
// LOGGER.log(Level.SEVERE, "Failed to update case display name", ex); //NON-NLS
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// private void saveCaseNumber() {
|
|
||||||
// String newCaseNumber = caseNumberTextField.getText();
|
|
||||||
//
|
|
||||||
// if (newCaseNumber.equals(theCase.getNumber())) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (newCaseNumber.trim().isEmpty()) {
|
|
||||||
// MessageNotifyUtil.Message.error(Bundle.CasePropertiesPanel_errorDialog_emptyCaseNameMessage());
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (!Case.isValidName(newCaseNumber)) {
|
|
||||||
// MessageNotifyUtil.Message.error(Bundle.CasePropertiesPanel_errorDialog_invalidCaseNameMessage());
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// try {
|
|
||||||
// theCase.updateCaseNumber(newCaseNumber);
|
|
||||||
// } catch (CaseActionException ex) {
|
|
||||||
// MessageNotifyUtil.Message.error(ex.getLocalizedMessage());
|
|
||||||
// LOGGER.log(Level.SEVERE, "Failed to update case display name", ex); //NON-NLS
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// private void saveExaminerName() {
|
|
||||||
// String newExaminerName = examinerTextField.getText();
|
|
||||||
//
|
|
||||||
// if (newExaminerName.equals(theCase.getExaminer())) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (newExaminerName.trim().isEmpty()) {
|
|
||||||
// MessageNotifyUtil.Message.error(Bundle.CasePropertiesPanel_errorDialog_emptyCaseNameMessage());
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (!Case.isValidName(newExaminerName)) {
|
|
||||||
// MessageNotifyUtil.Message.error(Bundle.CasePropertiesPanel_errorDialog_invalidCaseNameMessage());
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// try {
|
|
||||||
// theCase.updateExaminer(newExaminerName);
|
|
||||||
// } catch (CaseActionException ex) {
|
|
||||||
// MessageNotifyUtil.Message.error(ex.getLocalizedMessage());
|
|
||||||
// LOGGER.log(Level.SEVERE, "Failed to update case display name", ex); //NON-NLS
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JLabel caseDirField;
|
private javax.swing.JLabel caseDirField;
|
||||||
private javax.swing.JLabel caseDirLabel;
|
private javax.swing.JLabel caseDirLabel;
|
||||||
@ -578,15 +546,15 @@ final class CasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
private javax.swing.JLabel lbExaminerPhoneLabel;
|
private javax.swing.JLabel lbExaminerPhoneLabel;
|
||||||
private javax.swing.JLabel lbExaminerPhoneText;
|
private javax.swing.JLabel lbExaminerPhoneText;
|
||||||
private javax.swing.JLabel lbNotesLabel;
|
private javax.swing.JLabel lbNotesLabel;
|
||||||
private javax.swing.JLabel lbOrganizationNameLabel1;
|
private javax.swing.JLabel lbOrganizationNameLabel;
|
||||||
private javax.swing.JLabel lbOrganizationNameText;
|
private javax.swing.JLabel lbOrganizationNameText;
|
||||||
private javax.swing.JLabel lbPointOfContactEmailLabel1;
|
private javax.swing.JLabel lbPointOfContactEmailLabel;
|
||||||
private javax.swing.JLabel lbPointOfContactEmailText1;
|
private javax.swing.JLabel lbPointOfContactEmailText;
|
||||||
private javax.swing.JLabel lbPointOfContactNameLabel1;
|
private javax.swing.JLabel lbPointOfContactNameLabel;
|
||||||
private javax.swing.JLabel lbPointOfContactNameText1;
|
private javax.swing.JLabel lbPointOfContactNameText;
|
||||||
private javax.swing.JLabel lbPointOfContactPhoneLabel1;
|
private javax.swing.JLabel lbPointOfContactPhoneLabel;
|
||||||
private javax.swing.JLabel lbPointOfContactPhoneText1;
|
private javax.swing.JLabel lbPointOfContactPhoneText;
|
||||||
private javax.swing.JPanel pnOrganization1;
|
private javax.swing.JPanel pnOrganization;
|
||||||
private javax.swing.JTextArea taNotesText;
|
private javax.swing.JTextArea taNotesText;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace pref="254" max="32767" attributes="0"/>
|
<EmptySpace pref="254" max="32767" attributes="0"/>
|
||||||
<Component id="cancelButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="saveButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
<Component id="saveButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="cancelButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
||||||
<Component id="optionsPanel" alignment="0" max="32767" attributes="0"/>
|
<Component id="optionsPanel" alignment="0" max="32767" attributes="0"/>
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.sleuthkit.autopsy.casemodule;
|
package org.sleuthkit.autopsy.casemodule;
|
||||||
|
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import org.openide.util.NbBundle.Messages;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -43,6 +43,10 @@ class EditOptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
propertiesPanel.setVisible(true);
|
propertiesPanel.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({
|
||||||
|
"EditOptionalCasePropertiesPanel.saveButton.text=Save",
|
||||||
|
"EditOptionalCasePropertiesPanel.cancelButton.text=Cancel"
|
||||||
|
})
|
||||||
/**
|
/**
|
||||||
* This method is called from within the constructor to initialize the form.
|
* This method is called from within the constructor to initialize the form.
|
||||||
* WARNING: Do NOT modify this code. The content of this method is always
|
* WARNING: Do NOT modify this code. The content of this method is always
|
||||||
@ -68,9 +72,9 @@ class EditOptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
||||||
.addContainerGap(254, Short.MAX_VALUE)
|
.addContainerGap(254, Short.MAX_VALUE)
|
||||||
.addComponent(cancelButton)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(saveButton)
|
.addComponent(saveButton)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(cancelButton)
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(optionsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(optionsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
@ -93,9 +97,10 @@ class EditOptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
void saveProperties(){
|
void saveProperties() {
|
||||||
this.propertiesPanel.saveUpdatedCaseDetails();
|
this.propertiesPanel.saveUpdatedCaseDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an action listener to the Save button of the panel.
|
* Adds an action listener to the Save button of the panel.
|
||||||
*
|
*
|
||||||
|
@ -88,7 +88,7 @@ final class NewCaseWizardAction extends CallableSystemAction {
|
|||||||
String createdDirectory = (String) wizardDescriptor.getProperty("createdDirectory"); //NON-NLS
|
String createdDirectory = (String) wizardDescriptor.getProperty("createdDirectory"); //NON-NLS
|
||||||
CaseType caseType = CaseType.values()[(int) wizardDescriptor.getProperty("caseType")]; //NON-NLS
|
CaseType caseType = CaseType.values()[(int) wizardDescriptor.getProperty("caseType")]; //NON-NLS
|
||||||
Case.createAsCurrentCase(createdDirectory, new CaseDetails(caseName, caseNumber, examinerName, examinerPhone, examinerEmail, examinerNotes), caseType);
|
Case.createAsCurrentCase(createdDirectory, new CaseDetails(caseName, caseNumber, examinerName, examinerPhone, examinerEmail, examinerNotes), caseType);
|
||||||
if (EamDb.isEnabled()) {
|
if (EamDb.isEnabled()) { //if the eam is enabled we need to save the case organization information now
|
||||||
try {
|
try {
|
||||||
EamDb dbManager = EamDb.getInstance();
|
EamDb dbManager = EamDb.getInstance();
|
||||||
if (dbManager != null) {
|
if (dbManager != null) {
|
||||||
@ -147,10 +147,6 @@ final class NewCaseWizardAction extends CallableSystemAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCentralRepoCase() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void doFailedCaseCleanup(WizardDescriptor wizardDescriptor) {
|
private void doFailedCaseCleanup(WizardDescriptor wizardDescriptor) {
|
||||||
String createdDirectory = (String) wizardDescriptor.getProperty("createdDirectory"); //NON-NLS
|
String createdDirectory = (String) wizardDescriptor.getProperty("createdDirectory"); //NON-NLS
|
||||||
if (createdDirectory != null) {
|
if (createdDirectory != null) {
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<EmptySpace min="0" pref="413" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="439" max="32767" attributes="0"/>
|
||||||
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
@ -115,9 +115,6 @@
|
|||||||
<Font bold="false" component="caseNumberTextField" property="font" relativeSize="false" size="11"/>
|
<Font bold="false" component="caseNumberTextField" property="font" relativeSize="false" size="11"/>
|
||||||
</FontInfo>
|
</FontInfo>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="OptionalCasePropertiesPanel.caseNumberTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="caseDisplayNameLabel">
|
<Component class="javax.swing.JLabel" name="caseDisplayNameLabel">
|
||||||
@ -148,6 +145,9 @@
|
|||||||
<Font bold="false" component="caseDisplayNameTextField" property="font" relativeSize="false" size="11"/>
|
<Font bold="false" component="caseDisplayNameTextField" property="font" relativeSize="false" size="11"/>
|
||||||
</FontInfo>
|
</FontInfo>
|
||||||
</Property>
|
</Property>
|
||||||
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="OptionalCasePropertiesPanel.caseDisplayNameTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
@ -206,13 +206,13 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="tfExaminerEmailText" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="tfExaminerPhoneText" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="lbExaminerEmailLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="lbExaminerPhoneLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="tfExaminerPhoneText" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="tfExaminerEmailText" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="lbExaminerPhoneLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="lbExaminerEmailLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
@ -282,9 +282,6 @@
|
|||||||
<Font bold="false" component="examinerTextField" property="font" relativeSize="false" size="11"/>
|
<Font bold="false" component="examinerTextField" property="font" relativeSize="false" size="11"/>
|
||||||
</FontInfo>
|
</FontInfo>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="OptionalCasePropertiesPanel.examinerTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbExaminerEmailLabel">
|
<Component class="javax.swing.JLabel" name="lbExaminerEmailLabel">
|
||||||
@ -400,13 +397,13 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbPointOfContactEmailLabel" alignment="0" max="32767" attributes="0"/>
|
<Component id="lbPointOfContactPhoneLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="lbPointOfContactEmailText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
<Component id="lbPointOfContactPhoneText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="lbPointOfContactPhoneLabel" alignment="0" max="32767" attributes="0"/>
|
<Component id="lbPointOfContactEmailLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="lbPointOfContactPhoneText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
<Component id="lbPointOfContactEmailText" alignment="0" min="-2" pref="14" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
@ -22,22 +22,21 @@ import java.awt.Cursor;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import javax.swing.JComboBox;
|
import javax.swing.JComboBox;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.sleuthkit.autopsy.centralrepository.actions.EamCaseEditDetailsDialog;
|
import org.openide.util.NbBundle.Messages;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
||||||
import org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog;
|
import org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Panel which allows for editing and setting of the case details which are
|
||||||
* @author wschaefer
|
* optional or otherwise able to be edited.
|
||||||
*/
|
*/
|
||||||
final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
||||||
|
|
||||||
private final static Logger LOGGER = Logger.getLogger(EamCaseEditDetailsDialog.class.getName());
|
private final static Logger LOGGER = Logger.getLogger(OptionalCasePropertiesPanel.class.getName());
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private EamOrganization selectedOrg = null;
|
private EamOrganization selectedOrg = null;
|
||||||
private java.util.List<EamOrganization> orgs = null;
|
private java.util.List<EamOrganization> orgs = null;
|
||||||
@ -78,14 +77,12 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
EamDb dbManager = EamDb.getInstance();
|
EamDb dbManager = EamDb.getInstance();
|
||||||
selectedOrg = dbManager.getCaseByUUID(currentCase.getName()).getOrg();
|
selectedOrg = dbManager.getCaseByUUID(currentCase.getName()).getOrg();
|
||||||
} catch (EamDbException ex) {
|
} catch (EamDbException ex) {
|
||||||
System.out.println("THOWING ON CURRENT CASE " + ex.toString());
|
//WJS-TODO HANDLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectedOrg != null) {
|
if (selectedOrg != null) {
|
||||||
System.out.println("SET CURRNETLY SELECTED");
|
|
||||||
setCurrentlySelectedOrganization(selectedOrg.getName());
|
setCurrentlySelectedOrganization(selectedOrg.getName());
|
||||||
} else {
|
} else {
|
||||||
System.out.println("CLEAR 1");
|
|
||||||
clearOrganization();
|
clearOrganization();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -104,7 +101,6 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
lbPointOfContactPhoneLabel.setEnabled(cREnabled);
|
lbPointOfContactPhoneLabel.setEnabled(cREnabled);
|
||||||
orgainizationPanel.setEnabled(cREnabled);
|
orgainizationPanel.setEnabled(cREnabled);
|
||||||
if (!cREnabled) {
|
if (!cREnabled) {
|
||||||
System.out.println("CLEAR 2");
|
|
||||||
clearOrganization();
|
clearOrganization();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +116,7 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
comboBoxOrgName.addItem(org.getName());
|
comboBoxOrgName.addItem(org.getName());
|
||||||
});
|
});
|
||||||
} catch (EamDbException ex) {
|
} catch (EamDbException ex) {
|
||||||
System.out.println("CATCH WHATS?");
|
//WJS-TODO HANDLE EXCEPT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,6 +155,21 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({"OptionalCasePropertiesPanel.caseDisplayNameLabel.text=Name:",
|
||||||
|
"OptionalCasePropertiesPanel.lbPointOfContactEmailLabel.text=Email:",
|
||||||
|
"OptionalCasePropertiesPanel.lbOrganizationNameLabel.text=Name:",
|
||||||
|
"OptionalCasePropertiesPanel.bnNewOrganization.text=Manage Organizations",
|
||||||
|
"OptionalCasePropertiesPanel.lbPointOfContactNameLabel.text=Point of Contact:",
|
||||||
|
"OptionalCasePropertiesPanel.lbPointOfContactPhoneLabel.text=Phone:",
|
||||||
|
"OptionalCasePropertiesPanel.orgainizationPanel.border.title=Organization",
|
||||||
|
"OptionalCasePropertiesPanel.lbNotesLabel.text=Notes:",
|
||||||
|
"OptionalCasePropertiesPanel.examinerLabel.text=Name:",
|
||||||
|
"OptionalCasePropertiesPanel.lbExaminerEmailLabel.text=Email:",
|
||||||
|
"OptionalCasePropertiesPanel.lbExaminerPhoneLabel.text=Phone:",
|
||||||
|
"OptionalCasePropertiesPanel.examinerPanel.border.title=Examiner",
|
||||||
|
"OptionalCasePropertiesPanel.caseNumberLabel.text=Number:",
|
||||||
|
"OptionalCasePropertiesPanel.casePanel.border.title=Case"
|
||||||
|
})
|
||||||
/**
|
/**
|
||||||
* This method is called from within the constructor to initialize the form.
|
* This method is called from within the constructor to initialize the form.
|
||||||
* WARNING: Do NOT modify this code. The content of this method is always
|
* WARNING: Do NOT modify this code. The content of this method is always
|
||||||
@ -200,7 +211,6 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
org.openide.awt.Mnemonics.setLocalizedText(caseNumberLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseNumberLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(caseNumberLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseNumberLabel.text")); // NOI18N
|
||||||
|
|
||||||
caseNumberTextField.setFont(caseNumberTextField.getFont().deriveFont(caseNumberTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
caseNumberTextField.setFont(caseNumberTextField.getFont().deriveFont(caseNumberTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
||||||
caseNumberTextField.setText(org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseNumberTextField.text")); // NOI18N
|
|
||||||
|
|
||||||
caseDisplayNameLabel.setFont(caseDisplayNameLabel.getFont().deriveFont(caseDisplayNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
caseDisplayNameLabel.setFont(caseDisplayNameLabel.getFont().deriveFont(caseDisplayNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(caseDisplayNameLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseDisplayNameLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(caseDisplayNameLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseDisplayNameLabel.text")); // NOI18N
|
||||||
@ -209,6 +219,7 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
caseDisplayNameLabel.setPreferredSize(new java.awt.Dimension(41, 14));
|
caseDisplayNameLabel.setPreferredSize(new java.awt.Dimension(41, 14));
|
||||||
|
|
||||||
caseDisplayNameTextField.setFont(caseDisplayNameTextField.getFont().deriveFont(caseDisplayNameTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
caseDisplayNameTextField.setFont(caseDisplayNameTextField.getFont().deriveFont(caseDisplayNameTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
||||||
|
caseDisplayNameTextField.setText(org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.caseDisplayNameTextField.text")); // NOI18N
|
||||||
|
|
||||||
javax.swing.GroupLayout casePanelLayout = new javax.swing.GroupLayout(casePanel);
|
javax.swing.GroupLayout casePanelLayout = new javax.swing.GroupLayout(casePanel);
|
||||||
casePanel.setLayout(casePanelLayout);
|
casePanel.setLayout(casePanelLayout);
|
||||||
@ -257,7 +268,6 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
examinerNotesScrollPane.setViewportView(taNotesText);
|
examinerNotesScrollPane.setViewportView(taNotesText);
|
||||||
|
|
||||||
examinerTextField.setFont(examinerTextField.getFont().deriveFont(examinerTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
examinerTextField.setFont(examinerTextField.getFont().deriveFont(examinerTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
||||||
examinerTextField.setText(org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.examinerTextField.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbExaminerEmailLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.lbExaminerEmailLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(lbExaminerEmailLabel, org.openide.util.NbBundle.getMessage(OptionalCasePropertiesPanel.class, "OptionalCasePropertiesPanel.lbExaminerEmailLabel.text")); // NOI18N
|
||||||
lbExaminerEmailLabel.setMaximumSize(new java.awt.Dimension(41, 14));
|
lbExaminerEmailLabel.setMaximumSize(new java.awt.Dimension(41, 14));
|
||||||
@ -308,14 +318,14 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addComponent(examinerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(examinerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(examinerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(examinerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(tfExaminerEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(tfExaminerPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(tfExaminerPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
|
.addComponent(tfExaminerEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(examinerNotesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(examinerNotesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
@ -387,13 +397,13 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(orgainizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(orgainizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(orgainizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addGroup(orgainizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
|
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -413,7 +423,7 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGap(0, 413, Short.MAX_VALUE)
|
.addGap(0, 439, Short.MAX_VALUE)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
@ -481,7 +491,7 @@ final class OptionalCasePropertiesPanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save changed value from text fields and text areas into the EamCase
|
* Save changed value from text fields and text areas into the EamCase
|
||||||
* object.
|
* object.
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
* Enterprise Artifacts Manager
|
|
||||||
*
|
|
||||||
* Copyright 2015-2017 Basis Technology Corp.
|
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
EamCaseEditDetailsDialog.lbExaminerEmailLabel.text=Email:
|
|
||||||
EamCaseEditDetailsDialog.lbExaminerNameLabel.text=Name:
|
|
||||||
EamCaseEditDetailsDialog.bnOk.text=OK
|
|
||||||
EamCaseEditDetailsDialog.bnNewOrganization.text=Manage Organizations
|
|
||||||
EamCaseEditDetailsDialog.lbPointOfContactPhoneLabel.text=Phone:
|
|
||||||
EamCaseEditDetailsDialog.lbPointOfContactEmailLabel.text=Email:
|
|
||||||
EamCaseEditDetailsDialog.lbPointOfContactNameLabel.text=Name:
|
|
||||||
EamCaseEditDetailsDialog.lbPointOfContactGroupLabel.text=Point of Contact:
|
|
||||||
EamCaseEditDetailsDialog.lbOrganizationNameLabel.text=Organization Name:
|
|
||||||
EamCaseEditDetailsDialog.lbNotesLabel.text=Notes:
|
|
||||||
EamCaseEditDetailsDialog.lbExaminerPhoneLabel.text=Phone:
|
|
||||||
EamCaseEditDetailsDialog.pnCaseMetadata.title=Case Metadata
|
|
||||||
EamCaseEditDetailsDialog.pnOrganization.title=Organization
|
|
||||||
EamCaseEditDetailsDialog.pnExaminer.title=Examiner
|
|
||||||
EamCaseEditDetailsDialog.lbCaseNameLabel.text=Case Name:
|
|
||||||
EamCaseEditDetailsDialog.bnClose.text=Close
|
|
||||||
EamCaseEditDetailsDialog.lbCaseUUIDLabel.text=Case UUID:
|
|
||||||
EamCaseEditDetailsDialog.lbCaseNumberLabel.text=Case Number:
|
|
||||||
EamCaseEditDetailsDialog.lbCreationDateLabel.text=Creation Date:
|
|
@ -1,456 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<Form version="1.4" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
|
|
||||||
<Properties>
|
|
||||||
<Property name="defaultCloseOperation" type="int" value="2"/>
|
|
||||||
</Properties>
|
|
||||||
<SyntheticProperties>
|
|
||||||
<SyntheticProperty name="formSizePolicy" type="int" value="2"/>
|
|
||||||
</SyntheticProperties>
|
|
||||||
<AuxValues>
|
|
||||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
|
|
||||||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
|
||||||
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
|
|
||||||
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
|
|
||||||
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
|
|
||||||
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
|
|
||||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
|
||||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
|
||||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
|
||||||
</AuxValues>
|
|
||||||
|
|
||||||
<Layout>
|
|
||||||
<DimensionLayout dim="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="1" attributes="0">
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="bnOk" min="-2" pref="59" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="bnClose" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="pnCaseMetadata" alignment="1" max="32767" attributes="0"/>
|
|
||||||
<Component id="pnOrganization" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="pnExaminer" alignment="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
<DimensionLayout dim="1">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
|
|
||||||
<Component id="pnCaseMetadata" min="-2" pref="123" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="pnOrganization" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="pnExaminer" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="bnOk" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="bnClose" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
</Layout>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JButton" name="bnClose">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.bnClose.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnCloseActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JButton" name="bnOk">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.bnOk.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnOkActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Container class="javax.swing.JPanel" name="pnCaseMetadata">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
|
||||||
<TitledBorder title="Case Metadata">
|
|
||||||
<ResourceString PropertyName="titleX" bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.pnCaseMetadata.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
<Font PropertyName="font" name="Tahoma" size="12" style="0"/>
|
|
||||||
</TitledBorder>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
|
|
||||||
<Layout>
|
|
||||||
<DimensionLayout dim="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="1" max="-2" attributes="0">
|
|
||||||
<Component id="lbCaseNumberLabel" min="-2" pref="114" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCreationDateLabel" min="-2" pref="114" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCaseNameLabel" min="-2" pref="114" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCaseUUIDLabel" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="lbCaseNameText" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbCeationDateText" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbCaseNumberText" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbCaseUUIDText" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
<DimensionLayout dim="1">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbCaseUUIDLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbCaseUUIDText" min="-2" pref="14" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="lbCaseNameLabel" alignment="3" min="-2" pref="19" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCaseNameText" alignment="3" min="-2" pref="19" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="lbCreationDateLabel" alignment="3" min="-2" pref="19" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCeationDateText" alignment="3" min="-2" pref="19" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="lbCaseNumberLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbCaseNumberText" alignment="3" min="-2" pref="19" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
</Layout>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseNameLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbCaseNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCreationDateLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbCreationDateLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseNumberLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbCaseNumberLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseUUIDLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbCaseUUIDLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseUUIDText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseNameText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCeationDateText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbCaseNumberText">
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
<Container class="javax.swing.JPanel" name="pnOrganization">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
|
||||||
<TitledBorder title="Organization">
|
|
||||||
<ResourceString PropertyName="titleX" bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.pnOrganization.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
<Font PropertyName="font" name="Tahoma" size="12" style="0"/>
|
|
||||||
</TitledBorder>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
|
|
||||||
<Layout>
|
|
||||||
<DimensionLayout dim="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactGroupLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbOrganizationNameLabel" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" alignment="1" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactPhoneLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactEmailLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactNameLabel" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="lbPointOfContactNameText" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactEmailText" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactPhoneText" max="32767" attributes="0"/>
|
|
||||||
<Component id="comboBoxOrgName" alignment="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" alignment="1" attributes="0">
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="bnNewOrganization" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
<DimensionLayout dim="1">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="lbOrganizationNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="comboBoxOrgName" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactGroupLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactNameLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactNameText" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactEmailLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactEmailText" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="lbPointOfContactPhoneLabel" max="32767" attributes="0"/>
|
|
||||||
<Component id="lbPointOfContactPhoneText" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="bnNewOrganization" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
</Layout>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbOrganizationNameLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbOrganizationNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JComboBox" name="comboBoxOrgName">
|
|
||||||
<Properties>
|
|
||||||
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
|
||||||
<StringArray count="0"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboBoxOrgNameActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
<AuxValues>
|
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
|
||||||
</AuxValues>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactGroupLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbPointOfContactGroupLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactNameLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbPointOfContactNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbPointOfContactEmailLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbPointOfContactPhoneLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactNameText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactEmailText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbPointOfContactPhoneText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JButton" name="bnNewOrganization">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.bnNewOrganization.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnNewOrganizationActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
<Container class="javax.swing.JPanel" name="pnExaminer">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
|
||||||
<TitledBorder title="Examiner">
|
|
||||||
<ResourceString PropertyName="titleX" bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.pnExaminer.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
<Font PropertyName="font" name="Tahoma" size="12" style="0"/>
|
|
||||||
</TitledBorder>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
|
|
||||||
<Layout>
|
|
||||||
<DimensionLayout dim="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="lbExaminerEmailLabel" min="-2" pref="85" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbExaminerNameLabel" min="-2" pref="83" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbExaminerPhoneLabel" alignment="0" min="-2" pref="87" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbNotesLabel" min="-2" pref="87" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="tfExaminerEmailText" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="tfExaminerPhoneText" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="tfExaminerNameText" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="jScrollPane2" alignment="0" pref="274" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
<DimensionLayout dim="1">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="lbExaminerNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="tfExaminerNameText" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="tfExaminerEmailText" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbExaminerEmailLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="tfExaminerPhoneText" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="lbExaminerPhoneLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="lbNotesLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="jScrollPane2" min="-2" pref="178" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
</Layout>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbExaminerNameLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbExaminerNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JTextField" name="tfExaminerNameText">
|
|
||||||
<Properties>
|
|
||||||
<Property name="editable" type="boolean" value="false"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbExaminerEmailLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbExaminerEmailLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JTextField" name="tfExaminerEmailText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbExaminerPhoneLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbExaminerPhoneLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JTextField" name="tfExaminerPhoneText">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="lbNotesLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/actions/Bundle.properties" key="EamCaseEditDetailsDialog.lbNotesLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
|
|
||||||
<AuxValues>
|
|
||||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
|
||||||
</AuxValues>
|
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JTextArea" name="taNotesText">
|
|
||||||
<Properties>
|
|
||||||
<Property name="columns" type="int" value="20"/>
|
|
||||||
<Property name="rows" type="int" value="5"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
</SubComponents>
|
|
||||||
</Form>
|
|
@ -1,602 +0,0 @@
|
|||||||
/*
|
|
||||||
* Central Repository
|
|
||||||
*
|
|
||||||
* Copyright 2015-2017 Basis Technology Corp.
|
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
package org.sleuthkit.autopsy.centralrepository.actions;
|
|
||||||
|
|
||||||
import java.awt.Cursor;
|
|
||||||
import java.awt.Dimension;
|
|
||||||
import java.awt.Toolkit;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import javax.swing.JComboBox;
|
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
|
||||||
import javax.swing.JDialog;
|
|
||||||
import javax.swing.JFrame;
|
|
||||||
import javax.swing.JTextArea;
|
|
||||||
import javax.swing.JTextField;
|
|
||||||
import javax.swing.event.DocumentEvent;
|
|
||||||
import javax.swing.event.DocumentListener;
|
|
||||||
import org.openide.util.NbBundle.Messages;
|
|
||||||
import org.openide.windows.WindowManager;
|
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
|
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
|
||||||
import org.sleuthkit.autopsy.centralrepository.optionspanel.AddNewOrganizationDialog;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle editing details of cases within the central repository
|
|
||||||
*/
|
|
||||||
public class EamCaseEditDetailsDialog extends JDialog {
|
|
||||||
|
|
||||||
private final static Logger LOGGER = Logger.getLogger(EamCaseEditDetailsDialog.class.getName());
|
|
||||||
private CorrelationCase eamCase;
|
|
||||||
private EamDb dbManager;
|
|
||||||
private Boolean contentChanged = false;
|
|
||||||
private final Collection<JTextField> textBoxes = new ArrayList<>();
|
|
||||||
private final Collection<JTextArea> textAreas = new ArrayList<>();
|
|
||||||
private final TextBoxChangedListener textBoxChangedListener = new TextBoxChangedListener();
|
|
||||||
private EamOrganization selectedOrg = null;
|
|
||||||
private List<EamOrganization> orgs = null;
|
|
||||||
private boolean comboboxOrganizationActionListenerActive;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates new EamCaseEditDetailsDialog form
|
|
||||||
*/
|
|
||||||
@Messages({"EamCaseEditDetailsDialog.window.title=Central Repository Case Properties"})
|
|
||||||
public EamCaseEditDetailsDialog() {
|
|
||||||
super((JFrame) WindowManager.getDefault().getMainWindow(),
|
|
||||||
Bundle.EamCaseEditDetailsDialog_window_title(),
|
|
||||||
true); // NON-NLS
|
|
||||||
|
|
||||||
try {
|
|
||||||
this.dbManager = EamDb.getInstance();
|
|
||||||
this.eamCase = this.dbManager.getCaseByUUID(Case.getCurrentCase().getName());
|
|
||||||
if(this.eamCase == null){
|
|
||||||
this.eamCase = dbManager.newCase(Case.getCurrentCase());
|
|
||||||
}
|
|
||||||
initComponents();
|
|
||||||
loadData();
|
|
||||||
customizeComponents();
|
|
||||||
display();
|
|
||||||
} catch (EamDbException ex) {
|
|
||||||
LOGGER.log(Level.SEVERE, "Error getting current case.", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void customizeComponents() {
|
|
||||||
setTextBoxListeners();
|
|
||||||
setTextAreaListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setTextBoxListeners() {
|
|
||||||
// Register for notifications when the text boxes get updated.
|
|
||||||
textBoxes.add(tfExaminerNameText);
|
|
||||||
textBoxes.add(tfExaminerEmailText);
|
|
||||||
textBoxes.add(tfExaminerPhoneText);
|
|
||||||
addTextFieldDocumentListeners(textBoxes, textBoxChangedListener);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setTextAreaListeners() {
|
|
||||||
// Register for notifications when the text areas get updated.
|
|
||||||
textAreas.add(taNotesText);
|
|
||||||
addTextAreaDocumentListeners(textAreas, textBoxChangedListener);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a change listener to a collection of text fields.
|
|
||||||
*
|
|
||||||
* @param textFields The text fields.
|
|
||||||
* @param listener The change listener.
|
|
||||||
*/
|
|
||||||
private static void addTextFieldDocumentListeners(Collection<JTextField> textFields, TextBoxChangedListener listener) {
|
|
||||||
textFields.forEach((textField) -> {
|
|
||||||
textField.getDocument().addDocumentListener(listener);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a change listener to a collection of text areas.
|
|
||||||
*
|
|
||||||
* @param textAreas The text areas.
|
|
||||||
* @param listener The change listener.
|
|
||||||
*/
|
|
||||||
private static void addTextAreaDocumentListeners(Collection<JTextArea> textAreas, TextBoxChangedListener listener) {
|
|
||||||
textAreas.forEach((textArea) -> {
|
|
||||||
textArea.getDocument().addDocumentListener(listener);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void display() {
|
|
||||||
pack();
|
|
||||||
Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
|
|
||||||
setLocation((screenDimension.width - getSize().width) / 2, (screenDimension.height - getSize().height) / 2);
|
|
||||||
setVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is called from within the constructor to initialize the form.
|
|
||||||
* WARNING: Do NOT modify this code. The content of this method is always
|
|
||||||
* regenerated by the Form Editor.
|
|
||||||
*/
|
|
||||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
|
||||||
private void initComponents() {
|
|
||||||
|
|
||||||
bnClose = new javax.swing.JButton();
|
|
||||||
bnOk = new javax.swing.JButton();
|
|
||||||
pnCaseMetadata = new javax.swing.JPanel();
|
|
||||||
lbCaseNameLabel = new javax.swing.JLabel();
|
|
||||||
lbCreationDateLabel = new javax.swing.JLabel();
|
|
||||||
lbCaseNumberLabel = new javax.swing.JLabel();
|
|
||||||
lbCaseUUIDLabel = new javax.swing.JLabel();
|
|
||||||
lbCaseUUIDText = new javax.swing.JLabel();
|
|
||||||
lbCaseNameText = new javax.swing.JLabel();
|
|
||||||
lbCeationDateText = new javax.swing.JLabel();
|
|
||||||
lbCaseNumberText = new javax.swing.JLabel();
|
|
||||||
pnOrganization = new javax.swing.JPanel();
|
|
||||||
lbOrganizationNameLabel = new javax.swing.JLabel();
|
|
||||||
comboBoxOrgName = new javax.swing.JComboBox<>();
|
|
||||||
lbPointOfContactGroupLabel = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactNameLabel = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactEmailLabel = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactPhoneLabel = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactNameText = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactEmailText = new javax.swing.JLabel();
|
|
||||||
lbPointOfContactPhoneText = new javax.swing.JLabel();
|
|
||||||
bnNewOrganization = new javax.swing.JButton();
|
|
||||||
pnExaminer = new javax.swing.JPanel();
|
|
||||||
lbExaminerNameLabel = new javax.swing.JLabel();
|
|
||||||
tfExaminerNameText = new javax.swing.JTextField();
|
|
||||||
lbExaminerEmailLabel = new javax.swing.JLabel();
|
|
||||||
tfExaminerEmailText = new javax.swing.JTextField();
|
|
||||||
lbExaminerPhoneLabel = new javax.swing.JLabel();
|
|
||||||
tfExaminerPhoneText = new javax.swing.JTextField();
|
|
||||||
lbNotesLabel = new javax.swing.JLabel();
|
|
||||||
jScrollPane2 = new javax.swing.JScrollPane();
|
|
||||||
taNotesText = new javax.swing.JTextArea();
|
|
||||||
|
|
||||||
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(bnClose, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.bnClose.text")); // NOI18N
|
|
||||||
bnClose.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
bnCloseActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(bnOk, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.bnOk.text")); // NOI18N
|
|
||||||
bnOk.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
bnOkActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
pnCaseMetadata.setBorder(javax.swing.BorderFactory.createTitledBorder(null, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.pnCaseMetadata.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbCaseNameLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbCaseNameLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbCreationDateLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbCreationDateLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbCaseNumberLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbCaseNumberLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbCaseUUIDLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbCaseUUIDLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
javax.swing.GroupLayout pnCaseMetadataLayout = new javax.swing.GroupLayout(pnCaseMetadata);
|
|
||||||
pnCaseMetadata.setLayout(pnCaseMetadataLayout);
|
|
||||||
pnCaseMetadataLayout.setHorizontalGroup(
|
|
||||||
pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createSequentialGroup()
|
|
||||||
.addGap(25, 25, 25)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
|
||||||
.addComponent(lbCaseNumberLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbCreationDateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbCaseNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbCaseUUIDLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(lbCaseNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbCeationDateText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbCaseNumberText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbCaseUUIDText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addContainerGap())
|
|
||||||
);
|
|
||||||
pnCaseMetadataLayout.setVerticalGroup(
|
|
||||||
pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbCaseUUIDLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbCaseUUIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(lbCaseNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbCaseNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(lbCreationDateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbCeationDateText, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addGroup(pnCaseMetadataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(lbCaseNumberLabel)
|
|
||||||
.addComponent(lbCaseNumberText, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addGap(26, 26, 26))
|
|
||||||
);
|
|
||||||
|
|
||||||
pnOrganization.setBorder(javax.swing.BorderFactory.createTitledBorder(null, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.pnOrganization.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbOrganizationNameLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbOrganizationNameLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
comboBoxOrgName.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
comboBoxOrgNameActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbPointOfContactGroupLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbPointOfContactGroupLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbPointOfContactNameLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbPointOfContactNameLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbPointOfContactEmailLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbPointOfContactEmailLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbPointOfContactPhoneLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbPointOfContactPhoneLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(bnNewOrganization, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.bnNewOrganization.text")); // NOI18N
|
|
||||||
bnNewOrganization.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
bnNewOrganizationActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
javax.swing.GroupLayout pnOrganizationLayout = new javax.swing.GroupLayout(pnOrganization);
|
|
||||||
pnOrganization.setLayout(pnOrganizationLayout);
|
|
||||||
pnOrganizationLayout.setHorizontalGroup(
|
|
||||||
pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addGap(25, 25, 25)
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactGroupLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbOrganizationNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
|
||||||
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
|
||||||
.addGap(18, 18, 18)
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(comboBoxOrgName, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addGap(0, 0, Short.MAX_VALUE)
|
|
||||||
.addComponent(bnNewOrganization)))
|
|
||||||
.addContainerGap())
|
|
||||||
);
|
|
||||||
pnOrganizationLayout.setVerticalGroup(
|
|
||||||
pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnOrganizationLayout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(lbOrganizationNameLabel)
|
|
||||||
.addComponent(comboBoxOrgName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
||||||
.addComponent(lbPointOfContactGroupLabel)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(bnNewOrganization)
|
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
);
|
|
||||||
|
|
||||||
pnExaminer.setBorder(javax.swing.BorderFactory.createTitledBorder(null, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.pnExaminer.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbExaminerNameLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbExaminerNameLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
tfExaminerNameText.setEditable(false);
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbExaminerEmailLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbExaminerEmailLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbExaminerPhoneLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbExaminerPhoneLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(lbNotesLabel, org.openide.util.NbBundle.getMessage(EamCaseEditDetailsDialog.class, "EamCaseEditDetailsDialog.lbNotesLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
taNotesText.setColumns(20);
|
|
||||||
taNotesText.setRows(5);
|
|
||||||
jScrollPane2.setViewportView(taNotesText);
|
|
||||||
|
|
||||||
javax.swing.GroupLayout pnExaminerLayout = new javax.swing.GroupLayout(pnExaminer);
|
|
||||||
pnExaminer.setLayout(pnExaminerLayout);
|
|
||||||
pnExaminerLayout.setHorizontalGroup(
|
|
||||||
pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnExaminerLayout.createSequentialGroup()
|
|
||||||
.addGap(28, 28, 28)
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbExaminerNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addGap(25, 25, 25)
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(tfExaminerEmailText)
|
|
||||||
.addComponent(tfExaminerPhoneText)
|
|
||||||
.addComponent(tfExaminerNameText)
|
|
||||||
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE))
|
|
||||||
.addContainerGap())
|
|
||||||
);
|
|
||||||
pnExaminerLayout.setVerticalGroup(
|
|
||||||
pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(pnExaminerLayout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(lbExaminerNameLabel)
|
|
||||||
.addComponent(tfExaminerNameText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(tfExaminerEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbExaminerEmailLabel))
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(tfExaminerPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lbExaminerPhoneLabel))
|
|
||||||
.addGap(24, 24, 24)
|
|
||||||
.addGroup(pnExaminerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(lbNotesLabel)
|
|
||||||
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
);
|
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
|
||||||
getContentPane().setLayout(layout);
|
|
||||||
layout.setHorizontalGroup(
|
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
|
||||||
.addGap(0, 0, Short.MAX_VALUE)
|
|
||||||
.addComponent(bnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(bnClose))
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(pnCaseMetadata, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(pnOrganization, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.addComponent(pnExaminer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
|
||||||
.addContainerGap())
|
|
||||||
);
|
|
||||||
layout.setVerticalGroup(
|
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
|
||||||
.addGap(23, 23, 23)
|
|
||||||
.addComponent(pnCaseMetadata, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(pnOrganization, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(pnExaminer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(bnOk)
|
|
||||||
.addComponent(bnClose))
|
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
);
|
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
|
||||||
|
|
||||||
private void bnOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bnOkActionPerformed
|
|
||||||
if (contentChanged) {
|
|
||||||
updateEamCase();
|
|
||||||
updateDb();
|
|
||||||
}
|
|
||||||
dispose();
|
|
||||||
}//GEN-LAST:event_bnOkActionPerformed
|
|
||||||
|
|
||||||
private void bnNewOrganizationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bnNewOrganizationActionPerformed
|
|
||||||
AddNewOrganizationDialog dialogO = new AddNewOrganizationDialog();
|
|
||||||
// update the combobox options and org data fields
|
|
||||||
if (dialogO.isChanged()) {
|
|
||||||
loadOrganizationData();
|
|
||||||
}
|
|
||||||
}//GEN-LAST:event_bnNewOrganizationActionPerformed
|
|
||||||
|
|
||||||
@SuppressWarnings({"unchecked"})
|
|
||||||
private void comboBoxOrgNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxOrgNameActionPerformed
|
|
||||||
JComboBox<String> cb = (JComboBox<String>) evt.getSource();
|
|
||||||
String orgName = (String) cb.getSelectedItem();
|
|
||||||
if (null == orgName || false == comboboxOrganizationActionListenerActive) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("".equals(orgName)) {
|
|
||||||
selectedOrg = null;
|
|
||||||
lbPointOfContactNameText.setText("");
|
|
||||||
lbPointOfContactEmailText.setText("");
|
|
||||||
lbPointOfContactPhoneText.setText("");
|
|
||||||
contentChanged = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (EamOrganization org : orgs) {
|
|
||||||
if (org.getName().equals(orgName)) {
|
|
||||||
selectedOrg = org;
|
|
||||||
lbPointOfContactNameText.setText(selectedOrg.getPocName());
|
|
||||||
lbPointOfContactEmailText.setText(selectedOrg.getPocEmail());
|
|
||||||
lbPointOfContactPhoneText.setText(selectedOrg.getPocPhone());
|
|
||||||
contentChanged = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}//GEN-LAST:event_comboBoxOrgNameActionPerformed
|
|
||||||
|
|
||||||
private void bnCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bnCloseActionPerformed
|
|
||||||
dispose();
|
|
||||||
}//GEN-LAST:event_bnCloseActionPerformed
|
|
||||||
|
|
||||||
private void loadCaseMetaData() {
|
|
||||||
lbCaseUUIDText.setText(eamCase.getCaseUUID());
|
|
||||||
lbCaseNameText.setText(eamCase.getDisplayName());
|
|
||||||
lbCeationDateText.setText(eamCase.getCreationDate());
|
|
||||||
lbCaseNumberText.setText(eamCase.getCaseNumber());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void loadExaminerData() {
|
|
||||||
tfExaminerNameText.setText(eamCase.getExaminerName());
|
|
||||||
tfExaminerEmailText.setText(eamCase.getExaminerEmail());
|
|
||||||
tfExaminerPhoneText.setText(eamCase.getExaminerPhone());
|
|
||||||
taNotesText.setText(eamCase.getNotes());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void loadOrganizationData() {
|
|
||||||
comboboxOrganizationActionListenerActive = false; // don't fire action listener while loading combobox content
|
|
||||||
comboBoxOrgName.removeAllItems();
|
|
||||||
try {
|
|
||||||
orgs = dbManager.getOrganizations();
|
|
||||||
comboBoxOrgName.addItem(""); // for when a case has a null Org
|
|
||||||
orgs.forEach((org) -> {
|
|
||||||
comboBoxOrgName.addItem(org.getName());
|
|
||||||
});
|
|
||||||
} catch (EamDbException ex) {
|
|
||||||
LOGGER.log(Level.SEVERE, "Failure populating combobox with organizations.", ex);
|
|
||||||
}
|
|
||||||
comboboxOrganizationActionListenerActive = true;
|
|
||||||
|
|
||||||
if (!orgs.isEmpty() && null != eamCase.getOrg()) {
|
|
||||||
selectedOrg = eamCase.getOrg();
|
|
||||||
comboBoxOrgName.setSelectedItem(selectedOrg.getName());
|
|
||||||
lbPointOfContactNameText.setText(selectedOrg.getPocName());
|
|
||||||
lbPointOfContactEmailText.setText(selectedOrg.getPocEmail());
|
|
||||||
lbPointOfContactPhoneText.setText(selectedOrg.getPocPhone());
|
|
||||||
} else {
|
|
||||||
comboBoxOrgName.setSelectedItem("");
|
|
||||||
lbPointOfContactNameText.setText("");
|
|
||||||
lbPointOfContactEmailText.setText("");
|
|
||||||
lbPointOfContactPhoneText.setText("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void loadData() {
|
|
||||||
loadCaseMetaData();
|
|
||||||
loadExaminerData();
|
|
||||||
loadOrganizationData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Save changed value from text fields and text areas into the EamCase
|
|
||||||
* object.
|
|
||||||
*/
|
|
||||||
private void updateEamCase() {
|
|
||||||
eamCase.setOrg(selectedOrg);
|
|
||||||
eamCase.setExaminerName(tfExaminerNameText.getText());
|
|
||||||
eamCase.setExaminerEmail(tfExaminerEmailText.getText());
|
|
||||||
eamCase.setExaminerPhone(tfExaminerPhoneText.getText());
|
|
||||||
eamCase.setNotes(taNotesText.getText());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateDb() {
|
|
||||||
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
|
||||||
|
|
||||||
if (!EamDb.isEnabled()) {
|
|
||||||
LOGGER.log(Level.SEVERE, "Central repository database not enabled"); // NON-NLS
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
dbManager.updateCase(eamCase);
|
|
||||||
} catch (IllegalArgumentException | EamDbException ex) {
|
|
||||||
LOGGER.log(Level.SEVERE, "Error connecting to central repository database", ex); // NON-NLS
|
|
||||||
} finally {
|
|
||||||
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to listen for changes in text areas/boxes. Let the panel know text
|
|
||||||
* content has changed.
|
|
||||||
*/
|
|
||||||
private class TextBoxChangedListener implements DocumentListener {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void changedUpdate(DocumentEvent e) {
|
|
||||||
setChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void insertUpdate(DocumentEvent e) {
|
|
||||||
setChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void removeUpdate(DocumentEvent e) {
|
|
||||||
setChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setChanged() {
|
|
||||||
contentChanged = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
||||||
private javax.swing.JButton bnClose;
|
|
||||||
private javax.swing.JButton bnNewOrganization;
|
|
||||||
private javax.swing.JButton bnOk;
|
|
||||||
private javax.swing.JComboBox<String> comboBoxOrgName;
|
|
||||||
private javax.swing.JScrollPane jScrollPane2;
|
|
||||||
private javax.swing.JLabel lbCaseNameLabel;
|
|
||||||
private javax.swing.JLabel lbCaseNameText;
|
|
||||||
private javax.swing.JLabel lbCaseNumberLabel;
|
|
||||||
private javax.swing.JLabel lbCaseNumberText;
|
|
||||||
private javax.swing.JLabel lbCaseUUIDLabel;
|
|
||||||
private javax.swing.JLabel lbCaseUUIDText;
|
|
||||||
private javax.swing.JLabel lbCeationDateText;
|
|
||||||
private javax.swing.JLabel lbCreationDateLabel;
|
|
||||||
private javax.swing.JLabel lbExaminerEmailLabel;
|
|
||||||
private javax.swing.JLabel lbExaminerNameLabel;
|
|
||||||
private javax.swing.JLabel lbExaminerPhoneLabel;
|
|
||||||
private javax.swing.JLabel lbNotesLabel;
|
|
||||||
private javax.swing.JLabel lbOrganizationNameLabel;
|
|
||||||
private javax.swing.JLabel lbPointOfContactEmailLabel;
|
|
||||||
private javax.swing.JLabel lbPointOfContactEmailText;
|
|
||||||
private javax.swing.JLabel lbPointOfContactGroupLabel;
|
|
||||||
private javax.swing.JLabel lbPointOfContactNameLabel;
|
|
||||||
private javax.swing.JLabel lbPointOfContactNameText;
|
|
||||||
private javax.swing.JLabel lbPointOfContactPhoneLabel;
|
|
||||||
private javax.swing.JLabel lbPointOfContactPhoneText;
|
|
||||||
private javax.swing.JPanel pnCaseMetadata;
|
|
||||||
private javax.swing.JPanel pnExaminer;
|
|
||||||
private javax.swing.JPanel pnOrganization;
|
|
||||||
private javax.swing.JTextArea taNotesText;
|
|
||||||
private javax.swing.JTextField tfExaminerEmailText;
|
|
||||||
private javax.swing.JTextField tfExaminerNameText;
|
|
||||||
private javax.swing.JTextField tfExaminerPhoneText;
|
|
||||||
// End of variables declaration//GEN-END:variables
|
|
||||||
}
|
|
@ -34,7 +34,6 @@ import java.time.LocalDate;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.openide.util.Exceptions;
|
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
|
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
|
@ -313,77 +313,6 @@ public class CaseEventListener implements PropertyChangeListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // CURRENT_CASE
|
} // CURRENT_CASE
|
||||||
// break;
|
|
||||||
//
|
|
||||||
// case NAME: {
|
|
||||||
// // The display name of the case has been changed
|
|
||||||
//
|
|
||||||
// if (!EamDb.isEnabled()) {
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (evt.getNewValue() instanceof String) {
|
|
||||||
// String newName = (String) evt.getNewValue();
|
|
||||||
// try {
|
|
||||||
// // See if the case is in the database. If it is, update the display name.
|
|
||||||
// CorrelationCase existingCase = dbManager.getCaseByUUID(Case.getCurrentCase().getName());
|
|
||||||
//
|
|
||||||
// if (null != existingCase) {
|
|
||||||
// existingCase.setDisplayName(newName);
|
|
||||||
// dbManager.updateCase(existingCase);
|
|
||||||
// }
|
|
||||||
// } catch (EamDbException ex) {
|
|
||||||
// LOGGER.log(Level.SEVERE, "Error connecting to Central Repository database.", ex); //NON-NLS
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } // NAME
|
|
||||||
// break;
|
|
||||||
// case NUMBER: {
|
|
||||||
// // The display name of the case has been changed
|
|
||||||
//
|
|
||||||
// if (!EamDb.isEnabled()) {
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (evt.getNewValue() instanceof String) {
|
|
||||||
// String newNumber = (String) evt.getNewValue();
|
|
||||||
// try {
|
|
||||||
// // See if the case is in the database. If it is, update the display name.
|
|
||||||
// CorrelationCase existingCase = dbManager.getCaseByUUID(Case.getCurrentCase().getName());
|
|
||||||
//
|
|
||||||
// if (null != existingCase) {
|
|
||||||
// existingCase.setCaseNumber(newNumber);
|
|
||||||
// dbManager.updateCase(existingCase);
|
|
||||||
// }
|
|
||||||
// } catch (EamDbException ex) {
|
|
||||||
// LOGGER.log(Level.SEVERE, "Error connecting to Central Repository database.", ex); //NON-NLS
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } // NUMBER
|
|
||||||
// break;
|
|
||||||
// case EXAMINER: {
|
|
||||||
// // The display name of the case has been changed
|
|
||||||
//
|
|
||||||
// if (!EamDb.isEnabled()) {
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (evt.getNewValue() instanceof String) {
|
|
||||||
// String newExaminerName = (String) evt.getNewValue();
|
|
||||||
// try {
|
|
||||||
// // See if the case is in the database. If it is, update the display name.
|
|
||||||
// CorrelationCase existingCase = dbManager.getCaseByUUID(Case.getCurrentCase().getName());
|
|
||||||
//
|
|
||||||
// if (null != existingCase) {
|
|
||||||
// existingCase.setExaminerName(newExaminerName);
|
|
||||||
// dbManager.updateCase(existingCase);
|
|
||||||
// }
|
|
||||||
// } catch (EamDbException ex) {
|
|
||||||
// LOGGER.log(Level.SEVERE, "Error connecting to Central Repository database.", ex); //NON-NLS
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } // EXAMINER
|
|
||||||
// break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,6 @@ package org.sleuthkit.autopsy.centralrepository.eventlisteners;
|
|||||||
|
|
||||||
import java.beans.PropertyChangeListener;
|
import java.beans.PropertyChangeListener;
|
||||||
import org.openide.modules.ModuleInstall;
|
import org.openide.modules.ModuleInstall;
|
||||||
import org.openide.util.actions.CallableSystemAction;
|
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
|||||||
public class AddNewOrganizationDialog extends javax.swing.JDialog {
|
public class AddNewOrganizationDialog extends javax.swing.JDialog {
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger.getLogger(AddNewOrganizationDialog.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(AddNewOrganizationDialog.class.getName());
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Collection<JTextField> textBoxes;
|
private final Collection<JTextField> textBoxes;
|
||||||
private final TextBoxChangedListener textBoxChangedListener;
|
private final TextBoxChangedListener textBoxChangedListener;
|
||||||
|
@ -75,34 +75,4 @@ ImportHashDatabaseDialog.lbInstructions.text=Choose an .idx file to import into
|
|||||||
ImportHashDatabaseDialog.lbFilePath.text=File Path:
|
ImportHashDatabaseDialog.lbFilePath.text=File Path:
|
||||||
ImportHashDatabaseDialog.tfFilePath.text=
|
ImportHashDatabaseDialog.tfFilePath.text=
|
||||||
EamDbSettingsDialog.lbDatabaseDesc.text=Database File:
|
EamDbSettingsDialog.lbDatabaseDesc.text=Database File:
|
||||||
EamDbSettingsDialog.lbFullDbPath.text=jLabel2
|
EamDbSettingsDialog.lbFullDbPath.text=
|
||||||
CaseOrganizationPanel.bnNewOrganization.text=Manage Organizations
|
|
||||||
CaseOrganizationPanel.lbPointOfContactPhoneLabel.text=Phone:
|
|
||||||
CaseOrganizationPanel.lbPointOfContactEmailLabel.text=Email:
|
|
||||||
CaseOrganizationPanel.lbPointOfContactNameLabel.text=Name:
|
|
||||||
CaseOrganizationPanel.lbPointOfContactGroupLabel.text=Point of Contact:
|
|
||||||
CaseOrganizationPanel.lbOrganizationNameLabel.text=Organization Name:
|
|
||||||
ExaminerDetailsPanel.lbExaminerNameLabel.text=Name:
|
|
||||||
ExaminerDetailsPanel.lbNotesLabel.text=Notes:
|
|
||||||
ExaminerDetailsPanel.lbExaminerPhoneLabel.text=Phone:
|
|
||||||
ExaminerDetailsPanel.lbExaminerEmailLabel.text=Email:
|
|
||||||
ManageOrganizationsDialog.jLabel2.text=Point of Contact Name:
|
|
||||||
ManageOrganizationsDialog.jLabel1.text=Organizations
|
|
||||||
ManageOrganizationsDialog.jButton3.text=Close
|
|
||||||
ManageOrganizationsDialog.jLabel8.text=Organization Name:
|
|
||||||
ManageOrganizationsDialog.jButton2.text=Delete
|
|
||||||
ManageOrganizationsDialog.jButton1.text=New
|
|
||||||
ManageOrganizationsDialog.jLabel6.text=Point of Contact Email:
|
|
||||||
ManageOrganizationsDialog.jLabel4.text=Point of Contact Phone:
|
|
||||||
ManageOrganizationsDialog.jTextArea1.text=Organizations are used to provide additional contact information for the content they are associated with.
|
|
||||||
ManageOrganizationsDialog.jButton4.text=Edit
|
|
||||||
ManageOrganizationsDialog.jLabel3.text=Organization Details
|
|
||||||
ManageOrganizationsDialog.pocNameTextField.text=
|
|
||||||
GlobalSettingsPanel.organizationPanel.border.title=Organizations
|
|
||||||
GlobalSettingsPanel.manageOrganizationButton.text=Manage Organizations
|
|
||||||
GlobalSettingsPanel.organizationTextArea.text=Organization information can be tracked in the central repository.
|
|
||||||
ExaminerDetailsPanel.lbNotesLabel.text_1=Notes:
|
|
||||||
ExaminerDetailsPanel.lbExaminerPhoneLabel.text_1=Phone:
|
|
||||||
ExaminerDetailsPanel.lbExaminerEmailLabel.text_1=Email:
|
|
||||||
ExaminerDetailsPanel.lbExaminerNameLabel.text_1=Name:
|
|
||||||
ExaminerDetailsPanel.pnExaminer.border.title=Examiner Details
|
|
||||||
|
@ -41,7 +41,7 @@ public final class GlobalSettingsPanel extends IngestModuleGlobalSettingsPanel i
|
|||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final Logger LOGGER = Logger.getLogger(GlobalSettingsPanel.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(GlobalSettingsPanel.class.getName());
|
||||||
|
|
||||||
private final IngestJobEventPropertyChangeListener ingestJobEventListener;
|
private final IngestJobEventPropertyChangeListener ingestJobEventListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,12 +61,17 @@ public final class GlobalSettingsPanel extends IngestModuleGlobalSettingsPanel i
|
|||||||
"GlobalSettingsPanel.pnCorrelationProperties.border.title=Correlation Properties",
|
"GlobalSettingsPanel.pnCorrelationProperties.border.title=Correlation Properties",
|
||||||
"GlobalSettingsPanel.lbCentralRepository.text=A central repository allows you to correlate files and results between cases.",
|
"GlobalSettingsPanel.lbCentralRepository.text=A central repository allows you to correlate files and results between cases.",
|
||||||
"GlobalSettingsPanel.manageTagsTextArea.text=Configure which tag names are associated with notable items. "
|
"GlobalSettingsPanel.manageTagsTextArea.text=Configure which tag names are associated with notable items. "
|
||||||
+ "When these tags are used, the file or result will be recorded in the central repository. "
|
+ "When these tags are used, the file or result will be recorded in the central repository. "
|
||||||
+ "If that file or result is seen again in future cases, it will be flagged.",
|
+ "If that file or result is seen again in future cases, it will be flagged.",
|
||||||
"GlobalSettingsPanel.correlationPropertiesTextArea.text=Choose which file and result properties to store in the central repository for later correlation."})
|
"GlobalSettingsPanel.correlationPropertiesTextArea.text=Choose which file and result properties to store in the central repository for later correlation.",
|
||||||
|
"GlobalSettingsPanel.organizationPanel.border.title=Organizations",
|
||||||
|
"GlobalSettingsPanel.manageOrganizationButton.text=Manage Organizations",
|
||||||
|
"GlobalSettingsPanel.organizationTextArea.text=Organization information can be tracked in the central repository"
|
||||||
|
})
|
||||||
|
|
||||||
private void customizeComponents() {
|
private void customizeComponents() {
|
||||||
setName(Bundle.GlobalSettingsPanel_title());
|
setName(Bundle.GlobalSettingsPanel_title());
|
||||||
|
|
||||||
// The hash set functions of central repo are not being included in the current release.
|
// The hash set functions of central repo are not being included in the current release.
|
||||||
bnImportDatabase.setVisible(false);
|
bnImportDatabase.setVisible(false);
|
||||||
}
|
}
|
||||||
@ -472,6 +477,7 @@ public final class GlobalSettingsPanel extends IngestModuleGlobalSettingsPanel i
|
|||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
IngestManager.getInstance().removeIngestJobEventListener(ingestJobEventListener);
|
IngestManager.getInstance().removeIngestJobEventListener(ingestJobEventListener);
|
||||||
super.finalize();
|
super.finalize();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -556,7 +562,7 @@ public final class GlobalSettingsPanel extends IngestModuleGlobalSettingsPanel i
|
|||||||
* @return True
|
* @return True
|
||||||
*/
|
*/
|
||||||
private boolean enableButtonSubComponents(Boolean enable) {
|
private boolean enableButtonSubComponents(Boolean enable) {
|
||||||
boolean ingestRunning = IngestManager.getInstance().isIngestRunning();
|
boolean ingestRunning = IngestManager.getInstance().isIngestRunning();
|
||||||
pnCorrelationProperties.setEnabled(enable && !ingestRunning);
|
pnCorrelationProperties.setEnabled(enable && !ingestRunning);
|
||||||
pnTagManagement.setEnabled(enable && !ingestRunning);
|
pnTagManagement.setEnabled(enable && !ingestRunning);
|
||||||
bnManageTypes.setEnabled(enable && !ingestRunning);
|
bnManageTypes.setEnabled(enable && !ingestRunning);
|
||||||
|
@ -2,15 +2,9 @@
|
|||||||
|
|
||||||
<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
|
<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.ComponentChooserEditor">
|
|
||||||
<ComponentRef name="default"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[545, 450]"/>
|
<Dimension value="[545, 450]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
||||||
<Dimension value="[545, 450]"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
</Properties>
|
||||||
<SyntheticProperties>
|
<SyntheticProperties>
|
||||||
<SyntheticProperty name="formSizePolicy" type="int" value="2"/>
|
<SyntheticProperty name="formSizePolicy" type="int" value="2"/>
|
||||||
@ -32,7 +26,7 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
|
||||||
<Component id="jScrollPane1" max="32767" attributes="0"/>
|
<Component id="manageOrganizationsScrollPane" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -40,13 +34,13 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||||
<Component id="jScrollPane1" max="32767" attributes="0"/>
|
<Component id="manageOrganizationsScrollPane" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
|
<Container class="javax.swing.JScrollPane" name="manageOrganizationsScrollPane">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="null"/>
|
<Dimension value="null"/>
|
||||||
@ -58,11 +52,8 @@
|
|||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Container class="javax.swing.JPanel" name="jPanel1">
|
<Container class="javax.swing.JPanel" name="manageOrganizationsPanel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
||||||
<Dimension value="null"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[527, 407]"/>
|
<Dimension value="[527, 407]"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -74,16 +65,16 @@
|
|||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jScrollPane4" min="-2" pref="225" max="-2" attributes="0"/>
|
<Component id="orgDescriptionScrollPane" min="-2" pref="225" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel1" alignment="0" min="-2" pref="73" max="-2" attributes="0"/>
|
<Component id="orgListLabel" alignment="0" min="-2" pref="73" max="-2" attributes="0"/>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="jButton1" linkSize="1" min="-2" pref="70" max="-2" attributes="0"/>
|
<Component id="newButton" linkSize="1" min="-2" pref="70" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jButton4" linkSize="1" min="-2" max="-2" attributes="0"/>
|
<Component id="editButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton2" linkSize="1" min="-2" max="-2" attributes="0"/>
|
<Component id="deleteButton" linkSize="1" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="jScrollPane2" alignment="0" min="-2" pref="224" max="-2" attributes="0"/>
|
<Component id="orgListScrollPane" alignment="0" min="-2" pref="224" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="jSeparator1" min="-2" max="-2" attributes="0"/>
|
<Component id="jSeparator1" min="-2" max="-2" attributes="0"/>
|
||||||
@ -91,20 +82,20 @@
|
|||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace type="unrelated" pref="217" max="32767" attributes="0"/>
|
<EmptySpace type="unrelated" max="32767" attributes="0"/>
|
||||||
<Component id="jButton3" min="-2" max="-2" attributes="0"/>
|
<Component id="closeButton" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="1" max="-2" attributes="0">
|
<Group type="103" groupAlignment="1" max="-2" attributes="0">
|
||||||
<Component id="jLabel2" alignment="0" max="32767" attributes="0"/>
|
<Component id="pocNameLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="jLabel8" alignment="0" max="32767" attributes="0"/>
|
<Component id="orgNameLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="jLabel4" alignment="0" max="32767" attributes="0"/>
|
<Component id="pocPhoneLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="jLabel6" alignment="0" max="32767" attributes="0"/>
|
<Component id="pocEmailLabel" alignment="0" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="pocNameTextField" alignment="0" pref="128" max="32767" attributes="0"/>
|
<Component id="pocNameTextField" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="pocPhoneTextField" alignment="0" max="32767" attributes="0"/>
|
<Component id="pocPhoneTextField" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="pocEmailTextField" alignment="1" max="32767" attributes="0"/>
|
<Component id="pocEmailTextField" alignment="1" max="32767" attributes="0"/>
|
||||||
<Component id="orgNameTextField" max="32767" attributes="0"/>
|
<Component id="orgNameTextField" max="32767" attributes="0"/>
|
||||||
@ -115,7 +106,7 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel3" min="-2" pref="115" max="-2" attributes="0"/>
|
<Component id="orgDetailsLabel" min="-2" pref="115" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@ -128,42 +119,42 @@
|
|||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
|
<Component id="orgDetailsLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel8" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="orgNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="orgNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="orgNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="pocNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pocNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pocNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="pocPhoneTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pocPhoneTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pocPhoneLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="pocEmailTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pocEmailTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel6" alignment="3" min="-2" pref="20" max="-2" attributes="0"/>
|
<Component id="pocEmailLabel" alignment="3" min="-2" pref="20" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="235" max="32767" attributes="0"/>
|
<EmptySpace pref="235" max="32767" attributes="0"/>
|
||||||
<Component id="jButton3" min="-2" max="-2" attributes="0"/>
|
<Component id="closeButton" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="jSeparator1" max="32767" attributes="0"/>
|
<Component id="jSeparator1" max="32767" attributes="0"/>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="jScrollPane4" min="-2" max="-2" attributes="0"/>
|
<Component id="orgDescriptionScrollPane" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
<Component id="orgListLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jScrollPane2" pref="288" max="32767" attributes="0"/>
|
<Component id="orgListScrollPane" pref="288" max="32767" attributes="0"/>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="newButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="deleteButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="editButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@ -173,14 +164,14 @@
|
|||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
|
<Container class="javax.swing.JScrollPane" name="orgListScrollPane">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JList" name="jList1">
|
<Component class="javax.swing.JList" name="organizationList">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
|
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
|
||||||
<StringArray count="0"/>
|
<StringArray count="0"/>
|
||||||
@ -193,11 +184,11 @@
|
|||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JScrollPane" name="jScrollPane4">
|
<Container class="javax.swing.JScrollPane" name="orgDescriptionScrollPane">
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JTextArea" name="jTextArea1">
|
<Component class="javax.swing.JTextArea" name="orgDescriptionTextArea">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="editable" type="boolean" value="false"/>
|
<Property name="editable" type="boolean" value="false"/>
|
||||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
@ -210,53 +201,53 @@
|
|||||||
<Property name="lineWrap" type="boolean" value="true"/>
|
<Property name="lineWrap" type="boolean" value="true"/>
|
||||||
<Property name="rows" type="int" value="3"/>
|
<Property name="rows" type="int" value="3"/>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jTextArea1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.orgDescriptionTextArea.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="wrapStyleWord" type="boolean" value="true"/>
|
<Property name="wrapStyleWord" type="boolean" value="true"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Component class="javax.swing.JButton" name="jButton1">
|
<Component class="javax.swing.JButton" name="newButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.newButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 6, 2, 6]"/>
|
<Insets value="[2, 6, 2, 6]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="newButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton2">
|
<Component class="javax.swing.JButton" name="deleteButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jButton2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.deleteButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 6, 2, 6]"/>
|
<Insets value="[2, 6, 2, 6]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton3">
|
<Component class="javax.swing.JButton" name="closeButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jButton3.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.closeButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton3ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="closeButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel1">
|
<Component class="javax.swing.JLabel" name="orgListLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.orgListLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
@ -265,31 +256,31 @@
|
|||||||
<Property name="orientation" type="int" value="1"/>
|
<Property name="orientation" type="int" value="1"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel2">
|
<Component class="javax.swing.JLabel" name="pocNameLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.pocNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel4">
|
<Component class="javax.swing.JLabel" name="pocPhoneLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel4.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.pocPhoneLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel6">
|
<Component class="javax.swing.JLabel" name="pocEmailLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel6.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.pocEmailLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel8">
|
<Component class="javax.swing.JLabel" name="orgNameLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel8.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.orgNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
@ -297,16 +288,10 @@
|
|||||||
<Properties>
|
<Properties>
|
||||||
<Property name="editable" type="boolean" value="false"/>
|
<Property name="editable" type="boolean" value="false"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="orgNameTextFieldActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="pocNameTextField">
|
<Component class="javax.swing.JTextField" name="pocNameTextField">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="editable" type="boolean" value="false"/>
|
<Property name="editable" type="boolean" value="false"/>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.pocNameTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="pocPhoneTextField">
|
<Component class="javax.swing.JTextField" name="pocPhoneTextField">
|
||||||
@ -318,24 +303,21 @@
|
|||||||
<Properties>
|
<Properties>
|
||||||
<Property name="editable" type="boolean" value="false"/>
|
<Property name="editable" type="boolean" value="false"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="pocEmailTextFieldActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton4">
|
<Component class="javax.swing.JButton" name="editButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jButton4.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.editButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton4ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="editButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel3">
|
<Component class="javax.swing.JLabel" name="orgDetailsLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.jLabel3.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/centralrepository/optionspanel/Bundle.properties" key="ManageOrganizationsDialog.orgDetailsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
|
@ -1,7 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
* Central Repository
|
||||||
* To change this template file, choose Tools | Templates
|
*
|
||||||
* and open the template in the editor.
|
* Copyright 2015-2017 Basis Technology Corp.
|
||||||
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.centralrepository.optionspanel;
|
package org.sleuthkit.autopsy.centralrepository.optionspanel;
|
||||||
|
|
||||||
@ -16,35 +29,33 @@ import javax.swing.JFrame;
|
|||||||
import javax.swing.event.ListSelectionEvent;
|
import javax.swing.event.ListSelectionEvent;
|
||||||
import javax.swing.event.ListSelectionListener;
|
import javax.swing.event.ListSelectionListener;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
|
import org.openide.util.NbBundle.Messages;
|
||||||
import org.openide.windows.WindowManager;
|
import org.openide.windows.WindowManager;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
||||||
|
|
||||||
/**
|
public final class ManageOrganizationsDialog extends JDialog {
|
||||||
*
|
|
||||||
* @author wschaefer
|
|
||||||
*/
|
|
||||||
public class ManageOrganizationsDialog extends JDialog {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private EamDb dbManager;
|
private EamDb dbManager;
|
||||||
private EamOrganization newOrg;
|
private EamOrganization newOrg;
|
||||||
private final DefaultListModel<EamOrganization> rulesListModel = new DefaultListModel<>();
|
private final DefaultListModel<EamOrganization> rulesListModel = new DefaultListModel<>();
|
||||||
|
@Messages({"ManageOrganizationsDialog.title.text=Manage Organizations"})
|
||||||
/**
|
/**
|
||||||
* Creates new form ManageOrganizationsPanel
|
* Creates new form ManageOrganizationsPanel
|
||||||
*/
|
*/
|
||||||
public ManageOrganizationsDialog() {
|
public ManageOrganizationsDialog() {
|
||||||
super((JFrame) WindowManager.getDefault().getMainWindow(),
|
super((JFrame) WindowManager.getDefault().getMainWindow(),
|
||||||
"Manage Organizations Dialog",
|
Bundle.ManageOrganizationsDialog_title_text(),
|
||||||
true); // NON-NLS
|
true); // NON-NLS
|
||||||
initComponents();
|
initComponents();
|
||||||
try {
|
try {
|
||||||
this.dbManager = EamDb.getInstance();
|
this.dbManager = EamDb.getInstance();
|
||||||
jList1.setCellRenderer(new DefaultListCellRenderer() {
|
organizationList.setCellRenderer(new DefaultListCellRenderer() {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component getListCellRendererComponent(javax.swing.JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
|
public Component getListCellRendererComponent(javax.swing.JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
|
||||||
Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
||||||
@ -52,8 +63,8 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
jList1.setModel(rulesListModel);
|
organizationList.setModel(rulesListModel);
|
||||||
jList1.addListSelectionListener(new OrganizationListSelectionListener());
|
organizationList.addListSelectionListener(new OrganizationListSelectionListener());
|
||||||
populateList();
|
populateList();
|
||||||
newOrg = null;
|
newOrg = null;
|
||||||
} catch (EamDbException ex) {
|
} catch (EamDbException ex) {
|
||||||
@ -81,20 +92,31 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (orgs.contains(selected)) {
|
if (orgs.contains(selected)) {
|
||||||
jList1.setSelectedValue(selected, true);
|
organizationList.setSelectedValue(selected, true);
|
||||||
} else {
|
} else {
|
||||||
jList1.setSelectedIndex(0);
|
organizationList.setSelectedIndex(0);
|
||||||
}
|
}
|
||||||
jList1.validate();
|
organizationList.validate();
|
||||||
jList1.repaint();
|
organizationList.repaint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void populateList() throws EamDbException {
|
private void populateList() throws EamDbException {
|
||||||
EamOrganization selected = jList1.getSelectedValue();
|
EamOrganization selected = organizationList.getSelectedValue();
|
||||||
populateListAndSelect(selected);
|
populateListAndSelect(selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({"ManageOrganizationsDialog.pocNameLabel.text=Point of Contact Name:",
|
||||||
|
"ManageOrganizationsDialog.deleteButton.text=Delete",
|
||||||
|
"ManageOrganizationsDialog.newButton.text=New",
|
||||||
|
"ManageOrganizationsDialog.closeButton.text=Close",
|
||||||
|
"ManageOrganizationsDialog.orgNameLabel.text=Organization Name:",
|
||||||
|
"ManageOrganizationsDialog.pocEmailLabel.text=Point of Contact Email:",
|
||||||
|
"ManageOrganizationsDialog.editButton.text=Edit",
|
||||||
|
"ManageOrganizationsDialog.pocPhoneLabel.text=Point of Contact Phone:",
|
||||||
|
"ManageOrganizationsDialog.orgDescriptionTextArea.text=Organizations are used to provide additional contact information for the content they are associated with.",
|
||||||
|
"ManageOrganizationsDialog.orgListLabel.text=Organizations",
|
||||||
|
"ManageOrganizationsDialog.orgDetailsLabel.text=Organization Details"})
|
||||||
/**
|
/**
|
||||||
* This method is called from within the constructor to initialize the form.
|
* This method is called from within the constructor to initialize the form.
|
||||||
* WARNING: Do NOT modify this code. The content of this method is always
|
* WARNING: Do NOT modify this code. The content of this method is always
|
||||||
@ -104,200 +126,187 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
|
|
||||||
jScrollPane1 = new javax.swing.JScrollPane();
|
manageOrganizationsScrollPane = new javax.swing.JScrollPane();
|
||||||
jPanel1 = new javax.swing.JPanel();
|
manageOrganizationsPanel = new javax.swing.JPanel();
|
||||||
jScrollPane2 = new javax.swing.JScrollPane();
|
orgListScrollPane = new javax.swing.JScrollPane();
|
||||||
jList1 = new javax.swing.JList<>();
|
organizationList = new javax.swing.JList<>();
|
||||||
jScrollPane4 = new javax.swing.JScrollPane();
|
orgDescriptionScrollPane = new javax.swing.JScrollPane();
|
||||||
jTextArea1 = new javax.swing.JTextArea();
|
orgDescriptionTextArea = new javax.swing.JTextArea();
|
||||||
jButton1 = new javax.swing.JButton();
|
newButton = new javax.swing.JButton();
|
||||||
jButton2 = new javax.swing.JButton();
|
deleteButton = new javax.swing.JButton();
|
||||||
jButton3 = new javax.swing.JButton();
|
closeButton = new javax.swing.JButton();
|
||||||
jLabel1 = new javax.swing.JLabel();
|
orgListLabel = new javax.swing.JLabel();
|
||||||
jSeparator1 = new javax.swing.JSeparator();
|
jSeparator1 = new javax.swing.JSeparator();
|
||||||
jLabel2 = new javax.swing.JLabel();
|
pocNameLabel = new javax.swing.JLabel();
|
||||||
jLabel4 = new javax.swing.JLabel();
|
pocPhoneLabel = new javax.swing.JLabel();
|
||||||
jLabel6 = new javax.swing.JLabel();
|
pocEmailLabel = new javax.swing.JLabel();
|
||||||
jLabel8 = new javax.swing.JLabel();
|
orgNameLabel = new javax.swing.JLabel();
|
||||||
orgNameTextField = new javax.swing.JTextField();
|
orgNameTextField = new javax.swing.JTextField();
|
||||||
pocNameTextField = new javax.swing.JTextField();
|
pocNameTextField = new javax.swing.JTextField();
|
||||||
pocPhoneTextField = new javax.swing.JTextField();
|
pocPhoneTextField = new javax.swing.JTextField();
|
||||||
pocEmailTextField = new javax.swing.JTextField();
|
pocEmailTextField = new javax.swing.JTextField();
|
||||||
jButton4 = new javax.swing.JButton();
|
editButton = new javax.swing.JButton();
|
||||||
jLabel3 = new javax.swing.JLabel();
|
orgDetailsLabel = new javax.swing.JLabel();
|
||||||
|
|
||||||
setMinimumSize(new java.awt.Dimension(545, 450));
|
setMinimumSize(new java.awt.Dimension(545, 450));
|
||||||
setPreferredSize(new java.awt.Dimension(545, 450));
|
|
||||||
|
|
||||||
jScrollPane1.setMinimumSize(null);
|
manageOrganizationsScrollPane.setMinimumSize(null);
|
||||||
jScrollPane1.setPreferredSize(new java.awt.Dimension(535, 415));
|
manageOrganizationsScrollPane.setPreferredSize(new java.awt.Dimension(535, 415));
|
||||||
|
|
||||||
jPanel1.setMinimumSize(null);
|
manageOrganizationsPanel.setPreferredSize(new java.awt.Dimension(527, 407));
|
||||||
jPanel1.setPreferredSize(new java.awt.Dimension(527, 407));
|
|
||||||
|
|
||||||
jList1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
|
organizationList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
|
||||||
jScrollPane2.setViewportView(jList1);
|
orgListScrollPane.setViewportView(organizationList);
|
||||||
|
|
||||||
jTextArea1.setEditable(false);
|
orgDescriptionTextArea.setEditable(false);
|
||||||
jTextArea1.setBackground(new java.awt.Color(240, 240, 240));
|
orgDescriptionTextArea.setBackground(new java.awt.Color(240, 240, 240));
|
||||||
jTextArea1.setColumns(20);
|
orgDescriptionTextArea.setColumns(20);
|
||||||
jTextArea1.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
|
orgDescriptionTextArea.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
|
||||||
jTextArea1.setLineWrap(true);
|
orgDescriptionTextArea.setLineWrap(true);
|
||||||
jTextArea1.setRows(3);
|
orgDescriptionTextArea.setRows(3);
|
||||||
jTextArea1.setText(org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jTextArea1.text")); // NOI18N
|
orgDescriptionTextArea.setText(org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.orgDescriptionTextArea.text")); // NOI18N
|
||||||
jTextArea1.setWrapStyleWord(true);
|
orgDescriptionTextArea.setWrapStyleWord(true);
|
||||||
jScrollPane4.setViewportView(jTextArea1);
|
orgDescriptionScrollPane.setViewportView(orgDescriptionTextArea);
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jButton1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(newButton, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.newButton.text")); // NOI18N
|
||||||
jButton1.setMargin(new java.awt.Insets(2, 6, 2, 6));
|
newButton.setMargin(new java.awt.Insets(2, 6, 2, 6));
|
||||||
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
newButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton1ActionPerformed(evt);
|
newButtonActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton2, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jButton2.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(deleteButton, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.deleteButton.text")); // NOI18N
|
||||||
jButton2.setMargin(new java.awt.Insets(2, 6, 2, 6));
|
deleteButton.setMargin(new java.awt.Insets(2, 6, 2, 6));
|
||||||
jButton2.addActionListener(new java.awt.event.ActionListener() {
|
deleteButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton2ActionPerformed(evt);
|
deleteButtonActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jButton3.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(closeButton, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.closeButton.text")); // NOI18N
|
||||||
jButton3.addActionListener(new java.awt.event.ActionListener() {
|
closeButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton3ActionPerformed(evt);
|
closeButtonActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(orgListLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.orgListLabel.text")); // NOI18N
|
||||||
|
|
||||||
jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
|
jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel2.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(pocNameLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.pocNameLabel.text")); // NOI18N
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel4.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(pocPhoneLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.pocPhoneLabel.text")); // NOI18N
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel6.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(pocEmailLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.pocEmailLabel.text")); // NOI18N
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel8.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(orgNameLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.orgNameLabel.text")); // NOI18N
|
||||||
|
|
||||||
orgNameTextField.setEditable(false);
|
orgNameTextField.setEditable(false);
|
||||||
orgNameTextField.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
orgNameTextFieldActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
pocNameTextField.setEditable(false);
|
pocNameTextField.setEditable(false);
|
||||||
pocNameTextField.setText(org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.pocNameTextField.text")); // NOI18N
|
|
||||||
|
|
||||||
pocPhoneTextField.setEditable(false);
|
pocPhoneTextField.setEditable(false);
|
||||||
|
|
||||||
pocEmailTextField.setEditable(false);
|
pocEmailTextField.setEditable(false);
|
||||||
pocEmailTextField.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(editButton, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.editButton.text")); // NOI18N
|
||||||
|
editButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
pocEmailTextFieldActionPerformed(evt);
|
editButtonActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton4, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jButton4.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(orgDetailsLabel, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.orgDetailsLabel.text")); // NOI18N
|
||||||
jButton4.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
jButton4ActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(ManageOrganizationsDialog.class, "ManageOrganizationsDialog.jLabel3.text")); // NOI18N
|
javax.swing.GroupLayout manageOrganizationsPanelLayout = new javax.swing.GroupLayout(manageOrganizationsPanel);
|
||||||
|
manageOrganizationsPanel.setLayout(manageOrganizationsPanelLayout);
|
||||||
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
|
manageOrganizationsPanelLayout.setHorizontalGroup(
|
||||||
jPanel1.setLayout(jPanel1Layout);
|
manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
jPanel1Layout.setHorizontalGroup(
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(orgDescriptionScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(orgListLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jButton4)
|
.addComponent(editButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jButton2))
|
.addComponent(deleteButton))
|
||||||
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(orgListScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 217, Short.MAX_VALUE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(jButton3))
|
.addComponent(closeButton))
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addGap(29, 29, 29)
|
.addGap(29, 29, 29)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
||||||
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(pocNameLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(orgNameLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(pocPhoneLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(pocEmailLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(pocNameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)
|
.addComponent(pocNameTextField)
|
||||||
.addComponent(pocPhoneTextField)
|
.addComponent(pocPhoneTextField)
|
||||||
.addComponent(pocEmailTextField, javax.swing.GroupLayout.Alignment.TRAILING)
|
.addComponent(pocEmailTextField, javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(orgNameTextField))))
|
.addComponent(orgNameTextField))))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(orgDetailsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
||||||
);
|
);
|
||||||
|
|
||||||
jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2, jButton4});
|
manageOrganizationsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {deleteButton, editButton, newButton});
|
||||||
|
|
||||||
jPanel1Layout.setVerticalGroup(
|
manageOrganizationsPanelLayout.setVerticalGroup(
|
||||||
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addComponent(jLabel3)
|
.addComponent(orgDetailsLabel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel8)
|
.addComponent(orgNameLabel)
|
||||||
.addComponent(orgNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(orgNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(pocNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(pocNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel2))
|
.addComponent(pocNameLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(pocPhoneTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(pocPhoneTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel4))
|
.addComponent(pocPhoneLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(pocEmailTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(pocEmailTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(pocEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 235, Short.MAX_VALUE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 235, Short.MAX_VALUE)
|
||||||
.addComponent(jButton3))
|
.addComponent(closeButton))
|
||||||
.addComponent(jSeparator1)
|
.addComponent(jSeparator1)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(manageOrganizationsPanelLayout.createSequentialGroup()
|
||||||
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(orgDescriptionScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jLabel1)
|
.addComponent(orgListLabel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)
|
.addComponent(orgListScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(manageOrganizationsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jButton1)
|
.addComponent(newButton)
|
||||||
.addComponent(jButton2)
|
.addComponent(deleteButton)
|
||||||
.addComponent(jButton4))))
|
.addComponent(editButton))))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
jScrollPane1.setViewportView(jPanel1);
|
manageOrganizationsScrollPane.setViewportView(manageOrganizationsPanel);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
||||||
getContentPane().setLayout(layout);
|
getContentPane().setLayout(layout);
|
||||||
@ -305,29 +314,25 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
||||||
.addGap(0, 0, 0)
|
.addGap(0, 0, 0)
|
||||||
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(manageOrganizationsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
||||||
.addGap(0, 0, 0)
|
.addGap(0, 0, 0)
|
||||||
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(manageOrganizationsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
|
private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteButtonActionPerformed
|
||||||
// TODO add your handling code here:
|
//WJS-TODO implement delete
|
||||||
}//GEN-LAST:event_jButton2ActionPerformed
|
}//GEN-LAST:event_deleteButtonActionPerformed
|
||||||
|
|
||||||
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
|
private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed
|
||||||
dispose();
|
dispose();
|
||||||
}//GEN-LAST:event_jButton3ActionPerformed
|
}//GEN-LAST:event_closeButtonActionPerformed
|
||||||
|
|
||||||
private void pocEmailTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pocEmailTextFieldActionPerformed
|
private void newButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newButtonActionPerformed
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_pocEmailTextFieldActionPerformed
|
|
||||||
|
|
||||||
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
|
||||||
AddNewOrganizationDialog dialogO = new AddNewOrganizationDialog();
|
AddNewOrganizationDialog dialogO = new AddNewOrganizationDialog();
|
||||||
if (dialogO.isChanged()) {
|
if (dialogO.isChanged()) {
|
||||||
try {
|
try {
|
||||||
@ -337,14 +342,10 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_jButton1ActionPerformed
|
}//GEN-LAST:event_newButtonActionPerformed
|
||||||
|
|
||||||
private void orgNameTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orgNameTextFieldActionPerformed
|
private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed
|
||||||
// TODO add your handling code here:
|
EamOrganization orgToEdit = organizationList.getSelectedValue();
|
||||||
}//GEN-LAST:event_orgNameTextFieldActionPerformed
|
|
||||||
|
|
||||||
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
|
|
||||||
EamOrganization orgToEdit = jList1.getSelectedValue();
|
|
||||||
AddNewOrganizationDialog dialogO = new AddNewOrganizationDialog(orgToEdit);
|
AddNewOrganizationDialog dialogO = new AddNewOrganizationDialog(orgToEdit);
|
||||||
if (dialogO.isChanged()) {
|
if (dialogO.isChanged()) {
|
||||||
try {
|
try {
|
||||||
@ -354,30 +355,30 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_jButton4ActionPerformed
|
}//GEN-LAST:event_editButtonActionPerformed
|
||||||
|
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JButton jButton1;
|
private javax.swing.JButton closeButton;
|
||||||
private javax.swing.JButton jButton2;
|
private javax.swing.JButton deleteButton;
|
||||||
private javax.swing.JButton jButton3;
|
private javax.swing.JButton editButton;
|
||||||
private javax.swing.JButton jButton4;
|
|
||||||
private javax.swing.JLabel jLabel1;
|
|
||||||
private javax.swing.JLabel jLabel2;
|
|
||||||
private javax.swing.JLabel jLabel3;
|
|
||||||
private javax.swing.JLabel jLabel4;
|
|
||||||
private javax.swing.JLabel jLabel6;
|
|
||||||
private javax.swing.JLabel jLabel8;
|
|
||||||
private javax.swing.JList<EamOrganization> jList1;
|
|
||||||
private javax.swing.JPanel jPanel1;
|
|
||||||
private javax.swing.JScrollPane jScrollPane1;
|
|
||||||
private javax.swing.JScrollPane jScrollPane2;
|
|
||||||
private javax.swing.JScrollPane jScrollPane4;
|
|
||||||
private javax.swing.JSeparator jSeparator1;
|
private javax.swing.JSeparator jSeparator1;
|
||||||
private javax.swing.JTextArea jTextArea1;
|
private javax.swing.JPanel manageOrganizationsPanel;
|
||||||
|
private javax.swing.JScrollPane manageOrganizationsScrollPane;
|
||||||
|
private javax.swing.JButton newButton;
|
||||||
|
private javax.swing.JScrollPane orgDescriptionScrollPane;
|
||||||
|
private javax.swing.JTextArea orgDescriptionTextArea;
|
||||||
|
private javax.swing.JLabel orgDetailsLabel;
|
||||||
|
private javax.swing.JLabel orgListLabel;
|
||||||
|
private javax.swing.JScrollPane orgListScrollPane;
|
||||||
|
private javax.swing.JLabel orgNameLabel;
|
||||||
private javax.swing.JTextField orgNameTextField;
|
private javax.swing.JTextField orgNameTextField;
|
||||||
|
private javax.swing.JList<EamOrganization> organizationList;
|
||||||
|
private javax.swing.JLabel pocEmailLabel;
|
||||||
private javax.swing.JTextField pocEmailTextField;
|
private javax.swing.JTextField pocEmailTextField;
|
||||||
|
private javax.swing.JLabel pocNameLabel;
|
||||||
private javax.swing.JTextField pocNameTextField;
|
private javax.swing.JTextField pocNameTextField;
|
||||||
|
private javax.swing.JLabel pocPhoneLabel;
|
||||||
private javax.swing.JTextField pocPhoneTextField;
|
private javax.swing.JTextField pocPhoneTextField;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
public boolean isChanged() {
|
public boolean isChanged() {
|
||||||
@ -402,7 +403,7 @@ public class ManageOrganizationsDialog extends JDialog {
|
|||||||
if (newOrg != null) {
|
if (newOrg != null) {
|
||||||
selected = newOrg;
|
selected = newOrg;
|
||||||
} else {
|
} else {
|
||||||
selected = jList1.getSelectedValue();
|
selected = organizationList.getSelectedValue();
|
||||||
}
|
}
|
||||||
if (selected != null) {
|
if (selected != null) {
|
||||||
orgNameTextField.setText(selected.getName());
|
orgNameTextField.setText(selected.getName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user