Search in sources :

Example 11 with EJDevPropertyDefinitionGroup

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

the class EJRWTButtonItemRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Button Item Renderer");
    EJDevPropertyDefinition textAllignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
    textAllignment.setLabel("Alignment");
    textAllignment.setDescription("The alignment of the buttons label or image");
    textAllignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
    textAllignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
    textAllignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
    textAllignment.setDefaultValue(PROPERTY_ALIGNMENT_CENTER);
    EJDevPropertyDefinition hideBorder = new EJDevPropertyDefinition(PROPERTY_HIDE_BORDER, EJPropertyDefinitionType.BOOLEAN);
    hideBorder.setLabel("Hide Border");
    hideBorder.setDescription("Indicates if the border of the button should be hidden, this is usefull when adding pictures to a button");
    hideBorder.setDefaultValue("false");
    EJDevPropertyDefinition pic = new EJDevPropertyDefinition("PICTURE", EJPropertyDefinitionType.PROJECT_FILE);
    pic.setLabel("Picture");
    pic.setDescription("Choose an image file from you project to display on the button");
    EJDevPropertyDefinition defaultButton = new EJDevPropertyDefinition(PROPERTY_DEFAULT_BUTTON, EJPropertyDefinitionType.BOOLEAN);
    defaultButton.setLabel("Default Button");
    defaultButton.setDescription(" Specifies that the button should be identified as the default button. At runtime, the end user can invoke the default button by pressing [Select] if focus is within the window that contains the default button. \n\n        On some client frameworks, the default button is bordered or highlighted in a unique fashion to distinguish it from other buttons in the interface.");
    EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(textAllignment);
    mainGroup.addPropertyDefinition(hideBorder);
    mainGroup.addPropertyDefinition(pic);
    mainGroup.addPropertyDefinition(defaultButton);
    mainGroup.addPropertyDefinition(customCSSKey);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 12 with EJDevPropertyDefinitionGroup

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

the class EJRWTImageItemRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Image Item Renderer");
    mainGroup.setDescription("The image item will display an image that is returned from your data source for the item. The item would contain either the name of an image within your project or provide a byte array containing the image data");
    EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
    textAlignment.setLabel("Alignment");
    textAlignment.setDescription("The alignment of the image displayed within this label");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
    textAlignment.setDefaultValue(PROPERTY_ALIGNMENT_CENTER);
    EJDevPropertyDefinition pic = new EJDevPropertyDefinition(PROPERTY_IMAGE, EJPropertyDefinitionType.PROJECT_FILE);
    pic.setLabel("Default Image");
    pic.setDescription("The default image to display when this item is displayed and no image has yet been selected from the blocks data");
    EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(textAlignment);
    mainGroup.addPropertyDefinition(pic);
    mainGroup.addPropertyDefinition(customCSSKey);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 13 with EJDevPropertyDefinitionGroup

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

