Revision 43126 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/PackagePropertiesFilterPanel.java
PackagePropertiesFilterPanel.java | ||
---|---|---|
44 | 44 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
45 | 45 |
import org.gvsig.installer.swing.impl.execution.panel.filters.AllFilter; |
46 | 46 |
import org.gvsig.installer.swing.impl.execution.panel.filters.CategoryFilter; |
47 |
import org.gvsig.installer.swing.impl.execution.panel.filters.PackageFilter;
|
|
47 |
import org.gvsig.installer.swing.api.execution.PackageFilter;
|
|
48 | 48 |
import org.gvsig.installer.swing.impl.execution.panel.filters.TypeFilter; |
49 | 49 |
|
50 | 50 |
/** |
... | ... | |
57 | 57 |
|
58 | 58 |
private static final long serialVersionUID = 3767011079359743742L; |
59 | 59 |
|
60 |
public enum PropertiesFilter { |
|
61 |
CATEGORIES, TYPES |
|
62 |
} |
|
60 |
// public enum PropertiesFilter {
|
|
61 |
// CATEGORIES, TYPES
|
|
62 |
// }
|
|
63 | 63 |
|
64 | 64 |
private PackagesTablePanel packagesTablePanel; |
65 | 65 |
|
... | ... | |
69 | 69 |
private DefaultListModel model = null; |
70 | 70 |
|
71 | 71 |
private DefaultSwingInstallerManager manager; |
72 |
private JButton typesButton; |
|
72 | 73 |
|
73 | 74 |
public PackagePropertiesFilterPanel(PackagesTablePanel packagesTablePanel) { |
74 | 75 |
this.packagesTablePanel = packagesTablePanel; |
... | ... | |
91 | 92 |
categoriesButton.setActionCommand("categories"); |
92 | 93 |
categoriesButton.addActionListener(this); |
93 | 94 |
|
94 |
JButton typesButton = new JButton(manager.getText("_types"));
|
|
95 |
typesButton.setActionCommand("types"); |
|
96 |
typesButton.addActionListener(this); |
|
95 |
this.typesButton = new JButton(manager.getText("_types"));
|
|
96 |
this.typesButton.setActionCommand("types");
|
|
97 |
this.typesButton.addActionListener(this);
|
|
97 | 98 |
|
98 | 99 |
this.setLayout(new GridBagLayout()); |
99 | 100 |
|
... | ... | |
165 | 166 |
} |
166 | 167 |
} |
167 | 168 |
|
169 |
void setEnabledTypeFilter(boolean enabled) { |
|
170 |
this.typesButton.setEnabled(enabled); |
|
171 |
} |
|
172 |
|
|
168 | 173 |
private class MyMouseListener implements MouseListener { |
169 | 174 |
|
170 | 175 |
public void mouseClicked(MouseEvent e) { |
Also available in: Unified diff