source:
josm/trunk/src/org/openstreetmap/josm/gui/HideableButton.java@
9917
Last change on this file since 9917 was 8510, checked in by , 9 years ago | |
---|---|
|
|
File size: 528 bytes |
Rev | Line | |
---|---|---|
[6380] | 1 | // License: GPL. For details, see LICENSE file. |
[4609] | 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 { | |
[4840] | 11 | void applyButtonHiddenPreferences(); |
[8510] | 12 | |
[4840] | 13 | void setButtonHidden(boolean b); |
[8510] | 14 | |
[4840] | 15 | void showButton(); |
[8510] | 16 | |
[4840] | 17 | void hideButton(); |
[8510] | 18 | |
[4840] | 19 | String getActionName(); |
[8510] | 20 | |
[4840] | 21 | Icon getIcon(); |
[8510] | 22 | |
[4840] | 23 | boolean isButtonVisible(); |
[8510] | 24 | |
[4840] | 25 | void setShowHideButtonListener(ShowHideButtonListener l); |
[4609] | 26 | } |
Note:
See TracBrowser
for help on using the repository browser.