mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Got rid of raw types warning in MImeTyepPanel, updated docs.
This commit is contained in:
parent
5f4b2f2b54
commit
8c0680c1c5
@ -8,8 +8,7 @@ package org.sleuthkit.autopsy.filesearch;
|
|||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Filter by mime type used in filter areas of file search by attribute.
|
||||||
* @author oliver
|
|
||||||
*/
|
*/
|
||||||
class MimeTypeFilter extends AbstractFileSearchFilter<MimeTypePanel> {
|
class MimeTypeFilter extends AbstractFileSearchFilter<MimeTypePanel> {
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<Component class="javax.swing.JList" name="jList1">
|
<Component class="javax.swing.JList" name="jList1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Connection code="new javax.swing.AbstractListModel() {
 String[] strings = getMimeTypeArray();
 public int getSize() { return strings.length; }
 public Object getElementAt(int i) { return strings[i]; }
}" type="code"/>
|
<Connection code="new javax.swing.AbstractListModel<String>() {
 String[] strings = getMimeTypeArray();
 public int getSize() { return strings.length; }
 public String getElementAt(int i) { return strings[i]; }
}" type="code"/>
|
||||||
</Property>
|
</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="[0, 200]"/>
|
<Dimension value="[0, 200]"/>
|
||||||
|
@ -87,10 +87,10 @@ public class MimeTypePanel extends javax.swing.JPanel {
|
|||||||
setMinimumSize(new java.awt.Dimension(150, 150));
|
setMinimumSize(new java.awt.Dimension(150, 150));
|
||||||
setPreferredSize(new java.awt.Dimension(100, 100));
|
setPreferredSize(new java.awt.Dimension(100, 100));
|
||||||
|
|
||||||
jList1.setModel(new javax.swing.AbstractListModel() {
|
jList1.setModel(new javax.swing.AbstractListModel<String>() {
|
||||||
String[] strings = getMimeTypeArray();
|
String[] strings = getMimeTypeArray();
|
||||||
public int getSize() { return strings.length; }
|
public int getSize() { return strings.length; }
|
||||||
public Object getElementAt(int i) { return strings[i]; }
|
public String getElementAt(int i) { return strings[i]; }
|
||||||
});
|
});
|
||||||
jList1.setMinimumSize(new java.awt.Dimension(0, 200));
|
jList1.setMinimumSize(new java.awt.Dimension(0, 200));
|
||||||
jScrollPane1.setViewportView(jList1);
|
jScrollPane1.setViewportView(jList1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user