the class EJRWTTextAreaRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Text Area Renderer");
    mainGroup.setDescription("The Text Area renderer is used when displaying long textual values");
    EJDevPropertyDefinition maxLength = new EJDevPropertyDefinition(PROPERTY_MAXLENGTH, EJPropertyDefinitionType.INTEGER);
    maxLength.setLabel("Maximum Length");
    maxLength.setDescription("The maximum amount of characters allowed within this item");
    EJDevPropertyDefinition textCase = new EJDevPropertyDefinition(PROPERTY_CASE, EJPropertyDefinitionType.STRING);
    textCase.setLabel("Case");
    textCase.setDescription("The character case for the text displayed within this item");
    textCase.addValidValue(PROPERTY_CASE_UPPER, "Upper");
    textCase.addValidValue(PROPERTY_CASE_LOWER, "Lower");
    textCase.addValidValue(PROPERTY_CASE_MIXED, "Mixed");
    EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
    textAlignment.setLabel("Alignment");
    textAlignment.setDescription("The alignment of the text displayed within this item");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
    textAlignment.setDefaultValue("Left");
    EJDevPropertyDefinition displayValueAsLabel = new EJDevPropertyDefinition(PROPERTY_DISPLAY_VAUE_AS_LABEL, EJPropertyDefinitionType.BOOLEAN);
    displayValueAsLabel.setLabel("Display value as label");
    displayValueAsLabel.setDefaultValue("false");
    displayValueAsLabel.setDescription("Indicates if this item should be displayed as a label. Items displayed as labels cannot be modified by the user.");
    EJDevPropertyDefinition wrapText = new EJDevPropertyDefinition(PROPERTY_WRAP, EJPropertyDefinitionType.BOOLEAN);
    wrapText.setLabel("Wrap Text");
    wrapText.setDefaultValue("true");
    wrapText.setDescription("Indicates if this item text should be wraped and should should display horizontal scroll or not.");
    EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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.");
    EJDevPropertyDefinition message = new EJDevPropertyDefinition(PROPERTY_MESSAGE, EJPropertyDefinitionType.STRING);
    message.setLabel("Message");
    message.setDescription("The message text is displayed as a hint for the user, indicating the purpose of the field..");
    mainGroup.addPropertyDefinition(maxLength);
    mainGroup.addPropertyDefinition(textCase);
    mainGroup.addPropertyDefinition(textAlignment);
    mainGroup.addPropertyDefinition(displayValueAsLabel);
    mainGroup.addPropertyDefinition(wrapText);
    mainGroup.addPropertyDefinition(message);
    mainGroup.addPropertyDefinition(customCSSKey);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 14 with EJDevPropertyDefinitionGroup

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

the class EJRWTMultiRecordBlockDefinition method getItemPropertiesDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Multi-Record Block: Required Item Properties");
    EJDevPropertyDefinition displayedWidth = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.DISPLAY_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayedWidth.setLabel("Displayed Width (chars)");
    displayedWidth.setDescription("The width <b>(in characters)</b> of this items column within the block. If zero is specified then the width of the column will be relative to the data it contains and the width of the other columns");
    EJDevPropertyDefinition headerAllignment = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALIGNMENT, EJPropertyDefinitionType.STRING);
    headerAllignment.setLabel("Column Alignment");
    headerAllignment.setDescription("Indicates the alignment of the contents within this column.");
    headerAllignment.setDefaultValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_LEFT);
    headerAllignment.addValidValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_LEFT, "Left");
    headerAllignment.addValidValue(EJRWTMultiRecordBlockDefinitionProperties.COLUMN_ALLIGN_RIGHT, "Right");
    headerAllignment.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 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");
    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 within the block");
    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 block to change their displayed position. The re-positioning will not be saved and the next time the block is displayed, columns will be displayed in their original positions");
    allowColunmReorder.setDefaultValue("true");
    EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.VISUAL_ATTRIBUTE_PROPERTY, EJPropertyDefinitionType.VISUAL_ATTRIBUTE);
    visualAttribute.setLabel("Visual Attribute");
    visualAttribute.setDescription("The column will be displayed using the properties from the chosen visual attribute");
    visualAttribute.setMandatory(false);
    mainGroup.addPropertyDefinition(displayedWidth);
    mainGroup.addPropertyDefinition(headerAllignment);
    mainGroup.addPropertyDefinition(allowColumnSorting);
    mainGroup.addPropertyDefinition(allowColunmResize);
    mainGroup.addPropertyDefinition(allowColunmReorder);
    mainGroup.addPropertyDefinition(visualAttribute);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 15 with EJDevPropertyDefinitionGroup

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

the class EJRWTPieChartRecordBlockDefinition 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 strokeWidth = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.LINE_WIDTH, EJPropertyDefinitionType.INTEGER);
    strokeWidth.setLabel("Border Width");
    strokeWidth.setDescription("The border width of the arcs in the dataset.");
    strokeWidth.setDefaultValue("1");
    mainGroup.addPropertyDefinition(visualAttribute);
    mainGroup.addPropertyDefinition(actionCmd);
    mainGroup.addPropertyDefinition(strokeWidth);
    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