source: josm/trunk/src/org/openstreetmap/josm/gui/HideableButton.java @ 5241

Revision 4840, 535 bytes checked in by bastiK, 4 months ago (diff)

expert mode rework:

  • toggling of expert mode does not require restart
  • checkbox at a more prominent places (MainMenu > View and in the preference dialog at the bottom)
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.gui;
3
4import javax.swing.Icon;
5
6/**
7 * An interface to provide showing/hiding method for buttons,
8 * when hidden state is stored in preferences
9 */
10interface HideableButton {
11    void applyButtonHiddenPreferences();
12    void setButtonHidden(boolean b);
13    void showButton();
14    void hideButton();
15    String getActionName();
16    Icon getIcon();
17    boolean isButtonVisible();
18    void setShowHideButtonListener(ShowHideButtonListener l);
19}
Note: See TracBrowser for help on using the repository browser.