All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.fhframework.model.forms.attributes.PinnedAttribute Maven / Gradle / Ivy

There is a newer version: 4.10.401
Show newest version
package pl.fhframework.model.forms.attributes;

import pl.fhframework.annotations.DocumentedComponentAttribute;
import pl.fhframework.annotations.XMLProperty;
import pl.fhframework.binding.ModelBinding;
import pl.fhframework.model.forms.Component;
import pl.fhframework.model.forms.Form;

@DocumentedComponentAttribute(value = "Defines if group is pinned or not", type = Boolean.class, defaultValue = "true", boundable = true)
@XMLProperty(PinnedAttribute.PINNED_ATTR)
public class PinnedAttribute extends BoundableBoleanAttribute {

    public static final String PINNED_ATTR = "pinned";

    public PinnedAttribute(Form form, Component component, ModelBinding modelBinding) {
        super(form, component, modelBinding);
    }

    @Override
    public String getXmlValue() {
        return PINNED_ATTR;
    }

    @Override
    public Boolean getDefaultValue() {
        return Boolean.TRUE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy