Search in sources :

Example 41 with EJDevPropertyDefinition

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

the class EJRWTListRecordBlockDefinition method getBlockPropertyDefinitionGroup.

/*
     * (non-Javadoc)
     * 
     * @seeorg.entirej.framework.renderers.IBlockRenderer#
     * getBlockPropertyDefinitionGroup()
     */
public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("List-Record Block");
    EJDevPropertyDefinition doubleClickActionCommand = new EJDevPropertyDefinition(EJRWTListRecordBlockDefinitionProperties.CLICK_ACTION_COMMAND, EJPropertyDefinitionType.ACTION_COMMAND);
    doubleClickActionCommand.setLabel("Click Action Command");
    doubleClickActionCommand.setDescription("Add an action command that will be sent to the action processor when a user clicks on this block");
    EJDevPropertyDefinition showTableBorder = new EJDevPropertyDefinition(EJRWTListRecordBlockDefinitionProperties.HIDE_TABLE_BORDER, EJPropertyDefinitionType.BOOLEAN);
    showTableBorder.setLabel("Hide Table Border");
    showTableBorder.setDescription("If selected, the renderer will hide the tables standard border");
    showTableBorder.setDefaultValue("false");
    EJDevPropertyDefinition allowRowSelection = new EJDevPropertyDefinition(EJRWTListRecordBlockDefinitionProperties.ROW_SELECTION_PROPERTY, EJPropertyDefinitionType.BOOLEAN);
    allowRowSelection.setLabel("Allow Row Selection");
    allowRowSelection.setDescription("Indicates if row selection is allowed for this block");
    allowRowSelection.setDefaultValue("true");
    EJDevPropertyDefinition filter = new EJDevPropertyDefinition(EJRWTTreeBlockDefinitionProperties.FILTER, EJPropertyDefinitionType.BOOLEAN);
    filter.setLabel("Add Filter");
    filter.setDescription("If selected, the renderer will show Filter support");
    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 rawHeight = new EJDevPropertyDefinition(EJRWTListRecordBlockDefinitionProperties.ROW_HEIGHT, EJPropertyDefinitionType.INTEGER);
    rawHeight.setLabel("Raw Height");
    rawHeight.setDescription("Preferred height of raw. If not specified will auto calculate  ");
    mainGroup.addPropertyDefinition(doubleClickActionCommand);
    mainGroup.addPropertyDefinition(showTableBorder);
    mainGroup.addPropertyDefinition(allowRowSelection);
    mainGroup.addPropertyDefinition(rawHeight);
    mainGroup.addPropertyDefinition(filter);
    mainGroup.addPropertyDefinition(message);
    EJDevPropertyDefinitionGroup sectionGroup = new EJDevPropertyDefinitionGroup("TITLE_BAR");
    sectionGroup.setLabel("Title Bar");
    EJDevPropertyDefinition title = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_TITLE, EJPropertyDefinitionType.STRING);
    title.setLabel("Title");
    title.setDescription("Title Bar Caption.");
    EJDevPropertyDefinition showTitleBarExpanded = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_EXPANDED, EJPropertyDefinitionType.BOOLEAN);
    showTitleBarExpanded.setLabel("Title Bar Expanded");
    showTitleBarExpanded.setDescription("If selected, the renderer will display section title bar expanded by default.");
    showTitleBarExpanded.setDefaultValue("true");
    EJDevPropertyDefinition titleBarmode = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE, EJPropertyDefinitionType.STRING);
    titleBarmode.setLabel("Title Bar Mode");
    titleBarmode.setDescription("The Title Bar dispaly mode");
    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");
    // titleBarmode.setDefaultValue(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE_GROUP);
    // titleBarmode.setMandatory(true);
    EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTIONS, "Actions");
    EJDevPropertyDefinition actionID = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_ID, EJPropertyDefinitionType.ACTION_COMMAND);
    actionID.setLabel("Action Command");
    actionID.setDescription("Action command id for action processor.");
    actionID.setMandatory(true);
    EJDevPropertyDefinition actionImage = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_IMAGE, EJPropertyDefinitionType.PROJECT_FILE);
    actionImage.setLabel("Action Image");
    actionImage.setDescription("Action image file from project path.");
    actionImage.setMandatory(true);
    EJDevPropertyDefinition actionName = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_NAME, EJPropertyDefinitionType.STRING);
    actionName.setLabel("Action Name");
    actionName.setDescription("Action name");
    EJDevPropertyDefinition actionTooltip = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_ACTION_TOOLTIP, EJPropertyDefinitionType.STRING);
    actionTooltip.setLabel("Action Tooltip");
    actionTooltip.setDescription("Action tooltip.");
    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)

Example 42 with EJDevPropertyDefinition

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

the class EJRWTListRecordBlockDefinition method getItemPropertiesDefinitionGroup.

/*
     * (non-Javadoc)
     * 
     * @seeorg.entirej.framework.renderers.IBlockRenderer#
     * getRequiredItemPropertiesDefinitionGroup()
     */
public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("List-Record Block: Required Item Properties");
    EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(EJRWTListRecordBlockDefinitionProperties.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);
    mainGroup.addPropertyDefinition(visualAttribute);
    return mainGroup;
}
Also used : EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition) EJDevPropertyDefinitionGroup(org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)

Example 43 with EJDevPropertyDefinition

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

the class EJRWTQueryScreenRendererDefinition method getQueryScreenPropertyDefinitionGroup.

public EJPropertyDefinitionGroup getQueryScreenPropertyDefinitionGroup() {
    EJPropertyDefinitionGroup mainGroup = getScreenPropertyDefinitions();
    EJDevPropertyDefinition clearButtonLabel = new EJDevPropertyDefinition(EJRWTScreenRendererDefinitionProperties.CLEAR_BUTTON_TEXT, EJPropertyDefinitionType.STRING);
    clearButtonLabel.setLabel("Clear Button Label");
    clearButtonLabel.setDescription("The label displayed on the clear button");
    mainGroup.addPropertyDefinition(clearButtonLabel);
    return mainGroup;
}
Also used : EJPropertyDefinitionGroup(org.entirej.framework.core.properties.definitions.interfaces.EJPropertyDefinitionGroup) EJDevPropertyDefinition(org.entirej.framework.dev.properties.EJDevPropertyDefinition)

Example 44 with EJDevPropertyDefinition

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

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

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