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

com.citytechinc.cq.component.dialog.DialogFieldConfig Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.citytechinc.cq.component.dialog;

import com.citytechinc.cq.component.annotations.DialogField;
import com.citytechinc.cq.component.annotations.Listener;
import com.citytechinc.cq.component.annotations.Property;
import javassist.CtMember;

public class DialogFieldConfig {

    private String xtype;

    private String resourceType;

    private String name;

    private String fieldLabel;

    private String fieldName;

    private String fieldDescription;

    private boolean required;

    private boolean hideLabel;

    private String defaultValue;

    private int tab;

    private Property[] additionalProperties;

    private Listener[] listeners;

    private double ranking;

    private CtMember member;

    private String value;

    private String title;

    private boolean disabled;

    private String cssClass;

    private boolean suppressTouchUI;

    private boolean renderReadOnly;

    private boolean showOnCreate;

    private boolean hideOnEdit;

    private boolean hideDialogField;

    private String orderBefore;

    public DialogFieldConfig(DialogField dialogField, CtMember member) {
        this.xtype = dialogField.xtype();
        this.resourceType = dialogField.resourceType();
        this.name = dialogField.name();
        this.fieldLabel = dialogField.fieldLabel();
        this.fieldName = dialogField.fieldName();
        this.fieldDescription = dialogField.fieldDescription();
        this.required = dialogField.required();
        this.hideLabel = dialogField.hideLabel();
        this.defaultValue = dialogField.defaultValue();
        this.tab = dialogField.tab();
        this.additionalProperties = dialogField.additionalProperties();
        this.listeners = dialogField.listeners();
        this.ranking = dialogField.ranking();
        this.member = member;
        this.value = dialogField.value();
        this.title = dialogField.title();
        this.disabled = dialogField.disabled();
        this.cssClass = dialogField.cssClass();
        this.suppressTouchUI = dialogField.suppressTouchUI();
        this.renderReadOnly = dialogField.renderReadOnly();
        this.showOnCreate = dialogField.showOnCreate();
        this.hideOnEdit = dialogField.hideOnEdit();
        this.orderBefore = dialogField.orderBefore();
    }

    public String getOrderBefore() {
        return orderBefore;
    }

    public void setOrderBefore(final String orderBefore) {
        this.orderBefore = orderBefore;
    }

    public String getXtype() {
        return xtype;
    }

    public void setXtype(String xtype) {
        this.xtype = xtype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFieldLabel() {
        return fieldLabel;
    }

    public void setFieldLabel(String fieldLabel) {
        this.fieldLabel = fieldLabel;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldDescription() {
        return fieldDescription;
    }

    public void setFieldDescription(String fieldDescription) {
        this.fieldDescription = fieldDescription;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public boolean isHideLabel() {
        return hideLabel;
    }

    public void setHideLabel(boolean hideLabel) {
        this.hideLabel = hideLabel;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public int getTab() {
        return tab;
    }

    public void setTab(int tab) {
        this.tab = tab;
    }

    public Property[] getAdditionalProperties() {
        return additionalProperties;
    }

    public void setAdditionalProperties(Property[] additionalProperties) {
        this.additionalProperties = additionalProperties;
    }

    public Listener[] getListeners() {
        return listeners;
    }

    public void setListeners(Listener[] listeners) {
        this.listeners = listeners;
    }

    public double getRanking() {
        return ranking;
    }

    public void setRanking(double ranking) {
        this.ranking = ranking;
    }

    public CtMember getMember() {
        return member;
    }

    public void setMember(CtMember member) {
        this.member = member;
    }

    public String getResourceType() {
        return resourceType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public String getCssClass() {
        return cssClass;
    }

    public void setCssClass(String cssClass) {
        this.cssClass = cssClass;
    }

    public boolean isSuppressTouchUI() {
        return suppressTouchUI;
    }

    public void setSuppressTouchUI(boolean suppressTouchUI) {
        this.suppressTouchUI = suppressTouchUI;
    }

    public boolean isRenderReadOnly() {
        return renderReadOnly;
    }

    public void setRenderReadOnly(boolean renderReadOnly) {
        this.renderReadOnly = renderReadOnly;
    }

    public boolean isShowOnCreate() {
        return showOnCreate;
    }

    public void setShowOnCreate(boolean showOnCreate) {
        this.showOnCreate = showOnCreate;
    }

    public boolean isHideOnEdit() {
        return hideOnEdit;
    }

    public void setHideOnEdit(boolean hideOnEdit) {
        this.hideOnEdit = hideOnEdit;
    }

    public boolean isHideDialogField() {
        return hideDialogField;
    }

    public void setHideDialogField(boolean hideDialogField) {
        this.hideDialogField = hideDialogField;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy