mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
Added workaround to force update of IconView when changing icon size. Also added "thumbnail" text to the drop-down.
This commit is contained in:
@@ -203,12 +203,11 @@
|
||||
<Properties>
|
||||
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||
<StringArray count="3">
|
||||
<StringItem index="0" value="Small"/>
|
||||
<StringItem index="1" value="Medium"/>
|
||||
<StringItem index="2" value="Large"/>
|
||||
<StringItem index="0" value="Small Thumbnails"/>
|
||||
<StringItem index="1" value="Medium Thumbnails"/>
|
||||
<StringItem index="2" value="Large Thumbnails"/>
|
||||
</StringArray>
|
||||
</Property>
|
||||
<Property name="selectedIndex" type="int" value="1"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="thumbnailSizeComboBoxActionPerformed"/>
|
||||
|
||||
@@ -147,8 +147,7 @@ public final class DataResultViewerThumbnail extends AbstractDataResultViewer {
|
||||
}
|
||||
});
|
||||
|
||||
thumbnailSizeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Small", "Medium", "Large" }));
|
||||
thumbnailSizeComboBox.setSelectedIndex(1);
|
||||
thumbnailSizeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Small Thumbnails", "Medium Thumbnails", "Large Thumbnails" }));
|
||||
thumbnailSizeComboBox.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
thumbnailSizeComboBoxActionPerformed(evt);
|
||||
@@ -241,8 +240,15 @@ public final class DataResultViewerThumbnail extends AbstractDataResultViewer {
|
||||
ThumbnailViewNode tn = (ThumbnailViewNode) node;
|
||||
tn.setRefresh(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Temporarily set the explored context to the root, instead of a child node.
|
||||
// This is a workaround hack to convince org.openide.explorer.ExplorerManager to
|
||||
// update even though the new and old Node values are identical. This in turn
|
||||
// will cause the entire view to update completely. After this we
|
||||
// immediately set the node back to the current child by calling switchPage().
|
||||
em.setExploredContext(root);
|
||||
switchPage();
|
||||
}//GEN-LAST:event_thumbnailSizeComboBoxActionPerformed
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
|
||||
Reference in New Issue
Block a user