Search in sources :

Example 1 with EJDevPropertyDefinitionList

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

the class EJRWTSingleRecordBlockDefinition method getBlockPropertyDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Single-Record Block");
    EJDevPropertyDefinitionGroup sectionGroup = new EJDevPropertyDefinitionGroup(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR);
    sectionGroup.setLabel("Title Bar");
    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");
    EJDevPropertyDefinition titleBarmode = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_TITLE_BAR_MODE, EJPropertyDefinitionType.STRING);
    titleBarmode.setLabel("Title Bar Mode");
    titleBarmode.setDescription("If you are using the Title Bars for your blocks, then it is possible to expand or collapse the block to either show or hide the content. Setting this property to either Tree or Twistie will enable the expand functionality for this block");
    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");
    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("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)

Example 2 with EJDevPropertyDefinitionList

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

the class EJRWTStatusbarRendererDefinition method getComponentPropertyDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getComponentPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("STATUSBARCONFIG");
    mainGroup.setLabel("StatusBar Configuration");
    EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(SECTIONS, "Sections");
    // TODO: write Section description
    // TODO:
    EJDevPropertyDefinition paramater = new EJDevPropertyDefinition(PARAMETER, EJPropertyDefinitionType.APPLICATION_PARAMETER);
    // add
    // parameter
    // selection
    // support
    paramater.setLabel("Paramater");
    // TODO:
    paramater.setDescription("Application Paramater that this section represent.");
    // fix
    // this
    // description
    EJDevPropertyDefinition action = new EJDevPropertyDefinition(ACTION, EJPropertyDefinitionType.ACTION_COMMAND);
    action.setLabel("Action Command");
    action.setMandatory(false);
    EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(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(WIDTH, EJPropertyDefinitionType.INTEGER);
    displayedWidth.setLabel("Displayed Width");
    displayedWidth.setDescription("Indicates the width of this section. If no value or zero has been entered, the width of the item will be relevent to its contents");
    displayedWidth.setNotifyWhenChanged(true);
    EJDevPropertyDefinition expandHorizontally = new EJDevPropertyDefinition(EXPAND_X, EJPropertyDefinitionType.BOOLEAN);
    expandHorizontally.setLabel("Expand Horizontally");
    expandHorizontally.setDescription("Indicates if this section should expand horizontally when the canvas is stretched");
    expandHorizontally.setDefaultValue("true");
    EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
    textAlignment.setLabel("Alignment");
    textAlignment.setDescription("The alignment of the text within the section");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
    textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
    textAlignment.setDefaultValue(PROPERTY_ALIGNMENT_LEFT);
    list.addPropertyDefinition(paramater);
    list.addPropertyDefinition(displayedWidth);
    list.addPropertyDefinition(expandHorizontally);
    list.addPropertyDefinition(textAlignment);
    list.addPropertyDefinition(action);
    list.addPropertyDefinition(visualAttribute);
    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)

Example 3 with EJDevPropertyDefinitionList

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

Example 4 with EJDevPropertyDefinitionList

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

the class EJRWTPieChartRecordBlockDefinition method getBlockPropertyDefinitionGroup.

/*
     * (non-Javadoc)
     * 
     * @seeorg.entirej.framework.renderers.IBlockRenderer#
     * getBlockPropertyDefinitionGroup()
     */
public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
    EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("PieChart-Record Block");
    EJDevPropertyDefinition viewType = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.VIEW_TYPE, EJPropertyDefinitionType.STRING);
    viewType.setLabel("View Type");
    viewType.setDefaultValue("pie");
    viewType.addValidValue("pie", "Pie");
    viewType.addValidValue("doughnut", "Doughnut");
    EJDevPropertyDefinition multi = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.MULTI, EJPropertyDefinitionType.BOOLEAN);
    multi.setLabel("Multi Record");
    multi.setDefaultValue("false");
    EJDevPropertyDefinition relationItem = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.LABLE_COLUMN, EJPropertyDefinitionType.BLOCK_ITEM);
    relationItem.setLabel("Dataset Label Item");
    EJDevPropertyDefinition animation = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.ANIMATION, EJPropertyDefinitionType.BOOLEAN);
    animation.setLabel("Animation");
    animation.setDefaultValue("true");
    EJDevPropertyDefinition legend = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SHOW_LEGEND, EJPropertyDefinitionType.BOOLEAN);
    legend.setLabel("Show Legend");
    legend.setDefaultValue("true");
    EJDevPropertyDefinition showToolTips = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.SHOW_TOOLTIPS, EJPropertyDefinitionType.BOOLEAN);
    showToolTips.setLabel("Show ToolTips");
    showToolTips.setDefaultValue("true");
    EJDevPropertyDefinition legendPostions = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.LEGEND_POSITION, EJPropertyDefinitionType.STRING);
    legendPostions.setLabel("Legend Postion");
    legendPostions.setDefaultValue("top");
    legendPostions.addValidValue("top", "Top");
    legendPostions.addValidValue("bottom", "Bottom");
    legendPostions.addValidValue("left", "Left");
    legendPostions.addValidValue("right", "Right");
    mainGroup.addPropertyDefinition(viewType);
    mainGroup.addPropertyDefinition(multi);
    mainGroup.addPropertyDefinition(relationItem);
    mainGroup.addPropertyDefinition(animation);
    mainGroup.addPropertyDefinition(showToolTips);
    mainGroup.addPropertyDefinition(legend);
    mainGroup.addPropertyDefinition(legendPostions);
    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 5 with EJDevPropertyDefinitionList

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

the class EJRWTSingleRecordBlockDefinition method getItemGroupPropertiesDefinitionGroup.

@Override
public EJPropertyDefinitionGroup getItemGroupPropertiesDefinitionGroup() {
    EJDevPropertyDefinitionGroup sectionGroup = new EJDevPropertyDefinitionGroup("Single-Record Block");
    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("If you are using the Title Bars for your blocks, then it is possible to expand or collapse the block to either show or hide the content. Setting this property to either Tree or Twistie will enable the expand functionality for this block");
    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);
    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("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.addPropertyDefinitionList(list);
    sectionGroup.addPropertyDefinition(showTitleBarExpanded);
    EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ITEM_GROUP_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.");
    sectionGroup.addPropertyDefinition(customCSSKey);
    return sectionGroup;
}
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)15 EJDevPropertyDefinitionGroup (org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup)15 EJDevPropertyDefinitionList (org.entirej.framework.dev.properties.EJDevPropertyDefinitionList)15