Search in sources :

Example 41 with EJDevPropertyDefinitionGroup

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

the class EJRWTScreenRendererDefinition method getItemPropertyDefinitions.

protected EJPropertyDefinitionGroup getItemPropertyDefinitions() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("ItemDisplayProperties");
    EJDevPropertyDefinition itemPosition = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.ITEM_POSITION_PROPERTY, EJPropertyDefinitionType.STRING);
    itemPosition.setLabel("Item Orientation");
    itemPosition.setDescription("If the item is fixed in size and smaller than other items within its displayed column, then you can indicate how the item is displayed");
    itemPosition.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_LEFT_PROPERTY, "Left");
    itemPosition.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_RIGHT_PROPERTY, "Right");
    itemPosition.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_CENTER_PROPERTY, "Center");
    itemPosition.setDefaultValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_LEFT_PROPERTY);
    itemPosition.setMandatory(true);
    EJDevPropertyDefinition labelPosition = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.LABEL_POSITION_PROPERTY, EJPropertyDefinitionType.STRING);
    labelPosition.setLabel("Label Position");
    labelPosition.setDescription("The position the items label should be displayed i.e. Before or after the item");
    labelPosition.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_POSITION_LEFT_PROPERTY, "Left");
    labelPosition.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_POSITION_RIGHT_PROPERTY, "Right");
    labelPosition.setDefaultValue(EJRWTScreenRendererDefinitionProperties.LABEL_POSITION_LEFT_PROPERTY);
    EJDevPropertyDefinition labelOrientation = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_PROPERTY, EJPropertyDefinitionType.STRING);
    labelOrientation.setLabel("Label Orientation");
    labelOrientation.setDescription("The orientation of the labels text");
    labelOrientation.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_LEFT_PROPERTY, "Left");
    labelOrientation.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_RIGHT_PROPERTY, "Right");
    labelOrientation.addValidValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_CENTER_PROPERTY, "Center");
    labelOrientation.setDefaultValue(EJRWTScreenRendererDefinitionProperties.LABEL_ORIENTATION_RIGHT_PROPERTY);
    labelOrientation.setMandatory(true);
    EJDevPropertyDefinition horizontalSpan = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.HORIZONTAL_SPAN, EJPropertyDefinitionType.INTEGER);
    horizontalSpan.setLabel("Horizontal Span");
    horizontalSpan.setDescription("The amount of rows this item 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 item should span");
    verticalSpan.setDefaultValue("1");
    verticalSpan.setMandatory(true);
    EJDevPropertyDefinition expandHorizontally = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXPAND_HORIZONTALLY, EJPropertyDefinitionType.BOOLEAN);
    expandHorizontally.setLabel("Expand Horizontally");
    expandHorizontally.setDescription("Indicates if this item should expand horizontally when the canvas is stretched.");
    expandHorizontally.setDefaultValue("true");
    expandHorizontally.setMandatory(true);
    EJDevPropertyDefinition expandVertically = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXPAND_VERTICALLY, EJPropertyDefinitionType.BOOLEAN);
    expandVertically.setLabel("Expand Vertically");
    expandVertically.setDescription("Indicates if this item should expand vertically when the canvas is stretched.");
    expandVertically.setDefaultValue("false");
    expandVertically.setMandatory(true);
    EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.VISUAL_ATTRIBUTE_PROPERTY, EJPropertyDefinitionType.VISUAL_ATTRIBUTE);
    visualAttribute.setLabel("Visual Attribute");
    visualAttribute.setDescription("The visual attribute that should be applied to this item");
    visualAttribute.setMandatory(false);
    EJDevPropertyDefinition displayedWidth = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.DISPLAYED_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
    displayedWidth.setLabel("Displayed Width");
    displayedWidth.setDescription("Indicates width (in characters) of this item. If no value or zero has been entered, the width of the item will depend upon 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 item. If no value or zero has been entered, the height of the item will be relevent to its contents");
    displayedHeight.setNotifyWhenChanged(true);
    mainGroup.addPropertyDefinition(itemPosition);
    mainGroup.addPropertyDefinition(labelPosition);
    mainGroup.addPropertyDefinition(labelOrientation);
    mainGroup.addPropertyDefinition(horizontalSpan);
    mainGroup.addPropertyDefinition(verticalSpan);
    mainGroup.addPropertyDefinition(expandHorizontally);
    mainGroup.addPropertyDefinition(expandVertically);
    mainGroup.addPropertyDefinition(displayedWidth);
    mainGroup.addPropertyDefinition(displayedHeight);
    mainGroup.addPropertyDefinition(visualAttribute);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 42 with EJDevPropertyDefinitionGroup

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

