use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTTreeTableRecordBlockDefinition method getBlockPropertyDefinitionGroup.
/*
* (non-Javadoc)
*
* @seeorg.entirej.framework.renderers.IBlockRenderer#
* getBlockPropertyDefinitionGroup()
*/
public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Tree-Record Block");
EJDevPropertyDefinition doubleClickActionCommand = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.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(EJRWTTreeTableBlockDefinitionProperties.HIDE_TREE_BORDER, EJPropertyDefinitionType.BOOLEAN);
showTableBorder.setLabel("Hide Tree Border");
showTableBorder.setDescription("If selected, the renderer will hide the tree standard border");
showTableBorder.setDefaultValue("false");
EJDevPropertyDefinition showTableHeader = new EJDevPropertyDefinition(EJRWTMultiRecordBlockDefinitionProperties.SHOW_HEADING_PROPERTY, EJPropertyDefinitionType.BOOLEAN);
showTableHeader.setLabel("Show Tree Heading");
showTableHeader.setDescription("If selected, the heading of the Tree will be displayed, otherwise a Tree will be displayed without a header");
showTableHeader.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 showVerticalLines = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.SHOW_VERTICAL_LINES, EJPropertyDefinitionType.BOOLEAN);
showVerticalLines.setLabel("Show Vertical Lines");
showVerticalLines.setDescription("Inicates if the tree show show vertical lines");
showVerticalLines.setDefaultValue("true");
EJDevPropertyDefinition parentItem = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.PARENT_ITEM, EJPropertyDefinitionType.BLOCK_ITEM);
parentItem.setLabel("Child ");
parentItem.setMandatory(true);
parentItem.setDescription("Child item is used to match with Parent item that build tree hierarchy using records.");
EJDevPropertyDefinition relationItem = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.RELATION_ITEM, EJPropertyDefinitionType.BLOCK_ITEM);
relationItem.setLabel("Parent ");
relationItem.setMandatory(true);
relationItem.setDescription("Relation item that build tree hierarchy using records.");
EJDevPropertyDefinition imageItem = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.NODE_IMAGE_ITEM, EJPropertyDefinitionType.BLOCK_ITEM);
imageItem.setLabel("Image Item");
imageItem.setDescription("item that provide node images [ url / byte array ].");
EJDevPropertyDefinition expandLevel = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.NODE_EXPAND_LEVEL, EJPropertyDefinitionType.INTEGER);
expandLevel.setLabel("Expand Level");
// expandLevel.setDescription("item that provide node images [ url / byte array ].");
mainGroup.addPropertyDefinition(relationItem);
mainGroup.addPropertyDefinition(parentItem);
mainGroup.addPropertyDefinition(imageItem);
mainGroup.addPropertyDefinition(expandLevel);
mainGroup.addPropertyDefinition(doubleClickActionCommand);
mainGroup.addPropertyDefinition(showTableBorder);
mainGroup.addPropertyDefinition(showTableHeader);
mainGroup.addPropertyDefinition(filter);
mainGroup.addPropertyDefinition(message);
mainGroup.addPropertyDefinition(showVerticalLines);
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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTBannerRendererDefinition method getComponentPropertyDefinitionGroup.
@Override
public EJPropertyDefinitionGroup getComponentPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("IMAGECONFIG");
mainGroup.setLabel("Image Configuration");
EJDevPropertyDefinition imageParam = new EJDevPropertyDefinition(IMAGE_PARAM, EJPropertyDefinitionType.APPLICATION_PARAMETER);
imageParam.setLabel("Image Paraameter");
imageParam.setDescription("The Paraameter value that will be displayed within the banner");
EJDevPropertyDefinition imagePath = new EJDevPropertyDefinition(IMAGE_PATH, EJPropertyDefinitionType.PROJECT_FILE);
imagePath.setLabel("Image");
imagePath.setDescription("The image that will be displayed within the banner");
EJDevPropertyDefinition imageAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
imageAlignment.setLabel("Alignment");
imageAlignment.setDescription("The alignment of the image within the banner");
imageAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
imageAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
imageAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
imageAlignment.setDefaultValue(PROPERTY_ALIGNMENT_LEFT);
EJDevPropertyDefinition action = new EJDevPropertyDefinition(ACTION, EJPropertyDefinitionType.ACTION_COMMAND);
action.setLabel("Action Command");
action.setMandatory(false);
mainGroup.addPropertyDefinition(imageParam);
mainGroup.addPropertyDefinition(imagePath);
mainGroup.addPropertyDefinition(imageAlignment);
mainGroup.addPropertyDefinition(action);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTSingleFormRendererDefinition method getComponentPropertyDefinitionGroup.
@Override
public EJPropertyDefinitionGroup getComponentPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("FORMCONFIG");
mainGroup.setLabel("Form Configuration");
EJDevPropertyDefinition menuId = new EJDevPropertyDefinition(FORM_GROUP, EJPropertyDefinitionType.FORM_ID);
menuId.setLabel("Form");
menuId.setDescription("The form to display within this container");
EJDevPropertyDefinition style = new EJDevPropertyDefinition("CSS", EJPropertyDefinitionType.STRING);
style.setLabel("Custom CSS");
EJDevPropertyDefinition showBorder = new EJDevPropertyDefinition("BORDER", EJPropertyDefinitionType.BOOLEAN);
showBorder.setLabel("Show Border");
showBorder.setDefaultValue("true");
mainGroup.addPropertyDefinition(menuId);
mainGroup.addPropertyDefinition(showBorder);
mainGroup.addPropertyDefinition(style);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTBarChartRecordBlockDefinition method getBlockPropertyDefinitionGroup.
/*
* (non-Javadoc)
*
* @seeorg.entirej.framework.renderers.IBlockRenderer#
* getBlockPropertyDefinitionGroup()
*/
public EJPropertyDefinitionGroup getBlockPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("LineChart-Record Block");
EJDevPropertyDefinition horizontalBar = new EJDevPropertyDefinition("horizontalBar", EJPropertyDefinitionType.BOOLEAN);
horizontalBar.setLabel("Horizontal Bar Chart");
EJDevPropertyDefinition relationItem = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.X_AXIS_COLUMN, EJPropertyDefinitionType.BLOCK_ITEM);
relationItem.setLabel("X Axis");
relationItem.setMandatory(true);
EJDevPropertyDefinition animation = new EJDevPropertyDefinition(EJRWTChartBlockDefinitionProperties.ANIMATION, EJPropertyDefinitionType.BOOLEAN);
animation.setLabel("Animation");
animation.setDefaultValue("true");
EJDevPropertyDefinition gridLines = new EJDevPropertyDefinition("gridLines", EJPropertyDefinitionType.BOOLEAN);
gridLines.setLabel("Grid Lines");
gridLines.setDescription("If false, do not display grid lines");
gridLines.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");
EJDevPropertyDefinition barPercentage = new EJDevPropertyDefinition("barPercentage", EJPropertyDefinitionType.INTEGER);
barPercentage.setLabel("Bar Percentage");
barPercentage.setDescription("Percent (0-1) of the available width each bar should be within the category percentage. 1.0 will take the whole category width and put the bars right next to each other");
barPercentage.setDefaultValue("0.9");
EJDevPropertyDefinition categoryPercentage = new EJDevPropertyDefinition("categoryPercentage", EJPropertyDefinitionType.FLOAT);
categoryPercentage.setLabel("Category Percentage");
categoryPercentage.setDescription("Percent (0-1) of the available width (the space between the gridlines for small datasets) for each data-point to use for the bars.");
categoryPercentage.setDefaultValue("0.8");
EJDevPropertyDefinition barThickness = new EJDevPropertyDefinition("barThickness", EJPropertyDefinitionType.FLOAT);
barThickness.setLabel("Bar Thickness");
barThickness.setDescription("Manually set width of each bar in pixels. If not set, the bars are sized automatically using bar percentage and category percentage.");
EJDevPropertyDefinition maxBarThickness = new EJDevPropertyDefinition("maxBarThickness", EJPropertyDefinitionType.INTEGER);
maxBarThickness.setLabel("Max Bar Thickness");
maxBarThickness.setDescription("Set this to ensure that the automatically sized bars are not sized thicker than this. Only works if barThickness is not set (automatic sizing is enabled).");
legendPostions.addValidValue("top", "Top");
legendPostions.addValidValue("bottom", "Bottom");
legendPostions.addValidValue("left", "Left");
legendPostions.addValidValue("right", "Right");
mainGroup.addPropertyDefinition(relationItem);
mainGroup.addPropertyDefinition(horizontalBar);
mainGroup.addPropertyDefinition(animation);
mainGroup.addPropertyDefinition(gridLines);
mainGroup.addPropertyDefinition(showToolTips);
mainGroup.addPropertyDefinition(legend);
mainGroup.addPropertyDefinition(legendPostions);
mainGroup.addPropertyDefinition(barPercentage);
mainGroup.addPropertyDefinition(categoryPercentage);
mainGroup.addPropertyDefinition(barThickness);
mainGroup.addPropertyDefinition(maxBarThickness);
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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTBarChartRecordBlockDefinition 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");
mainGroup.addPropertyDefinition(visualAttribute);
mainGroup.addPropertyDefinition(actionCmd);
return mainGroup;
}
Aggregations