Search in sources :

Example 21 with EJDevPropertyDefinition

use of org.entirej.framework.dev.properties.EJDevPropertyDefinition in project rap by entirej.

the class EJRWTBarChartRecordBlockDefinition method getItemGroupPropertiesDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getItemGroupPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("LineChart-Record Block: Required Item Group Properties");
    EJDevPropertyDefinition beginAtZero = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.BEGIN_AT_ZERO, EJPropertyDefinitionType.BOOLEAN);
    beginAtZero.setLabel("Begin At Zero");
    beginAtZero.setDescription(" if true, scale will include 0 if it is not already included");
    EJDevPropertyDefinition min = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.MIN, EJPropertyDefinitionType.FLOAT);
    min.setLabel("Min");
    min.setDescription("User defined minimum number for the scale, overrides minimum value from data.");
    EJDevPropertyDefinition max = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.MAX, EJPropertyDefinitionType.FLOAT);
    max.setLabel("Max");
    max.setDescription(" User defined maximum number for the scale, overrides maximum value from data.");
    EJDevPropertyDefinition maxTicksLimit = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.MAX_TICKS_LIMIT, EJPropertyDefinitionType.INTEGER);
    maxTicksLimit.setLabel("Max Ticks Limit");
    maxTicksLimit.setDescription("Maximum number of ticks and gridlines to show.");
    maxTicksLimit.setDefaultValue("20");
    EJDevPropertyDefinition stepSize = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.STEP_SIZE, EJPropertyDefinitionType.FLOAT);
    stepSize.setLabel("Step Size");
    stepSize.setDescription("User defined fixed step size for the scale.");
    EJDevPropertyDefinition suggestedMax = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SUGGESTED_MAX, EJPropertyDefinitionType.FLOAT);
    suggestedMax.setLabel("Suggested Max");
    suggestedMax.setDescription("Adjustment used when calculating the maximum data value.");
    EJDevPropertyDefinition suggestedMin = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SUGGESTED_MIN, EJPropertyDefinitionType.FLOAT);
    suggestedMin.setLabel("Suggested Min");
    suggestedMin.setDescription("Adjustment used when calculating the minimum data value.");
    mainGroup.addPropertyDefinition(beginAtZero);
    mainGroup.addPropertyDefinition(min);
    mainGroup.addPropertyDefinition(suggestedMin);
    mainGroup.addPropertyDefinition(max);
    mainGroup.addPropertyDefinition(suggestedMax);
    mainGroup.addPropertyDefinition(stepSize);
    mainGroup.addPropertyDefinition(maxTicksLimit);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 22 with EJDevPropertyDefinition

use of org.entirej.framework.dev.properties.EJDevPropertyDefinition in project rap by entirej.

the class EJRWTHtmlTableBlockRendererDefinition method getItemGroupPropertiesDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getItemGroupPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("HTML-Record Block");
    EJDevPropertyDefinition headerVA = new EJDevPropertyDefinition(HEADER_VA, EJPropertyDefinitionType.VISUAL_ATTRIBUTE);
    headerVA.setLabel("Headings VA");
    headerVA.setDescription("Specifies visual attribute for table header");
    mainGroup.addPropertyDefinition(headerVA);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 23 with EJDevPropertyDefinition

use of org.entirej.framework.dev.properties.EJDevPropertyDefinition in project rap by entirej.