the class EJRWTScreenRendererDefinition method addExtraButtonsGroup.

protected void addExtraButtonsGroup(EJPropertyDefinitionGroup parentGroup) {
    EJDevPropertyDefinition extraButton1Label = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_ONE_LABEL, EJPropertyDefinitionType.STRING);
    extraButton1Label.setLabel("Extra Button One Label");
    extraButton1Label.setMultilingual(true);
    extraButton1Label.setDescription("The label displayed on the first extra button If no label is specified, the button will not be displayed");
    EJDevPropertyDefinition extraButton1Command = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_ONE_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    extraButton1Command.setLabel("Extra Button One Action Command");
    extraButton1Command.setDescription("The action command to pass to the ExecuteActionCommand processor method for Extra Button One");
    EJDevPropertyDefinition extraButton2Label = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_TWO_LABEL, EJPropertyDefinitionType.STRING);
    extraButton2Label.setLabel("Extra Button Two Label");
    extraButton2Label.setDescription("The label displayed on the second extra button. If no label is specified, the button will not be displayed");
    extraButton2Label.setMultilingual(true);
    EJDevPropertyDefinition extraButton2Command = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_TWO_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    extraButton2Command.setLabel("Extra Button Two Action Command");
    extraButton2Command.setDescription("The action command to pass to the ExecuteActionCommand processor method for Extra Button Two");
    EJDevPropertyDefinition extraButton3Label = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_THREE_LABEL, EJPropertyDefinitionType.STRING);
    extraButton3Label.setLabel("Extra Button Three Label");
    extraButton3Label.setDescription("The label displayed on the third extra button. If no label is specified, the button will not be displayed");
    extraButton3Label.setMultilingual(true);
    EJDevPropertyDefinition extraButton3Command = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_THREE_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    extraButton3Command.setLabel("Extra Button Three Action Command");
    extraButton3Command.setDescription("The action command to pass to the ExecuteActionCommand processor method for Extra Button Three");
    EJDevPropertyDefinition extraButton4Label = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_FOUR_LABEL, EJPropertyDefinitionType.STRING);
    extraButton4Label.setLabel("Extra Button Four Label");
    extraButton4Label.setDescription("The label displayed on the fourth extra button. If no label is specified, the button will not be displayed");
    extraButton4Label.setMultilingual(true);
    EJDevPropertyDefinition extraButton4Command = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_FOUR_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    extraButton4Command.setLabel("Extra Button Four Action Command");
    extraButton4Command.setDescription("The action command to pass to the ExecuteActionCommand processor method for Extra Button Four");
    EJDevPropertyDefinition extraButton5Label = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_FIVE_LABEL, EJPropertyDefinitionType.STRING);
    extraButton5Label.setLabel("Extra Button Five Label");
    extraButton5Label.setDescription("The label displayed on the fith extra button. If no label is specified, the button will not be displayed");
    extraButton5Label.setMultilingual(true);
    EJDevPropertyDefinition extraButton5Command = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTON_FIVE_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    extraButton5Command.setLabel("Extra Button Five Action Command");
    extraButton5Command.setDescription("The action command to pass to the ExecuteActionCommand processor method for Extra Button Five");
    EJDevPropertyDefinitionGroup extraButtonGroup = new EJDevPropertyDefinitionGroup(EJRWTScreenRendererDefinitionProperties.EXTRA_BUTTONS_GROUP);
    extraButtonGroup.setLabel("Extra Buttons");
    extraButtonGroup.addPropertyDefinition(extraButton1Label);
    extraButtonGroup.addPropertyDefinition(extraButton1Command);
    extraButtonGroup.addPropertyDefinition(extraButton2Label);
    extraButtonGroup.addPropertyDefinition(extraButton2Command);
    extraButtonGroup.addPropertyDefinition(extraButton3Label);
    extraButtonGroup.addPropertyDefinition(extraButton3Command);
    extraButtonGroup.addPropertyDefinition(extraButton4Label);
    extraButtonGroup.addPropertyDefinition(extraButton4Command);
    extraButtonGroup.addPropertyDefinition(extraButton5Label);
    extraButtonGroup.addPropertyDefinition(extraButton5Command);
    parentGroup.addSubGroup(extraButtonGroup);
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 43 with EJDevPropertyDefinitionGroup

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

the class EJRWTComboBoxRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Combo Box Renderer");
    mainGroup.setDescription("Combo Boxes contain a list of data which is retreved from an Lov Definition. To give your combo boxes static values, create a service tha returns the static data, create an Lov Definition based on this service and then assign the Lov Definition to the Combo Box");
    EJDevPropertyDefinition lovDefName = new EJDevPropertyDefinition(LOV_DEFINITION_NAME, EJPropertyDefinitionType.LOV_DEFINITION_WITH_ITEMS);
    lovDefName.setLabel("Lov Definition Item Name");
    lovDefName.setDescription("The name of the Lov definition that will provide the data that will be displayed within the Combo Box");
    lovDefName.setNotifyWhenChanged(true);
    EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(DISPLAY_COLUMNS, "Display Columns");
    list.setDescription("A Combo Box has a label which the user can see as the selected value and a return value which is the actual value of the item. You can provide a list of columns whos column values will be concatenated together and displayed to the user");
    EJDevPropertyDefinition lovItemName = new EJDevPropertyDefinition(COLUMN_NAME, EJPropertyDefinitionType.STRING);
    lovItemName.setLabel("Item");
    lovItemName.setDescription("The item to display in the Combo Box value");
    lovItemName.setLoadValidValuesDynamically(true);
    lovItemName.setMandatory(true);
    EJDevPropertyDefinition lovDisplayItem = new EJDevPropertyDefinition(COLUMN_DISPLAYED, EJPropertyDefinitionType.BOOLEAN);
    lovDisplayItem.setLabel("Displayed");
    lovDisplayItem.setDescription("Indicates if the items value will displayed in the combo list or just used for mapping of values");
    lovDisplayItem.setDefaultValue("true");
    EJDevPropertyDefinition lovItemFormat = new EJDevPropertyDefinition(COLUMN_FORMAT, EJPropertyDefinitionType.STRING);
    lovItemFormat.setLabel("Datatype Format");
    lovItemFormat.setDescription("You can provide a default formatting option for the items value before it is displayed in the Combo Box. This is most important for Numbers and Dates. EntireJ uses the standard java.text.DecimalFormat and java.text.SimpleDataFormat options (##0.#####E0, yyyy.MM.dd");
    EJDevPropertyDefinition returnItem = new EJDevPropertyDefinition(COLUMN_RETURN_ITEM, EJPropertyDefinitionType.BLOCK_ITEM);
    returnItem.setLabel("Return Item");
    returnItem.setDescription("This value will be set to the given value of the specified item when the user chooses a value from the Combo Box");
    list.addPropertyDefinition(lovItemName);
    list.addPropertyDefinition(lovDisplayItem);
    list.addPropertyDefinition(returnItem);
    list.addPropertyDefinition(lovItemFormat);
    EJDevPropertyDefinition visibleItemCount = new EJDevPropertyDefinition(VISIBLE_ITEM_COUNT, EJPropertyDefinitionType.INTEGER);
    visibleItemCount.setLabel("Visible Item Count");
    visibleItemCount.setDescription("Indicates how many values should be displayed when the combo box is opened");
    visibleItemCount.setMandatory(false);
    visibleItemCount.setDefaultValue("10");
    visibleItemCount.setNotifyWhenChanged(true);
    EJDevPropertyDefinition autorefreshLov = new EJDevPropertyDefinition(AUTO_REFRESH, EJPropertyDefinitionType.BOOLEAN);
    autorefreshLov.setLabel("Auto-Refresh");
    autorefreshLov.setDescription("Because Combo Boxes are based upon lov definitions, lov query mapping value changes will auto refresh combo content");
    autorefreshLov.setDefaultValue("true");
    EJDevPropertyDefinition initialiseLov = new EJDevPropertyDefinition(INITIALIES_LOV, EJPropertyDefinitionType.BOOLEAN);
    initialiseLov.setLabel("Populate on creation");
    initialiseLov.setDescription("Because Combo Boxes are based upon lov definitions, they need to make a query to be created. Thsi could take time dependin on how many combo boxes you are displaying. You can set the Populate On Creation to false to delay the population of the Combo Box until either the items gets set to a value in the action processor or you request that the item renderer be refreshed");
    initialiseLov.setDefaultValue("true");
    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(lovDefName);
    mainGroup.addPropertyDefinition(initialiseLov);
    mainGroup.addPropertyDefinition(autorefreshLov);
    mainGroup.addPropertyDefinitionList(list);
    mainGroup.addPropertyDefinition(visibleItemCount);
    mainGroup.addPropertyDefinition(customCSSKey);
    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)

