]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blob - src/main/java/com/irtimaled/bbor/client/gui/ControlListEntry.java
Fully support keyboard nav in gui
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / gui / ControlListEntry.java
1 package com.irtimaled.bbor.client.gui;
2
3 public abstract class ControlListEntry implements IControl {
4     int index;
5     private int x;
6     private int y;
7     private boolean visible = true;
8
9     public void close() {
10     }
11
12     public int getControlHeight() {
13         return 24;
14     }
15
16     public int getX() {
17         return x;
18     }
19
20     public int getY() {
21         return y;
22     }
23
24     public void setX(int x) {
25         this.x = x;
26     }
27
28     public void setY(int y) {
29         this.y = y;
30     }
31
32     public void setVisible(boolean visible) {
33         this.visible = visible;
34     }
35
36     @Override
37     public boolean isVisible() {
38         return visible;
39     }
40
41     public int getControlTop() {
42         return y;
43     }
44
45     public void done() {
46     }
47
48     public abstract void filter(String lowerValue);
49 }