source: src/main/java/genius/gui/panels/Lockable.java@ 346

Last change on this file since 346 was 93, checked in by Wouter Pasman, 6 years ago

#28 fixed listener structures. Added Lockable interface, boolean model and integer model are now lockable. Slider now reflects state of lockable. Added test for that.

File size: 553 bytes
Line 
1package genius.gui.panels;
2
3/**
4 * Models can be lockable. The notification mechanism for lock info is not
5 * specified here.
6 */
7public interface Lockable {
8 /**
9 *
10 * @param isLock
11 * if true, the value can not be changed. The listeners of the
12 * object should be notified about lock changes. The GUI should
13 * also reflect this setting eg by greying out the item.
14 */
15 public void setLock(boolean isLock);
16
17 /**
18 * @return true if the value is locked and can't be changed.
19 */
20 public boolean isLocked();
21
22}
Note: See TracBrowser for help on using the repository browser.