133 |
}); |
}); |
134 |
} |
} |
135 |
|
|
136 |
|
public void |
137 |
|
showOptionsPane(boolean show) { |
138 |
|
btnOptions.showOptionsPane(show); |
139 |
|
} |
140 |
|
|
141 |
|
public boolean |
142 |
|
isOptionsPaneExpanded() { return btnOptions.isSelected(); } |
143 |
|
|
144 |
protected void |
protected void |
145 |
setDeviceName(String s) { |
setDeviceName(String s) { |
146 |
lDevName.setText(s); |
lDevName.setText(s); |
223 |
public void |
public void |
224 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
225 |
showOptionsPane(isSelected()); |
showOptionsPane(isSelected()); |
226 |
|
} |
227 |
|
|
228 |
|
private void |
229 |
|
showOptionsPane(boolean show) { |
230 |
|
optionsPane.setCollapsed(!show); |
231 |
|
|
232 |
String s; |
String s; |
233 |
if(isSelected()) s = i18n.getButtonLabel("DevicePane.ttHideOptions"); |
if(isSelected()) s = i18n.getButtonLabel("DevicePane.ttHideOptions"); |
236 |
setToolTipText(s); |
setToolTipText(s); |
237 |
} |
} |
238 |
|
|
|
private void |
|
|
showOptionsPane(boolean show) { |
|
|
optionsPane.setCollapsed(!show); |
|
|
} |
|
|
|
|
239 |
public boolean |
public boolean |
240 |
contains(int x, int y) { return super.contains(x, y) & y < 13; } |
contains(int x, int y) { return super.contains(x, y) & y < 13; } |
241 |
} |
} |