Search in sources :

Example 1 with EJDevPropertyDefinitionGroup

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

the class EJRWTScreenRendererDefinition method getSpacerItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getSpacerItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("ItemDisplayProperties");
    EJDevPropertyDefinition horizontalSpan = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.HORIZONTAL_SPAN, EJPropertyDefinitionType.INTEGER);
    horizontalSpan.setLabel("Horizontal Span");
    horizontalSpan.setDescription("The amount of rows this spacer should span");
    horizontalSpan.setDefaultValue("1");
    horizontalSpan.setMandatory(true);
    EJDevPropertyDefinition verticalSpan = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.VERTICAL_SPAN, EJPropertyDefinitionType.INTEGER);
    verticalSpan.setLabel("Vertical Span");
    verticalSpan.setDescription("The amount of columns this spacer should span");
    verticalSpan.setDefaultValue("1");
    verticalSpan.setMandatory(true);
    EJDevPropertyDefinition expandx = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXPAND_HORIZONTALLY, EJPropertyDefinitionType.BOOLEAN);
    expandx.setLabel("Expand Horizontally");
    expandx.setDescription("Indicates if this spacer should expand horizontally to fill the gap between items before and after this spacer");
    EJDevPropertyDefinition expandy = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXPAND_VERTICALLY, EJPropertyDefinitionType.BOOLEAN);
    expandy.setLabel("Expand Vertically");
    expandy.setDescription("Indicates if this spacer should expand vertically to fill the gap between items above and below this spacer");
    EJDevPropertyDefinition displayedWidth = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.DISPLAYED_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayedWidth.setLabel("Displayed Width");
    displayedWidth.setDescription("Indicates the width (in characters) of this spacer. If no value or zero has been entered, the width of the item will be relevent to its contents");
    displayedWidth.setNotifyWhenChanged(true);
    EJDevPropertyDefinition displayedHeight = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.DISPLAYED_HEIGHT_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayedHeight.setLabel("Displayed Height");
    displayedWidth.setDescription("Indicates the height (in characters) of this spacer. If no value or zero has been entered, the height of the item will be relevent to its contents");
    displayedHeight.setNotifyWhenChanged(true);
    mainGroup.addPropertyDefinition(horizontalSpan);
    mainGroup.addPropertyDefinition(verticalSpan);
    mainGroup.addPropertyDefinition(expandx);
    mainGroup.addPropertyDefinition(expandy);
    mainGroup.addPropertyDefinition(displayedWidth);
    mainGroup.addPropertyDefinition(displayedHeight);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 2 with EJDevPropertyDefinitionGroup

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

the class EJRWTScreenRendererDefinition method getScreenPropertyDefinitions.

protected EJPropertyDefinitionGroup getScreenPropertyDefinitions() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Screen Properties");
    EJDevPropertyDefinition title = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.TITLE, EJPropertyDefinitionType.STRING);
    title.setLabel("Title");
    title.setDescription("The title displayed in the screen window");
    title.setMultilingual(true);
    EJDevPropertyDefinition width = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.WIDTH, EJPropertyDefinitionType.INTEGER);
    width.setLabel("Width (pixels)");
    width.setDescription("The width of the screen in <b>Pixels</b>");
    width.setDefaultValue("300");
    width.setMandatory(true);
    EJDevPropertyDefinition height = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.HEIGHT, EJPropertyDefinitionType.INTEGER);
    height.setLabel("Height (pixels)");
    height.setDescription("The height of the screen in <b>Pixels</b>");
    height.setDefaultValue("400");
    height.setMandatory(true);
    EJDevPropertyDefinition maximize = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.MAXIMIZE, EJPropertyDefinitionType.BOOLEAN);
    maximize.setLabel("Maximize");
    maximize.setDescription("Indicates if the screen should be maximized when it is opened. This property is mainly used when creating RAP applications for mobile applications");
    maximize.setDefaultValue("false");
    EJDevPropertyDefinition numCols = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.NUM_COLS, EJPropertyDefinitionType.INTEGER);
    numCols.setLabel("Number of Columns");
    numCols.setDescription("The items will be displayed in a grid. This property defines the number of columns within the grid.");
    numCols.setDefaultValue("1");
    numCols.setMandatory(true);
    EJDevPropertyDefinition cancelButtonLabel = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.CANCEL_BUTTON_TEXT, EJPropertyDefinitionType.STRING);
    cancelButtonLabel.setLabel("Cancel Button Label");
    cancelButtonLabel.setDescription("The label displayed on the cancel button");
    EJDevPropertyDefinition saveButtonLabel = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXECUTE_BUTTON_TEXT, EJPropertyDefinitionType.STRING);
    saveButtonLabel.setLabel("Execute Button Label");
    saveButtonLabel.setDescription("The label displayed on the execute button");
    mainGroup.addPropertyDefinition(title);
    mainGroup.addPropertyDefinition(width);
    mainGroup.addPropertyDefinition(height);
    mainGroup.addPropertyDefinition(maximize);
    mainGroup.addPropertyDefinition(numCols);
    mainGroup.addPropertyDefinition(saveButtonLabel);
    mainGroup.addPropertyDefinition(cancelButtonLabel);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 3 with EJDevPropertyDefinitionGroup

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