Example 44 with EJDevPropertyDefinitionGroup

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

the class EJRWTDateTimeItemRendererDefinition method getItemPropertyDefinitionGroup.

public EJDevPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Date Item Renderer");
    EJDevPropertyDefinition type = new EJDevPropertyDefinition(PROPERTY_TYPE, EJPropertyDefinitionType.STRING);
    type.setLabel("Type");
    type.setDescription("Item Dispaly type");
    type.setLoadValidValuesDynamically(true);
    type.setNotifyWhenChanged(true);
    type.setDefaultValue(PROPERTY_TYPE_DATE);
    EJDevPropertyDefinition details = new EJDevPropertyDefinition(PROPERTY_DETAILS, EJPropertyDefinitionType.STRING);
    details.setLabel("Details");
    details.setDescription("Item Details");
    details.setLoadValidValuesDynamically(true);
    details.setNotifyWhenChanged(true);
    details.setDefaultValue(PROPERTY_DETAILS_MEDIUM);
    EJDevPropertyDefinition dropDown = new EJDevPropertyDefinition(PROPERTY_DROP_DOWN, EJPropertyDefinitionType.BOOLEAN);
    dropDown.setLabel("Drop Down");
    dropDown.setDefaultValue("false");
    dropDown.setDescription("Indicates if this item should be displayed selection drop down.");
    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 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(type);
    mainGroup.addPropertyDefinition(details);
    mainGroup.addPropertyDefinition(dropDown);
    mainGroup.addPropertyDefinition(displayValueAsLabel);
    mainGroup.addPropertyDefinition(customCSSKey);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 45 with EJDevPropertyDefinitionGroup

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

