aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/annotations/ConfigPage.java
blob: fecd438835d1955c9438e036a6f1a13f3acc2f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package io.polyfrost.oneconfig.config.annotations;

import io.polyfrost.oneconfig.config.data.PageLocation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ConfigPage {
    /**
     * The name of the page that will be displayed to the user
     */
    String name();

    /**
     * If the page button is at the top or bottem of the page
     */
    PageLocation location();

    /**
     * The description of the page that will be displayed to the user
     */
    String description() default "";

    /**
     * The category of the page
     */
    String category() default "general";
}