the class EJRWTStandardLovRendererDefinition method getItemPropertiesDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Lov Renderer: Required Item Properties");
    EJDevPropertyDefinition displayWidth = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.DISPLAY_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayWidth.setLabel("Display Width");
    displayWidth.setDescription("The width (in characters) of this item within the lov");
    EJDevPropertyDefinition headerAlignment = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALIGNMENT, EJPropertyDefinitionType.STRING);
    headerAlignment.setLabel("Column Alignment");
    headerAlignment.setDescription("Indicates the alignment of data within the column");
    headerAlignment.setDefaultValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_LEFT);
    headerAlignment.addValidValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_LEFT, "Left");
    headerAlignment.addValidValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_RIGHT, "Right");
    headerAlignment.addValidValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_CENTER, "Center");
    EJDevPropertyDefinition allowColumnSorting = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.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 lov by clicking on the column header. Only lov contents will be sorted, no new data will be retreived from the datasource");
    allowColumnSorting.setDefaultValue("true");
    EJDevPropertyDefinition allowColunmResize = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.ALLOW_COLUMN_RESIZE, EJPropertyDefinitionType.BOOLEAN);
    allowColunmResize.setLabel("Allow Resize of Column");
    allowColunmResize.setDescription("If selected, the user will be able to resize the width of the columns wtihin this lov");
    allowColunmResize.setDefaultValue("true");
    EJDevPropertyDefinition allowColunmReorder = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.ALLOW_COLUMN_REORDER, EJPropertyDefinitionType.BOOLEAN);
    allowColunmReorder.setLabel("Allow Re-Order of Column");
    allowColunmReorder.setDescription("If selected, the user will be able to move columns of this lov to change their displayed position. The re-positioning will not be saved and the next time the lov is displayed, columns will be displayed in their original positions");
    allowColunmReorder.setDefaultValue("true");
    mainGroup.addPropertyDefinition(displayWidth);
    mainGroup.addPropertyDefinition(headerAlignment);
    mainGroup.addPropertyDefinition(allowColumnSorting);
    mainGroup.addPropertyDefinition(allowColunmResize);
    mainGroup.addPropertyDefinition(allowColunmReorder);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 4 with EJDevPropertyDefinitionGroup

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

the class EJRWTStandardLovRendererDefinition method getLovPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getLovPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Lov Renderer Properties");
    EJDevPropertyDefinition showTableBorder = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.HIDE_TABLE_BORDER, EJPropertyDefinitionType.BOOLEAN);
    showTableBorder.setLabel("Hide Border");
    showTableBorder.setDescription("If selected, the renderer will hide the lov's standard border");
    showTableBorder.setDefaultValue("false");
    EJDevPropertyDefinition showTableHeader = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.SHOW_HEADING_PROPERTY, EJPropertyDefinitionType.BOOLEAN);
    showTableHeader.setLabel("Show Headings");
    showTableHeader.setDescription("If selected, column headings will be displayed");
    showTableHeader.setDefaultValue("true");
    EJDevPropertyDefinition showVerticalLines = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.SHOW_VERTICAL_LINES, EJPropertyDefinitionType.BOOLEAN);
    showVerticalLines.setLabel("Show Vertical Lines");
    showVerticalLines.setDescription("Indicates if vertical lines should be displayed within the lov");
    showVerticalLines.setDefaultValue("true");
    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..");
    mainGroup.addPropertyDefinition(message);
    mainGroup.addPropertyDefinition(showTableBorder);
    mainGroup.addPropertyDefinition(showTableHeader);
    mainGroup.addPropertyDefinition(showVerticalLines);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 5 with EJDevPropertyDefinitionGroup

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