the class EJRWTListBoxRendererDefinition method getItemPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("List Box Renderer");
    mainGroup.setDescription("List Boxes contain a list of data which is retreved from an Lov Definition. To give your list boxes static values, create a service tha returns the static data, create an Lov Definition based on this service and then assign the Lov Definition to the List Box");
    EJDevPropertyDefinition lovDefName = new EJDevPropertyDefinition(LOV_DEFINITION_NAME, EJPropertyDefinitionType.LOV_DEFINITION_WITH_ITEMS);
    lovDefName.setLabel("Lov Definition Item Name");
    lovDefName.setDescription("The name of the Lov definition that will provide the data that will be displayed within the List Box");
    lovDefName.setNotifyWhenChanged(true);
    EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(DISPLAY_COLUMNS, "Display Columns");
    list.setDescription("A List Box has a label which the user can see as the selected value and a return value which is the actual value of the item. You can provide a list of columns whos column values will be concatenated together and displayed to the user");
    EJDevPropertyDefinition lovItemName = new EJDevPropertyDefinition(COLUMN_NAME, EJPropertyDefinitionType.STRING);
    lovItemName.setLabel("Item");
    lovItemName.setDescription("The item to display in the List Box value");
    lovItemName.setLoadValidValuesDynamically(true);
    lovItemName.setMandatory(true);
    EJDevPropertyDefinition filter = new EJDevPropertyDefinition(FILTER, EJPropertyDefinitionType.BOOLEAN);
    filter.setLabel("Add Filter");
    filter.setDescription("If selected, the renderer will display a filter field above the item data. This filter can then be used by users to filter the item displayed data");
    filter.setDefaultValue("false");
    filter.setDefaultValue("false");
    EJDevPropertyDefinition lovDisplayItem = new EJDevPropertyDefinition(COLUMN_DISPLAYED, EJPropertyDefinitionType.BOOLEAN);
    lovDisplayItem.setLabel("Displayed");
    lovDisplayItem.setDescription("Indicates if the items value will displayed in the List list or just used for mapping of values");
    lovDisplayItem.setDefaultValue("true");
    EJDevPropertyDefinition lovItemFormat = new EJDevPropertyDefinition(COLUMN_FORMAT, EJPropertyDefinitionType.STRING);
    lovItemFormat.setLabel("Datatype Format");
    lovItemFormat.setDescription("You can provide a default formatting option for the items value before it is displayed in the List Box. This is most important for Numbers and Dates. EntireJ uses the standard java.text.DecimalFormat and java.text.SimpleDataFormat options (##0.#####E0, yyyy.MM.dd");
    EJDevPropertyDefinition returnItem = new EJDevPropertyDefinition(COLUMN_RETURN_ITEM, EJPropertyDefinitionType.BLOCK_ITEM);
    returnItem.setLabel("Return Item");
    returnItem.setDescription("This value will be set to the given value of the specified item when the user chooses a value from the List Box");
    EJDevPropertyDefinition imageItem = new EJDevPropertyDefinition(COLUMN_IMAGE_ITEM, EJPropertyDefinitionType.STRING);
    imageItem.setLabel("Image Item");
    imageItem.setLoadValidValuesDynamically(true);
    list.addPropertyDefinition(lovItemName);
    list.addPropertyDefinition(lovDisplayItem);
    list.addPropertyDefinition(returnItem);
    list.addPropertyDefinition(lovItemFormat);
    EJDevPropertyDefinition initialiseLov = new EJDevPropertyDefinition(INITIALIES_LOV, EJPropertyDefinitionType.BOOLEAN);
    initialiseLov.setLabel("Populate on creation");
    initialiseLov.setDescription("Because List Boxes are based upon lov definitions, they need to make a query to be created. Thsi could take time dependin on how many list boxes you are displaying. You can set the Populate On Creation to false to delay the population of the List Box until either the items gets set to a value in the action processor or you request that the item renderer be refreshed");
    initialiseLov.setDefaultValue("true");
    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(lovDefName);
    mainGroup.addPropertyDefinition(filter);
    mainGroup.addPropertyDefinition(imageItem);
    mainGroup.addPropertyDefinition(initialiseLov);
    mainGroup.addPropertyDefinition(customCSSKey);
    mainGroup.addPropertyDefinitionList(list);
    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