blob: f3788c34b112be48092d0306c6195de777153aa3 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.runtime.common.layouting;
public interface IPropertyConstants {
/**
* The Constant PROPERTY__SUBTYPE. The autowirehelper passes the classname
* of the sub type in this property.
*/
public static final String PROPERTY__SUBTYPE_CLASS = "dto_subtype_className";
/** The Constant PROPERTY_TEXTAREA. */
public final static String PROPERTY_TEXTAREA = "textarea";
/** The Constant PROPERTY_BLOB. */
public final static String PROPERTY_BLOB = "blob";
/** The Constant PROPERTY_BLOB_FIRMLY_LINKED. */
public final static String PROPERTY_BLOB_FIRMLY_LINKED = "blobfirmlylinked";
/** The Constant PROPERTY_BLOB_UNIQUE_NAMED. */
public final static String PROPERTY_BLOB_UNIQUE_NAMED = "blobuniquenamed";
/**
* Together with the key {@link #PROPERTY_KEY__FIELD_TYPE} it indicates that
* the field from data model should be presented by a RichTextArea. <br>
* Eg: <code>key="type" value="richTextArea"</code>
* <p>
* Whether value-binding (String) or blob-Value-Binding (byte[]) is used,
* depends on the underlying data model. String-binding for String and
* Blob-Binding for byte[].
*/
public final static String PROPERTY_RICH_TEXT = "richTextArea";
/**
* Creates a Slider in the auto generated UI.
*/
public final static String PROPERTY_SLIDER = "slider";
/**
* Together with the key {@link #PROPERTY_KEY__FIELD_TYPE} it indicates that
* the field from data model should be presented by a MaskedTextField. <br>
* Eg: <code>key="type" value="maskedText"</code>
* <p>
* This type need to be used together with the key "mask". Eg:
* <code>var MaskedText text properties (key="mask" value="UUU-###")</code>
* <p>
*/
public final static String PROPERTY_MASKED_TEXT = "maskedText";
/**
* Together with the key {@link #PROPERTY_KEY__FIELD_TYPE} it indicates that
* the field from data model should be presented by a MaskedDecimalField.
* <br>
* Eg: <code>key="type" value="maskedDecimal"</code>
* <p>
* This type need to be used together with the key "mask". Eg:
* <code>var MaskedDecimal text properties (key="mask" value="#,#00.000")</code>
* <p>
*/
public final static String PROPERTY_MASKED_DECIMAL = "maskedDecimal";
/**
* See {@link #PROPERTY_MASKED_TEXT}
*/
public final static String PROPERTY_MASK = "mask";
/**
* Together with the key {@link #PROPERTY_KEY__FIELD_TYPE} it indicates that
* the field from data model should be presented by a PasswordField. <br>
* Eg: <code>key="type" value="Password"</code>
*/
public final static String PROPERTY_PASSWORD = "password";
/**
* The key value for properties.<br>
* Eg: <code>key="type" value="RichTextArea"</code> creates a RichTextArea
* for the given data model attribute.
*/
public final static String PROPERTY_KEY__FIELD_TYPE = "type";
/** The Constant PROPERTY_GRID. */
public final static String PROPERTY_OPTION_GROUP = "optionGroup";
/** The Constant PROPERTY_GRID. */
public final static String PROPERTY_GRID = "grid";
/** The Constant PROPERTY_TABLE. */
public final static String PROPERTY_TABLE = "table";
/** The Constant PROPERTY_DECIMALFORMAT. */
public final static String PROPERTY_DECIMALFORMAT = "decimalformat";
/** The Constant PROPERTY_CLASS. */
public final static String PROPERTY_CLASS = "class";
/** The Constant PROPERTY_NAME. */
public final static String PROPERTY_NAME = "name";
/**
* The depth of filters used for BeanReferenceFields
*/
public static final String PROPERTY__FILTER_DEPTH = "filterDepth";
/**
* Defines the caption property name to be used in combo boxes, suggest text
* fields,...
*/
public static final String PROPERTY__ITEM_CAPTION = "itemCaptionProperty";
/**
* Defines the description property name to be used in combo boxes, suggest
* text fields,...
*/
public static final String PROPERTY__ITEM_DESCRIPTION = "itemDescriptionProperty";
/**
* Defines the filter property name to be used in suggest text fields,...
*/
public static final String PROPERTY__ITEM_FILTER = "itemFilterProperty";
/**
* Defines the uuid property name to be used in suggest text fields,...
*/
public static final String PROPERTY__ITEM_UUID = "itemUUIDProperty";
/** The Constant PROPERTY_ORGANIZATION. */
public final static String PROPERTY_ORGANIZATION = "organization";
/** The Constant PROPERTY_PERSPECTIVE. */
public final static String PROPERTY_PERSPECTIVE = "perspective";
/** The Constant PROPERTY_THEME. */
public final static String PROPERTY_THEME = "theme";
/** The Constant PROPERTY_THEME. */
public final static String PROPERTY_I18N = "i18n";
/** The Constant PROPERTY_PRINTSERVICE. */
public final static String PROPERTY_PRINTSERVICE = "printservice";
/** The Constant PROPERTY_PRINTSERVICE. */
public final static String PROPERTY_MODEL = "model";
/** The Constant PROPERTY_SUGGESTTEXT. */
public final static String PROPERTY_SUGGESTTEXT = "suggestion";
/** The Constant PROPERTY_SUGGESTTEXT.
* For the creation of a checkbox representing a boolean value.
* */
public final static String PROPERTY_CHECKBOX = "checkbox";
public enum DSLModelsEnum {
REPORT("report", "http://osbp.eclipse.org/xtext/reportdsl/ReportDSL", "ReportDSLPackage.Literals.REPORT");
private final String key;
private final String nsUri;
private final String modelLiteral;
DSLModelsEnum(String key, String nsUri, String modelLiteral) {
this.key = key;
this.nsUri = nsUri;
this.modelLiteral = modelLiteral;
}
public String getKey() {
return key;
}
public String getNsUri() {
return nsUri;
}
public String getModelLiteral() {
return modelLiteral;
}
}
}