aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-04-28 20:45:50 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-04-28 20:45:50 +0200
commit117d80ff0e343eecf260fd363db896166d8061d7 (patch)
tree8ef0ead687b69caf646874458beefa1d1710a38a /src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
parent7c5123ff64c751c19411982189321be3511a9815 (diff)
downloadOneConfig-117d80ff0e343eecf260fd363db896166d8061d7.tar.gz
OneConfig-117d80ff0e343eecf260fd363db896166d8061d7.tar.bz2
OneConfig-117d80ff0e343eecf260fd363db896166d8061d7.zip
better mousepressed handling, some more option types and some other things I forgor
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java b/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
index 8abb303..4cda7d5 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
@@ -1,5 +1,6 @@
package io.polyfrost.oneconfig.config.annotations;
+import io.polyfrost.oneconfig.config.data.InfoType;
import io.polyfrost.oneconfig.config.data.OptionType;
import java.lang.annotation.ElementType;
@@ -11,7 +12,7 @@ import java.lang.annotation.Target;
@Target(ElementType.FIELD)
public @interface Option {
/**
- * The name of the page that will be displayed to the user
+ * The name of the option that will be displayed to the user
*/
String name();
@@ -39,4 +40,29 @@ public @interface Option {
* The width of the option (1 = half width, 2 = full width)
*/
int size() default 1;
+
+ /**
+ * The placeholder for the text box if there is no text inside
+ */
+ String placeholder() default "";
+
+ /**
+ * If the text field is secure or not
+ */
+ boolean secure() default false;
+
+ /**
+ * If the text field is multi line or not
+ */
+ boolean multiLine() default false;
+
+ /**
+ * Steps of slider (0 for no steps)
+ */
+ int step() default 0;
+
+ /**
+ * Option for info option type
+ */
+ InfoType infoType() default InfoType.INFO;
}