com.anrisoftware.prefdialog.fields.spacer.Spacer Maven / Gradle / Ivy
/*
* Copyright 2013-2015 Erwin Müller
*
* This file is part of prefdialog-corefields.
*
* prefdialog-corefields is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* prefdialog-corefields is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with prefdialog-corefields. If not, see .
*/
package com.anrisoftware.prefdialog.fields.spacer;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import com.anrisoftware.prefdialog.annotations.FieldAnnotation;
/**
* Spacer field. The spacer field have no input and provides some vertical space
* between fields. Useful to separate fields from one another.
*
*
Examples:
*
*
* @FieldComponent
* @TextField
* public String name;
*
* @FieldComponent(showTitle = false)
* @Spacer
* public String spacer;
*
* @ButtonGroup
* @TextField
* public Action[] buttons = { ... };
*
*
* @author Erwin Mueller, [email protected]
* @since 3.0
*/
@Target({ FIELD, METHOD })
@Retention(RUNTIME)
@FieldAnnotation
@Documented
public @interface Spacer {
}