mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Working back to using radio buttons
This commit is contained in:
parent
2280e1005a
commit
dbdfedae01
@ -6,6 +6,15 @@
|
|||||||
<code-name-base>org.sleuthkit.autopsy.core</code-name-base>
|
<code-name-base>org.sleuthkit.autopsy.core</code-name-base>
|
||||||
<suite-component/>
|
<suite-component/>
|
||||||
<module-dependencies>
|
<module-dependencies>
|
||||||
|
<dependency>
|
||||||
|
<code-name-base>org.jdesktop.beansbinding</code-name-base>
|
||||||
|
<build-prerequisite/>
|
||||||
|
<compile-dependency/>
|
||||||
|
<run-dependency>
|
||||||
|
<release-version>1</release-version>
|
||||||
|
<specification-version>1.24.1.121</specification-version>
|
||||||
|
</run-dependency>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<code-name-base>org.netbeans.api.progress</code-name-base>
|
<code-name-base>org.netbeans.api.progress</code-name-base>
|
||||||
<build-prerequisite/>
|
<build-prerequisite/>
|
||||||
|
@ -61,6 +61,7 @@ InterestingItemDefsPanel.rulePathConditionRegexCheckBox.text=Regex
|
|||||||
FilesSetRulePanel.nameCheck.text=Name Pattern:
|
FilesSetRulePanel.nameCheck.text=Name Pattern:
|
||||||
FilesSetRulePanel.pathCheck.text=Path Pattern:
|
FilesSetRulePanel.pathCheck.text=Path Pattern:
|
||||||
FilesSetRulePanel.mimeCheck.text=MIME Type:
|
FilesSetRulePanel.mimeCheck.text=MIME Type:
|
||||||
FilesSetRulePanel.filesCheck.text=Files
|
|
||||||
FilesSetRulePanel.directoriesCheck.text=Directories
|
|
||||||
FilesSetRulePanel.fileSizeCheck.text=File Size:
|
FilesSetRulePanel.fileSizeCheck.text=File Size:
|
||||||
|
FilesSetRulePanel.filesRadio.text=Files
|
||||||
|
FilesSetRulePanel.dirsRadio.text=Directories
|
||||||
|
FilesSetRulePanel.filesAndDirsRadio.text=Files and Directories
|
||||||
|
@ -33,18 +33,18 @@
|
|||||||
<Component id="ruleNameTextField" min="-2" pref="234" max="-2" attributes="0"/>
|
<Component id="ruleNameTextField" min="-2" pref="234" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" pref="64" max="-2" attributes="0"/>
|
|
||||||
<Component id="filesCheck" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="directoriesCheck" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="65" max="-2" attributes="0"/>
|
||||||
|
<Component id="filesRadio" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="dirsRadio" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="filesAndDirsRadio" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
@ -107,10 +107,11 @@
|
|||||||
<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="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="filesCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="filesRadio" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="directoriesCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="dirsRadio" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="filesAndDirsRadio" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="nameTextField" alignment="3" min="-2" pref="20" max="-2" attributes="0"/>
|
<Component id="nameTextField" alignment="3" min="-2" pref="20" max="-2" attributes="0"/>
|
||||||
<Component id="nameCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="nameCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@ -131,7 +132,7 @@
|
|||||||
<Component id="pathRegexCheckBox" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pathRegexCheckBox" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="pathSeparatorInfoLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="pathSeparatorInfoLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="7" max="32767" attributes="0"/>
|
<EmptySpace pref="8" max="32767" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="mimeTypeComboBox" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="mimeTypeComboBox" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="mimeCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="mimeCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@ -339,26 +340,35 @@
|
|||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="fileSizeCheckActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="fileSizeCheckActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="filesCheck">
|
<Component class="javax.swing.JRadioButton" name="filesRadio">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
|
||||||
<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/modules/interestingitems/Bundle.properties" key="FilesSetRulePanel.filesCheck.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/modules/interestingitems/Bundle.properties" key="FilesSetRulePanel.filesRadio.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<BindingProperties>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="filesCheckActionPerformed"/>
|
<BindingProperty name="selected" source="typeButtonGroup" target="filesRadio" targetPath="selected" updateStrategy="0" immediately="false"/>
|
||||||
</Events>
|
</BindingProperties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="directoriesCheck">
|
<Component class="javax.swing.JRadioButton" name="dirsRadio">
|
||||||
<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/modules/interestingitems/Bundle.properties" key="FilesSetRulePanel.directoriesCheck.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/modules/interestingitems/Bundle.properties" key="FilesSetRulePanel.dirsRadio.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<BindingProperties>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="directoriesCheckActionPerformed"/>
|
<BindingProperty name="selected" source="typeButtonGroup" target="dirsRadio" targetPath="selected" updateStrategy="0" immediately="false"/>
|
||||||
</Events>
|
</BindingProperties>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JRadioButton" name="filesAndDirsRadio">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
<ResourceString bundle="org/sleuthkit/autopsy/modules/interestingitems/Bundle.properties" key="FilesSetRulePanel.filesAndDirsRadio.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<BindingProperties>
|
||||||
|
<BindingProperty name="selected" source="typeButtonGroup" target="filesAndDirsRadio" targetPath="selected" updateStrategy="0" immediately="false"/>
|
||||||
|
</BindingProperties>
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -88,7 +88,7 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
* Populates the UI components with default values.
|
* Populates the UI components with default values.
|
||||||
*/
|
*/
|
||||||
private void populateComponentsWithDefaultValues() {
|
private void populateComponentsWithDefaultValues() {
|
||||||
this.filesCheck.setSelected(true);
|
this.filesRadio.setSelected(true);
|
||||||
this.fullNameRadioButton.setSelected(true);
|
this.fullNameRadioButton.setSelected(true);
|
||||||
this.equalitySymbolComboBox.setSelectedIndex(2);
|
this.equalitySymbolComboBox.setSelectedIndex(2);
|
||||||
this.fileSizeComboBox.setSelectedIndex(1);
|
this.fileSizeComboBox.setSelectedIndex(1);
|
||||||
@ -136,8 +136,7 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
private void setOkButton() {
|
private void setOkButton() {
|
||||||
if (this.okButton != null) {
|
if (this.okButton != null) {
|
||||||
if (!(this.filesCheck.isSelected() || this.directoriesCheck.isSelected())
|
if (!(this.fileSizeCheck.isSelected() || this.mimeCheck.isSelected()
|
||||||
|| !(this.fileSizeCheck.isSelected() || this.mimeCheck.isSelected()
|
|
||||||
|| this.nameCheck.isSelected() || this.pathCheck.isSelected())) {
|
|| this.nameCheck.isSelected() || this.pathCheck.isSelected())) {
|
||||||
this.okButton.setEnabled(false);
|
this.okButton.setEnabled(false);
|
||||||
}
|
}
|
||||||
@ -193,14 +192,13 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
FilesSet.Rule.MetaTypeCondition typeCondition = rule.getMetaTypeCondition();
|
FilesSet.Rule.MetaTypeCondition typeCondition = rule.getMetaTypeCondition();
|
||||||
switch (typeCondition.getMetaType()) {
|
switch (typeCondition.getMetaType()) {
|
||||||
case FILES:
|
case FILES:
|
||||||
this.filesCheck.setSelected(true);
|
this.filesRadio.setSelected(true);
|
||||||
break;
|
break;
|
||||||
case DIRECTORIES:
|
case DIRECTORIES:
|
||||||
this.directoriesCheck.setSelected(true);
|
this.dirsRadio.setSelected(true);
|
||||||
break;
|
break;
|
||||||
case FILES_AND_DIRECTORIES:
|
case FILES_AND_DIRECTORIES:
|
||||||
this.filesCheck.setSelected(true);
|
this.filesAndDirsRadio.setSelected(true);
|
||||||
this.directoriesCheck.setSelected(true);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -391,9 +389,9 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
* @return A type condition.
|
* @return A type condition.
|
||||||
*/
|
*/
|
||||||
FilesSet.Rule.MetaTypeCondition getMetaTypeCondition() {
|
FilesSet.Rule.MetaTypeCondition getMetaTypeCondition() {
|
||||||
if (this.filesCheck.isSelected() && !this.directoriesCheck.isSelected()) {
|
if (this.filesRadio.isSelected()) {
|
||||||
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.FILES);
|
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.FILES);
|
||||||
} else if (this.directoriesCheck.isSelected() && !this.filesCheck.isSelected()) {
|
} else if (this.dirsRadio.isSelected()) {
|
||||||
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.DIRECTORIES);
|
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.DIRECTORIES);
|
||||||
} else {
|
} else {
|
||||||
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.FILES_AND_DIRECTORIES);
|
return new FilesSet.Rule.MetaTypeCondition(FilesSet.Rule.MetaTypeCondition.Type.FILES_AND_DIRECTORIES);
|
||||||
@ -463,7 +461,7 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
* state of the UI components in the type button group.
|
* state of the UI components in the type button group.
|
||||||
*/
|
*/
|
||||||
private void setComponentsForSearchType() {
|
private void setComponentsForSearchType() {
|
||||||
if (this.directoriesCheck.isSelected()) {
|
if (this.dirsRadio.isSelected()) {
|
||||||
this.fullNameRadioButton.setSelected(true);
|
this.fullNameRadioButton.setSelected(true);
|
||||||
this.extensionRadioButton.setEnabled(false);
|
this.extensionRadioButton.setEnabled(false);
|
||||||
this.mimeTypeComboBox.setEnabled(false);
|
this.mimeTypeComboBox.setEnabled(false);
|
||||||
@ -492,6 +490,7 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
// <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() {
|
||||||
|
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
|
||||||
|
|
||||||
nameButtonGroup = new javax.swing.ButtonGroup();
|
nameButtonGroup = new javax.swing.ButtonGroup();
|
||||||
typeButtonGroup = new javax.swing.ButtonGroup();
|
typeButtonGroup = new javax.swing.ButtonGroup();
|
||||||
@ -514,8 +513,9 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
pathCheck = new javax.swing.JCheckBox();
|
pathCheck = new javax.swing.JCheckBox();
|
||||||
mimeCheck = new javax.swing.JCheckBox();
|
mimeCheck = new javax.swing.JCheckBox();
|
||||||
fileSizeCheck = new javax.swing.JCheckBox();
|
fileSizeCheck = new javax.swing.JCheckBox();
|
||||||
filesCheck = new javax.swing.JCheckBox();
|
filesRadio = new javax.swing.JRadioButton();
|
||||||
directoriesCheck = new javax.swing.JCheckBox();
|
dirsRadio = new javax.swing.JRadioButton();
|
||||||
|
filesAndDirsRadio = new javax.swing.JRadioButton();
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(ruleNameLabel, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.ruleNameLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(ruleNameLabel, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.ruleNameLabel.text")); // NOI18N
|
||||||
|
|
||||||
@ -600,20 +600,20 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
filesCheck.setSelected(true);
|
org.openide.awt.Mnemonics.setLocalizedText(filesRadio, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.filesRadio.text")); // NOI18N
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(filesCheck, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.filesCheck.text")); // NOI18N
|
|
||||||
filesCheck.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
filesCheckActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(directoriesCheck, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.directoriesCheck.text")); // NOI18N
|
org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, typeButtonGroup, org.jdesktop.beansbinding.ObjectProperty.create(), filesRadio, org.jdesktop.beansbinding.BeanProperty.create("selected"));
|
||||||
directoriesCheck.addActionListener(new java.awt.event.ActionListener() {
|
bindingGroup.addBinding(binding);
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
directoriesCheckActionPerformed(evt);
|
org.openide.awt.Mnemonics.setLocalizedText(dirsRadio, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.dirsRadio.text")); // NOI18N
|
||||||
}
|
|
||||||
});
|
binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, typeButtonGroup, org.jdesktop.beansbinding.ObjectProperty.create(), dirsRadio, org.jdesktop.beansbinding.BeanProperty.create("selected"));
|
||||||
|
bindingGroup.addBinding(binding);
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(filesAndDirsRadio, org.openide.util.NbBundle.getMessage(FilesSetRulePanel.class, "FilesSetRulePanel.filesAndDirsRadio.text")); // NOI18N
|
||||||
|
|
||||||
|
binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, typeButtonGroup, org.jdesktop.beansbinding.ObjectProperty.create(), filesAndDirsRadio, org.jdesktop.beansbinding.BeanProperty.create("selected"));
|
||||||
|
bindingGroup.addBinding(binding);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
@ -629,15 +629,16 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(ruleNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(ruleNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(jLabel5)
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGap(0, 0, Short.MAX_VALUE))
|
||||||
.addComponent(jLabel1)
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGap(64, 64, 64)
|
.addComponent(jLabel1)
|
||||||
.addComponent(filesCheck)
|
.addGap(65, 65, 65)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(filesRadio)
|
||||||
.addComponent(directoriesCheck))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jLabel5))
|
.addComponent(dirsRadio)
|
||||||
.addGap(0, 0, Short.MAX_VALUE))))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(filesAndDirsRadio))))
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addComponent(nameCheck)
|
.addComponent(nameCheck)
|
||||||
@ -685,9 +686,10 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel1)
|
.addComponent(jLabel1)
|
||||||
.addComponent(filesCheck)
|
.addComponent(filesRadio)
|
||||||
.addComponent(directoriesCheck))
|
.addComponent(dirsRadio)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addComponent(filesAndDirsRadio))
|
||||||
|
.addGap(5, 5, 5)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(nameCheck))
|
.addComponent(nameCheck))
|
||||||
@ -704,7 +706,7 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(pathRegexCheckBox)
|
.addComponent(pathRegexCheckBox)
|
||||||
.addComponent(pathSeparatorInfoLabel))
|
.addComponent(pathSeparatorInfoLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(mimeTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(mimeTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(mimeCheck))
|
.addComponent(mimeCheck))
|
||||||
@ -720,6 +722,8 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
.addComponent(ruleNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(ruleNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
bindingGroup.bind();
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void ruleNameTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ruleNameTextFieldActionPerformed
|
private void ruleNameTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ruleNameTextFieldActionPerformed
|
||||||
@ -780,28 +784,19 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
this.setOkButton();
|
this.setOkButton();
|
||||||
}//GEN-LAST:event_fileSizeCheckActionPerformed
|
}//GEN-LAST:event_fileSizeCheckActionPerformed
|
||||||
|
|
||||||
private void filesCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_filesCheckActionPerformed
|
|
||||||
this.setComponentsForSearchType();
|
|
||||||
this.setOkButton();
|
|
||||||
}//GEN-LAST:event_filesCheckActionPerformed
|
|
||||||
|
|
||||||
private void directoriesCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_directoriesCheckActionPerformed
|
|
||||||
this.setComponentsForSearchType();
|
|
||||||
this.setOkButton();
|
|
||||||
}//GEN-LAST:event_directoriesCheckActionPerformed
|
|
||||||
|
|
||||||
private void mimeTypeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mimeTypeComboBoxActionPerformed
|
private void mimeTypeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mimeTypeComboBoxActionPerformed
|
||||||
// TODO add your handling code here:
|
// TODO add your handling code here:
|
||||||
}//GEN-LAST:event_mimeTypeComboBoxActionPerformed
|
}//GEN-LAST:event_mimeTypeComboBoxActionPerformed
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JCheckBox directoriesCheck;
|
private javax.swing.JRadioButton dirsRadio;
|
||||||
private javax.swing.JComboBox equalitySymbolComboBox;
|
private javax.swing.JComboBox equalitySymbolComboBox;
|
||||||
private javax.swing.JRadioButton extensionRadioButton;
|
private javax.swing.JRadioButton extensionRadioButton;
|
||||||
private javax.swing.JCheckBox fileSizeCheck;
|
private javax.swing.JCheckBox fileSizeCheck;
|
||||||
private javax.swing.JComboBox fileSizeComboBox;
|
private javax.swing.JComboBox fileSizeComboBox;
|
||||||
private javax.swing.JSpinner fileSizeSpinner;
|
private javax.swing.JSpinner fileSizeSpinner;
|
||||||
private javax.swing.JCheckBox filesCheck;
|
private javax.swing.JRadioButton filesAndDirsRadio;
|
||||||
|
private javax.swing.JRadioButton filesRadio;
|
||||||
private javax.swing.JRadioButton fullNameRadioButton;
|
private javax.swing.JRadioButton fullNameRadioButton;
|
||||||
private javax.swing.JLabel jLabel1;
|
private javax.swing.JLabel jLabel1;
|
||||||
private javax.swing.JLabel jLabel5;
|
private javax.swing.JLabel jLabel5;
|
||||||
@ -818,5 +813,6 @@ final class FilesSetRulePanel extends javax.swing.JPanel {
|
|||||||
private javax.swing.JLabel ruleNameLabel;
|
private javax.swing.JLabel ruleNameLabel;
|
||||||
private javax.swing.JTextField ruleNameTextField;
|
private javax.swing.JTextField ruleNameTextField;
|
||||||
private javax.swing.ButtonGroup typeButtonGroup;
|
private javax.swing.ButtonGroup typeButtonGroup;
|
||||||
|
private org.jdesktop.beansbinding.BindingGroup bindingGroup;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user