/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/DevicePane.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/DevicePane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1784 by iliev, Mon Sep 8 00:19:27 2008 UTC revision 1785 by iliev, Tue Oct 7 00:07:14 2008 UTC
# Line 22  Line 22 
22    
23  package org.jsampler.view.fantasia;  package org.jsampler.view.fantasia;
24    
 import java.awt.Cursor;  
25  import java.awt.Dimension;  import java.awt.Dimension;
26  import java.awt.Insets;  import java.awt.Insets;
27    
# Line 40  import javax.swing.JPanel; Line 39  import javax.swing.JPanel;
39    
40  import org.jdesktop.swingx.JXCollapsiblePane;  import org.jdesktop.swingx.JXCollapsiblePane;
41    
42    import org.jsampler.view.fantasia.basic.FantasiaLabel;
43    import org.jsampler.view.fantasia.basic.PixmapToggleButton;
44    import org.jsampler.view.fantasia.basic.PixmapPane;
45    
46  import static org.jsampler.view.fantasia.FantasiaI18n.i18n;  import static org.jsampler.view.fantasia.FantasiaI18n.i18n;
47  import static org.jsampler.view.fantasia.FantasiaPrefs.*;  import static org.jsampler.view.fantasia.FantasiaPrefs.*;
48    
# Line 220  public class DevicePane extends JPanel { Line 223  public class DevicePane extends JPanel {
223                          setToolTipText(i18n.getButtonLabel("DevicePane.ttShowOptions"));                          setToolTipText(i18n.getButtonLabel("DevicePane.ttShowOptions"));
224                  }                  }
225                                    
226                    @Override
227                  public void                  public void
228                  actionPerformed(ActionEvent e) {                  actionPerformed(ActionEvent e) {
229                          showOptionsPane(isSelected());                          showOptionsPane(isSelected());
# Line 236  public class DevicePane extends JPanel { Line 240  public class DevicePane extends JPanel {
240                          setToolTipText(s);                          setToolTipText(s);
241                  }                  }
242                                    
243                    @Override
244                  public boolean                  public boolean
245                  contains(int x, int y) { return super.contains(x, y) & y < 13; }                  contains(int x, int y) { return super.contains(x, y) & y < 13; }
246          }          }
# Line 253  public class DevicePane extends JPanel { Line 258  public class DevicePane extends JPanel {
258                          setToolTipText(i18n.getButtonLabel("DevicePane.ttRemoveDevice"));                          setToolTipText(i18n.getButtonLabel("DevicePane.ttRemoveDevice"));
259                  }                  }
260                                    
261                    @Override
262                  public void                  public void
263                  actionPerformed(ActionEvent e) {                  actionPerformed(ActionEvent e) {
264                          if(shouldConfirm()) {                          if(shouldConfirm()) {
# Line 269  public class DevicePane extends JPanel { Line 275  public class DevicePane extends JPanel {
275                          mainPane.setCollapsed(true);                          mainPane.setCollapsed(true);
276                  }                  }
277                                    
278                    @Override
279                  public void                  public void
280                  propertyChange(PropertyChangeEvent e) {                  propertyChange(PropertyChangeEvent e) {
281                          if(e.getNewValue() == "collapsed") {                          if(e.getNewValue() == "collapsed") {
# Line 360  public class DevicePane extends JPanel { Line 367  public class DevicePane extends JPanel {
367                          showOptions = false;                          showOptions = false;
368                  }                  }
369                                    
370                    @Override
371                  public void                  public void
372                  actionPerformed(ActionEvent e) {                  actionPerformed(ActionEvent e) {
373                          btnRemove.setEnabled(false);                          btnRemove.setEnabled(false);

Legend:
Removed from v.1784  
changed lines
  Added in v.1785

  ViewVC Help
Powered by ViewVC