the class EJRWTHtmlTableBlockRendererDefinition method getItemPropertiesDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("HTML Table: Required Item Properties");
    EJDevPropertyDefinition displayWidth = new EJDevPropertyDefinition(DISPLAY_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayWidth.setLabel("Displayed Width");
    displayWidth.setDescription("The width (in characters) of this items column within the blocks table");
    mainGroup.addPropertyDefinition(displayWidth);
    EJDevPropertyDefinition allowColumnSorting = new EJDevPropertyDefinition(ALLOW_ROW_SORTING, EJPropertyDefinitionType.BOOLEAN);
    allowColumnSorting.setLabel("Allow Column Sorting");
    allowColumnSorting.setDescription("If selected, the user will be able to re-order the data within the block by clicking on the column header. Only block contents will be sorted, no new data will be retreived from the datasource");
    allowColumnSorting.setDefaultValue("true");
    mainGroup.addPropertyDefinition(allowColumnSorting);
    EJDevPropertyDefinition cellActionCommand = new EJDevPropertyDefinition(CELL_ACTION_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    cellActionCommand.setLabel("Cell Action Command");
    cellActionCommand.setDescription("If entered, the value in this column will be displayed as a URL and when the user clicks on the url, the action command will be passed to the forms action processor for execution.");
    mainGroup.addPropertyDefinition(cellActionCommand);
    EJDevPropertyDefinition htmlFormat = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.ENABLE_MARKUP, EJPropertyDefinitionType.BOOLEAN);
    htmlFormat.setLabel("HTML Formatting");
    htmlFormat.setDescription("If this property is set, the Table formats  HTML tags in column values");
    mainGroup.addPropertyDefinition(htmlFormat);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 24 with EJDevPropertyDefinition

use of org.entirej.framework.dev.properties.EJDevPropertyDefinition in project rap by entirej.

the class EJRWTLineChartRecordBlockDefinition method getItemPropertiesDefinitionGroup.

/*
     * (non-Javadoc)
     * 
     * @seeorg.entirej.framework.renderers.IBlockRenderer#
     * getRequiredItemPropertiesDefinitionGroup()
     */
public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("LineChart-Record Block: Required Item Properties");
    EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.VISUAL_ATTRIBUTE_PROPERTY, EJPropertyDefinitionType.VISUAL_ATTRIBUTE);
    visualAttribute.setLabel("Visual Attribute");
    visualAttribute.setDescription("The background, foreground and font attributes applied for screen item");
    visualAttribute.setMandatory(false);
    EJDevPropertyDefinition actionCmd = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.ACTION, EJPropertyDefinitionType.ACTION_COMMAND);
    actionCmd.setLabel("Click Action Command");
    actionCmd.setDescription("Add an action command that will be sent to the action processor when a user  clicks on this chart");
    EJDevPropertyDefinition showFill = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SHOW_FILL, EJPropertyDefinitionType.BOOLEAN);
    showFill.setLabel("Show Fill");
    showFill.setDefaultValue("false");
    EJDevPropertyDefinition showLine = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SHOW_LINE, EJPropertyDefinitionType.BOOLEAN);
    showLine.setLabel("Show Line");
    showLine.setDefaultValue("true");
    showLine.setDescription("If false, the line is not drawn for this dataset.");
    EJDevPropertyDefinition pointDotRadius = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.POINT_DOT_RADIUS, EJPropertyDefinitionType.INTEGER);
    pointDotRadius.setLabel("Point Dot Radius");
    pointDotRadius.setDefaultValue("3");
    EJDevPropertyDefinition lineTension = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.LINE_TENSION, EJPropertyDefinitionType.FLOAT);
    lineTension.setLabel("Line Tension");
    lineTension.setDescription("Bezier curve tension of the line. Set to 0 to draw straightlines.");
    lineTension.setDefaultValue("0.4");
    EJDevPropertyDefinition strokeWidth = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.LINE_WIDTH, EJPropertyDefinitionType.INTEGER);
    strokeWidth.setLabel("Line Width");
    strokeWidth.setDescription("The width of the line in pixels.");
    strokeWidth.setDefaultValue("1");
    EJDevPropertyDefinition steppedLine = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.STEPPED_LINE, EJPropertyDefinitionType.STRING);
    steppedLine.setLabel("Stepped Line");
    steppedLine.setDescription("The character case for the text displayed within this label");
    steppedLine.setDefaultValue("false");
    steppedLine.addValidValue("false", "off");
    steppedLine.addValidValue("before", "before");
    steppedLine.addValidValue("after", "after");
    EJDevPropertyDefinition pointStyle = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.POINT_STYLE, EJPropertyDefinitionType.STRING);
    pointStyle.setLabel("Point Style");
    pointStyle.setDescription("The character case for the text displayed within this label");
    pointStyle.setDefaultValue("circle");
    /*
         * 'circle' 'cross' 'crossRot' 'dash'. 'line' 'rect' 'rectRounded'
         * 'rectRot' 'star' 'triangle'
         */
    pointStyle.addValidValue("circle", "circle");
    pointStyle.addValidValue("cross", "cross");
    pointStyle.addValidValue("crossRot", "crossRot");
    pointStyle.addValidValue("dash", "dash");
    pointStyle.addValidValue("rect", "rect");
    pointStyle.addValidValue("rectRounded", "rectRounded");
    pointStyle.addValidValue("triangle", "triangle");
    pointStyle.addValidValue("star", "star");
    pointStyle.addValidValue("rectRot", "rectRot");
    mainGroup.addPropertyDefinition(visualAttribute);
    mainGroup.addPropertyDefinition(actionCmd);
    mainGroup.addPropertyDefinition(strokeWidth);
    mainGroup.addPropertyDefinition(lineTension);
    mainGroup.addPropertyDefinition(showFill);
    mainGroup.addPropertyDefinition(showLine);
    mainGroup.addPropertyDefinition(pointStyle);
    mainGroup.addPropertyDefinition(steppedLine);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 25 with EJDevPropertyDefinition

use of org.entirej.framework.dev.properties.EJDevPropertyDefinition in project rap by entirej.

the class EJRWTInsertScreenRendererDefinition method getInsertScreenPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getInsertScreenPropertyDefinitionGroup() {
    EJPropertyDefinitionGroup mainGroup = getScreenPropertyDefinitions();
    EJDevPropertyDefinition save = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.SAVE_FORM_AFTER_EXECUTE, EJPropertyDefinitionType.BOOLEAN);
    save.setLabel("Save after execute");
    save.setDescription("Indicates if a form save should be executed after accepting the insert");
    save.setDefaultValue("false");
    mainGroup.addPropertyDefinition(save);
    addExtraButtonsGroup(mainGroup);
    return mainGroup;
}
Also used : EJPropertyDefinitionGroup(org.entirej.framework.core.properties.definitions.interfaces.EJPropertyDefinitionGroup) EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition)

Aggregations

EJDevPropertyDefinition (org.entirej.framework.dev.properties.EJDevPropertyDefinition)53 EJDevPropertyDefinitionGroup (org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)50 EJDevPropertyDefinitionList (org.entirej.framework.dev.properties.EJDevPropertyDefinitionList)15 EJPropertyDefinitionGroup (org.entirej.framework.core.properties.definitions.interfaces.EJPropertyDefinitionGroup)3