source:
josm/trunk/src/org/openstreetmap/josm/gui/HideableButton.java
Last change on this file was 15633, checked in by , 4 years ago | |
---|---|
|
|
File size: 553 bytes |
Line | |
---|---|
1 | // License: GPL. For details, see LICENSE file. |
2 | package org.openstreetmap.josm.gui; |
3 | |
4 | import javax.swing.Icon; |
5 | |
6 | /** |
7 | * An interface to provide showing/hiding method for buttons, |
8 | * when hidden state is stored in preferences |
9 | */ |
10 | interface HideableButton { |
11 | void applyButtonHiddenPreferences(); |
12 | |
13 | void setButtonHidden(boolean b); |
14 | |
15 | void showButton(); |
16 | |
17 | void hideButton(); |
18 | |
19 | String getActionName(); |
20 | |
21 | Icon getIcon(); |
22 | |
23 | boolean isButtonVisible(); |
24 | |
25 | boolean isExpert(); |
26 | |
27 | void setShowHideButtonListener(ShowHideButtonListener l); |
28 | } |
Note:
See TracBrowser
for help on using the repository browser.