Created by 5zig. All rights reserved © 2015
| 6 | * All rights reserved © 2015 |
| 7 | */ |
| 8 | public class Button extends cgj implements IButton { |
| 9 | |
| 10 | private int disabledTicks = 0; |
| 11 | |
| 12 | public Button(int id, int x, int y, String label) { |
| 13 | super(id, x, y, label); |
| 14 | } |
| 15 | |
| 16 | public Button(int id, int x, int y, String label, boolean enabled) { |
| 17 | super(id, x, y, label); |
| 18 | setEnabled(enabled); |
| 19 | } |
| 20 | |
| 21 | public Button(int id, int x, int y, int width, int height, String label) { |
| 22 | super(id, x, y, width, height, label); |
| 23 | } |
| 24 | |
| 25 | public Button(int id, int x, int y, int width, int height, String label, boolean enabled) { |
| 26 | super(id, x, y, width, height, label); |
| 27 | setEnabled(enabled); |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | public int getId() { |
| 32 | return k; |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public String getLabel() { |
| 37 | return j; |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public void setLabel(String label) { |
| 42 | this.j = label; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public int getWidth() { |
| 47 | return f; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public void setWidth(int width) { |
| 52 | this.f = width; |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public int getHeight() { |
| 57 | return g; |
| 58 | } |
| 59 | |
| 60 | @Override |
| 61 | public void setHeight(int height) { |
| 62 | this.g = height; |
| 63 | } |
| 64 | |
| 65 | @Override |
nothing calls this directly
no outgoing calls
no test coverage detected