use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTTreeRecordBlockDefinition method getItemPropertiesDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Tree-Record Block: Required Item Properties");
EJDevPropertyDefinition prefix = new EJDevPropertyDefinition(EJRWTTreeBlockDefinitionProperties.ITEM_PREFIX, EJPropertyDefinitionType.STRING);
prefix.setLabel("Prefix");
prefix.setDescription("If you are displaying multiple items as part of the tree, then the Prefix and Suffix properties can be used to seperate the item labels");
prefix.setMandatory(false);
EJDevPropertyDefinition suffix = new EJDevPropertyDefinition(EJRWTTreeBlockDefinitionProperties.ITEM_SUFFIX, EJPropertyDefinitionType.STRING);
suffix.setLabel("Suffix");
prefix.setDescription("If you are displaying multiple items as part of the tree, then the Prefix and Suffix properties can be used to seperate the item labels");
suffix.setMandatory(false);
mainGroup.addPropertyDefinition(prefix);
mainGroup.addPropertyDefinition(suffix);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTTreeTableRecordBlockDefinition method getItemPropertiesDefinitionGroup.
/*
* (non-Javadoc)
*
* @seeorg.entirej.framework.renderers.IBlockRenderer#
* getRequiredItemPropertiesDefinitionGroup()
*/
public EJPropertyDefinitionGroup getItemPropertiesDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Tree-Record Block: Required Item Properties");
EJDevPropertyDefinition displayedWidth = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.DISPLAY_WIDTH_PROPERTY, EJPropertyDefinitionType.INTEGER);
displayedWidth.setLabel("Displayed Width");
displayedWidth.setDescription("The width (in characters) of this items column within the blocks table.If zero specified system default width will be applied.");
EJDevPropertyDefinition headerAllignment = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.COLUMN_ALIGNMENT, EJPropertyDefinitionType.STRING);
headerAllignment.setLabel("Column Alignment");
headerAllignment.setDescription("Indicates the alignment of the column.");
headerAllignment.setDefaultValue(EJRWTTreeTableBlockDefinitionProperties.COLUMN_ALLIGN_LEFT);
headerAllignment.addValidValue(EJRWTTreeTableBlockDefinitionProperties.COLUMN_ALLIGN_LEFT, "Left");
headerAllignment.addValidValue(EJRWTTreeTableBlockDefinitionProperties.COLUMN_ALLIGN_RIGHT, "Right");
headerAllignment.addValidValue(EJRWTTreeTableBlockDefinitionProperties.COLUMN_ALLIGN_CENTER, "Center");
EJDevPropertyDefinition allowColumnSorting = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.ALLOW_ROW_SORTING, EJPropertyDefinitionType.BOOLEAN);
allowColumnSorting.setLabel("Allow Column Sorting");
allowColumnSorting.setDescription("If selected, the user will be able to re-order the data within the column by clicking on the column header");
allowColumnSorting.setDefaultValue("true");
EJDevPropertyDefinition allowColunmResize = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.ALLOW_COLUMN_RESIZE, EJPropertyDefinitionType.BOOLEAN);
allowColunmResize.setLabel("Allow Resize of Column");
allowColunmResize.setDescription("If selected, the user will be able to resize the width of the table columns");
allowColunmResize.setDefaultValue("true");
EJDevPropertyDefinition allowColunmReorder = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.ALLOW_COLUMN_REORDER, EJPropertyDefinitionType.BOOLEAN);
allowColunmReorder.setLabel("Allow Re-Order of Column");
allowColunmReorder.setDescription("If selected, the user will be able to change the order of the displayed column");
allowColunmReorder.setDefaultValue("true");
EJDevPropertyDefinition visualAttribute = new EJDevPropertyDefinition(EJRWTTreeTableBlockDefinitionProperties.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(displayedWidth);
mainGroup.addPropertyDefinition(headerAllignment);
/*
* mainGroup.addPropertyDefinition(columnHeaderVA);
*
* mainGroup.addPropertyDefinition(underlineHeader);
*/
mainGroup.addPropertyDefinition(allowColumnSorting);
mainGroup.addPropertyDefinition(allowColunmResize);
mainGroup.addPropertyDefinition(allowColunmReorder);
mainGroup.addPropertyDefinition(visualAttribute);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTMenuTreeRendererDefinition method getComponentPropertyDefinitionGroup.
@Override
public EJPropertyDefinitionGroup getComponentPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("MENUCONFIG");
mainGroup.setLabel("Menu Configuration");
EJDevPropertyDefinition menuId = new EJDevPropertyDefinition(MENU_GROUP, EJPropertyDefinitionType.MENU_GROUP);
menuId.setLabel("Application Menu");
menuId.setDescription("The menu that will be displayed within this component");
mainGroup.addPropertyDefinition(menuId);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup 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;
}
Aggregations