Changeset 2869 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
- Timestamp:
- 2010-01-17T11:56:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r2770 r2869 7 7 import java.awt.Component; 8 8 import java.awt.Dimension; 9 import java.awt.FlowLayout; 9 10 import java.awt.Graphics; 10 import java.awt. FlowLayout;11 import java.awt.GridBagLayout; 11 12 import java.awt.GridLayout; 12 import java.awt.GridBagLayout;13 13 import java.awt.Image; 14 14 import java.awt.Rectangle; … … 560 560 } 561 561 562 /**563 * This method is called by hosting panel before the panel with the toggle dialogs564 * and the toggle dialogs themself are discared, for instance because no layer is565 * left in JOSM and the main screen turns from the map editor to the MOTD panel.566 *567 * Override in subclasses to unregister as listener. After tearDown() is invoked568 * the dialog should be registered as listener.569 *570 * The default implementation is empty.571 */572 public void tearDown() {}573 574 562 protected JPanel getButtonPanel(int columns) { 575 563 JPanel pnl = new JPanel(); 576 564 pnl.setLayout(Main.pref.getBoolean("dialog.align.left", false) 577 ? new FlowLayout(FlowLayout.LEFT) : new GridLayout(1,columns));565 ? new FlowLayout(FlowLayout.LEFT) : new GridLayout(1,columns)); 578 566 return pnl; 579 567 }
Note:
See TracChangeset
for help on using the changeset viewer.