the class EJRWTCheckBoxRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Check Box Renderer");
    EJDevPropertyDefinition checkedValue = new EJDevPropertyDefinition(EJRWTCheckBoxRendererDefinition.CHECKED_VALUE, EJPropertyDefinitionType.STRING);
    checkedValue.setLabel("Value when checked");
    checkedValue.setDescription("The check box will be ticked if the underlying item has a value correspinding to this value. This value must be convertable to the data type of the item that this renderer has been assigned to");
    EJDevPropertyDefinition uncheckedValue = new EJDevPropertyDefinition(EJRWTCheckBoxRendererDefinition.UNCHECKED_VALUE, EJPropertyDefinitionType.STRING);
    uncheckedValue.setLabel("Value when unchecked");
    uncheckedValue.setDescription("The check box will be unticked if the underlying item has a value correspinding to this value. This value must be convertable to the data type of the item that this renderer has been assigned to");
    EJDevPropertyDefinition initialValue = new EJDevPropertyDefinition(EJRWTCheckBoxRendererDefinition.DEFAULT_VALUE, EJPropertyDefinitionType.STRING);
    initialValue.setLabel("Initial Check Box state");
    initialValue.setDescription("This is the default for the check box. If the initial state is set to Checked, then the item will contain the value according to the Value When Checked property");
    initialValue.addValidValue(EJRWTCheckBoxRendererDefinition.CHECKED, "Checked");
    initialValue.addValidValue(EJRWTCheckBoxRendererDefinition.UNCHECKED, "Unchecked");
    initialValue.setDefaultValue(EJRWTCheckBoxRendererDefinition.CHECKED);
    EJDevPropertyDefinition otherValueMapping = new EJDevPropertyDefinition(EJRWTCheckBoxRendererDefinition.OTHER_VALUE_MAPPING, EJPropertyDefinitionType.STRING);
    otherValueMapping.setLabel("Check Box mapping of other values");
    otherValueMapping.setDescription("Indicates if the check box should be checked or unchecked if the underlying item contains a value that is different than the checked or unchecked value");
    otherValueMapping.addValidValue(EJRWTCheckBoxRendererDefinition.CHECKED, "Checked");
    otherValueMapping.addValidValue(EJRWTCheckBoxRendererDefinition.UNCHECKED, "Unchecked");
    otherValueMapping.setDefaultValue(EJRWTCheckBoxRendererDefinition.CHECKED);
    otherValueMapping.setMandatory(true);
    EJDevPropertyDefinition triState = new EJDevPropertyDefinition(EJRWTCheckBoxRendererDefinition.TRI_STATE, EJPropertyDefinitionType.BOOLEAN);
    triState.setLabel("Tristate on Query Screen");
    triState.setDescription("Check boxes contain either a checked or unchecked state, i.e.  True or False. However, when searching for data, you may require values with either the checked or unchecked state. To be able to search for both Checked and Unchecked values, se this property to true. This will give you a Tri-State check box on the query screen.");
    triState.setDefaultValue("false");
    EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(CSS_KEY, EJPropertyDefinitionType.STRING);
    customCSSKey.setLabel("Custom CSS Key");
    customCSSKey.setDescription("Indicates custom CSS key in project CSS file that can customize  item look and feel. Please refer to Entirej RWT CSS guide.");
    mainGroup.addPropertyDefinition(checkedValue);
    mainGroup.addPropertyDefinition(uncheckedValue);
    mainGroup.addPropertyDefinition(initialValue);
    mainGroup.addPropertyDefinition(otherValueMapping);
    mainGroup.addPropertyDefinition(triState);
    mainGroup.addPropertyDefinition(customCSSKey);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

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