/[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 1766 by iliev, Thu Feb 14 16:52:36 2008 UTC revision 1767 by iliev, Mon Sep 8 00:19:27 2008 UTC
# Line 133  public class DevicePane extends JPanel { Line 133  public class DevicePane extends JPanel {
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);
# Line 215  public class DevicePane extends JPanel { Line 223  public class DevicePane extends JPanel {
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");
# Line 223  public class DevicePane extends JPanel { Line 236  public class DevicePane extends JPanel {
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          }          }

Legend:
Removed from v.1766  
changed lines
  Added in v.1767

  ViewVC Help
Powered by ViewVC