Search in sources :

Example 21 with EJDevPropertyDefinitionGroup

use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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 EJDevPropertyDefinitionGroup

use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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 EJDevPropertyDefinitionGroup

use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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 EJDevPropertyDefinitionGroup

use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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 EJDevPropertyDefinitionGroup

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

the class EJRWTMultiRecordBlockDefinition method getBlockPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Multi-Record Block");
    EJDevPropertyDefinition doubleClickActionCommand = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.DOUBLE_CLICK_ACTION_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    doubleClickActionCommand.setLabel("Double Click Action Command");
    doubleClickActionCommand.setDescription("Add an action command that will be sent to the action processor when a user double clicks on this block");
    EJDevPropertyDefinition showTableBorder = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.HIDE_TABLE_BORDER, EJPropertyDefinitionType.BOOLEAN);
    showTableBorder.setLabel("Hide Table Border");
    showTableBorder.setDescription("If selected, the renderer will hide the blocks standard border");
    showTableBorder.setDefaultValue("false");
    EJDevPropertyDefinition showTableHeader = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.SHOW_HEADING_PROPERTY, EJPropertyDefinitionType.BOOLEAN);
    showTableHeader.setLabel("Show Headings");
    showTableHeader.setDescription("If selected, the cloumn headings of the block will be displayed");
    showTableHeader.setDefaultValue("true");
    EJDevPropertyDefinition filter = new EJDevPropertyDefinition(EJRWTTreeBlockDefinitionProperties.FILTER, EJPropertyDefinitionType.BOOLEAN);
    filter.setLabel("Add Filter");
    filter.setDescription("If selected, the renderer will display a filter field above the blocks data. This filter can then be used by users to filter the blocks displayed data");
    filter.setDefaultValue("false");
    EJDevPropertyDefinition message = new EJDevPropertyDefinition("MESSAGE", EJPropertyDefinitionType.STRING);
    message.setLabel("Filter Message");
    message.setDescription("The message text is displayed as a hint for the user, indicating the purpose of the filter.");
    EJDevPropertyDefinition showVerticalLines = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.SHOW_VERTICAL_LINES, EJPropertyDefinitionType.BOOLEAN);
    showVerticalLines.setLabel("Show Vertical Lines");
    showVerticalLines.setDescription("Indicates if the block should display vertical lines");
    showVerticalLines.setDefaultValue("true");
    EJDevPropertyDefinition isFixedInTable = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.COLUMNS_FIXED, EJPropertyDefinitionType.INTEGER);
    isFixedInTable.setLabel("Fixed Columns");
    isFixedInTable.setDescription("Indicates how many columns are fixed to the left part of this block. Fixed columns hold their position even when the user scrolls horizontally to see the hidden columns");
    EJDevPropertyDefinition rowHeight = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.DISPLAY_HEIGH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    rowHeight.setLabel("Row Height");
    EJDevPropertyDefinition htmlFormat = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.ENABLE_MARKUP, EJPropertyDefinitionType.BOOLEAN);
    htmlFormat.setLabel("XHTML Formatting");
    htmlFormat.setDescription("If this property is set, the Table formats certain XHTML tags ");
    mainGroup.addPropertyDefinition(doubleClickActionCommand);
    mainGroup.addPropertyDefinition(showTableBorder);
    mainGroup.addPropertyDefinition(showTableHeader);
    mainGroup.addPropertyDefinition(filter);
    mainGroup.addPropertyDefinition(message);
    mainGroup.addPropertyDefinition(showVerticalLines);
    mainGroup.addPropertyDefinition(isFixedInTable);
    mainGroup.addPropertyDefinition(rowHeight);
    mainGroup.addPropertyDefinition(htmlFormat);
    EJDevPropertyDefinitionGroup sectionGroup = new EJDevPropertyDefinitionGroup("TITLE_BAR");
    sectionGroup.setLabel("Title Bar");
    sectionGroup.setDescription("Title bars are used containers for this block. These can be opened and collapsed according to the client framework implementation. ");
    EJDevPropertyDefinition titleBarmode = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE, EJPropertyDefinitionType.STRING);
    titleBarmode.setLabel("Title Bar Mode");
    titleBarmode.setDescription("The type of title bar to use");
    titleBarmode.addValidValue(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE_GROUP, "Group");
    titleBarmode.addValidValue(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE_TWISTIE, "Twistie");
    titleBarmode.addValidValue(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE_TREE_NODE, "Tree Node");
    titleBarmode.addValidValue(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE_NO_EXPAND, "Not Expandable");
    EJDevPropertyDefinition title = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_TITLE, EJPropertyDefinitionType.STRING);
    title.setLabel("Title");
    title.setDescription("The title to be displayed on this title bar");
    EJDevPropertyDefinition showTitleBarExpanded = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_EXPANDED, EJPropertyDefinitionType.BOOLEAN);
    showTitleBarExpanded.setLabel("Title Bar Expanded");
    showTitleBarExpanded.setDescription("If selected , this blocks title bar will be expanded by default");
    showTitleBarExpanded.setDefaultValue("true");
    EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTIONS, "Actions");
    list.setDescription("Add actions to be displayed within the title bar. Each action will call the forms executeActionCommand with the action defined here");
    EJDevPropertyDefinition actionID = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_ID, EJPropertyDefinitionType.ACTION_COMMAND);
    actionID.setLabel("Action Command");
    actionID.setDescription("The action command to be used when this action is selected");
    actionID.setMandatory(true);
    EJDevPropertyDefinition actionImage = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_IMAGE, EJPropertyDefinitionType.PROJECT_FILE);
    actionImage.setLabel("Action Image");
    actionImage.setDescription("The image to display in the title bar for this action");
    actionImage.setMandatory(true);
    EJDevPropertyDefinition actionName = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_NAME, EJPropertyDefinitionType.STRING);
    actionName.setLabel("Action Name");
    actionName.setDescription("The name of this action");
    EJDevPropertyDefinition actionTooltip = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_TOOLTIP, EJPropertyDefinitionType.STRING);
    actionTooltip.setLabel("Action Tooltip");
    actionTooltip.setDescription("The text entered here will be displayed when the user hovers the mouse pointer over this action");
    list.addPropertyDefinition(actionID);
    list.addPropertyDefinition(actionImage);
    list.addPropertyDefinition(actionName);
    list.addPropertyDefinition(actionTooltip);
    sectionGroup.addPropertyDefinition(titleBarmode);
    sectionGroup.addPropertyDefinition(title);
    sectionGroup.addPropertyDefinitionList(list);
    sectionGroup.addPropertyDefinition(showTitleBarExpanded);
    mainGroup.addSubGroup(sectionGroup);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup) EJDevPropertyDefinitionList(org.entirej.framework.dev.properties.EJDevPropertyDefinitionList)

Aggregations

EJDevPropertyDefinition (org.entirej.framework.dev.properties.EJDevPropertyDefinition)50 EJDevPropertyDefinitionGroup (org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)50 EJDevPropertyDefinitionList (org.entirej.framework.dev.properties.EJDevPropertyDefinitionList)15