diff options
Diffstat (limited to 'src/Java/binnie/craftgui/controls/page/ControlPage.java')
-rw-r--r-- | src/Java/binnie/craftgui/controls/page/ControlPage.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/Java/binnie/craftgui/controls/page/ControlPage.java b/src/Java/binnie/craftgui/controls/page/ControlPage.java deleted file mode 100644 index 0e5c89492e..0000000000 --- a/src/Java/binnie/craftgui/controls/page/ControlPage.java +++ /dev/null @@ -1,36 +0,0 @@ -package binnie.craftgui.controls.page; - -import binnie.craftgui.controls.core.Control; -import binnie.craftgui.controls.core.IControlValue; -import binnie.craftgui.core.IWidget; - -public class ControlPage<T> - extends Control - implements IControlValue<T> -{ - T value; - - public ControlPage(IWidget parent, T value) - { - this(parent, 0.0F, 0.0F, parent.w(), parent.h(), value); - } - - public ControlPage(IWidget parent, float x, float y, float w, float h, T value) - { - super(parent, x, y, w, h); - setValue(value); - if (((parent instanceof IControlValue)) && (((IControlValue)parent).getValue() == null)) { - ((IControlValue)parent).setValue(value); - } - } - - public T getValue() - { - return this.value; - } - - public void setValue(T value) - { - this.value = value; - } -} |