use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionList 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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionList 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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionList 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;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionList in project rap by entirej.
the class EJRWTRadioGroupItemRendererDefinition method getItemPropertyDefinitionGroup.
@Override
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Radio Group Renderer");
mainGroup.setDescription("Radio Groups offer the users a single choice from various options. The radio group can be displayed in wither horizontal format where the choices are alligned next to each other or vertically where they will appear in a list on beneath the other");
EJDevPropertyDefinition showBorder = new EJDevPropertyDefinition(SHOW_BORDER, EJPropertyDefinitionType.BOOLEAN);
showBorder.setLabel("Show Border");
showBorder.setDescription("If chosen, a border will be displayed around the radio group");
showBorder.setMandatory(true);
EJDevPropertyDefinition orientation = new EJDevPropertyDefinition(ORIENTATION, EJPropertyDefinitionType.STRING);
orientation.setLabel("Orientation");
orientation.addValidValue(ORIENTATION_HORIZONTAL, "Horizontal");
orientation.addValidValue(ORIENTATION_VERTICAL, "Vertical");
orientation.setMandatory(true);
orientation.setDescription("Indicates how the radio group will be displayed. Horizontal = in a row, Vertical = in a column");
EJDevPropertyDefinition defaultValue = new EJDevPropertyDefinition(DEFAULT_BUTTON, EJPropertyDefinitionType.STRING);
defaultValue.setLabel("Default Button");
defaultValue.setDescription("The combo box group should normally have one of the items selected as default. Supply the name of the default button here");
EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(RADIO_BUTTONS, "Radio Buttons");
EJDevPropertyDefinition radioButtonName = new EJDevPropertyDefinition(NAME, EJPropertyDefinitionType.STRING);
radioButtonName.setLabel("Name");
radioButtonName.setDescription("The name of the actual button. This is important as you can access these buttons within the action processor");
radioButtonName.setMandatory(true);
EJDevPropertyDefinition radioButtonLabel = new EJDevPropertyDefinition(LABEL, EJPropertyDefinitionType.STRING);
radioButtonLabel.setLabel("Label");
radioButtonLabel.setDescription("This value will be displayed to the user or translated and then displayed");
radioButtonLabel.setMandatory(true);
radioButtonLabel.setMultilingual(true);
EJDevPropertyDefinition radioButtonValue = new EJDevPropertyDefinition(VALUE, EJPropertyDefinitionType.STRING);
radioButtonValue.setLabel("Value");
radioButtonValue.setDescription("This is the value of the radio button. The value must be convertable to the data type defined for the item. If the value is left empty, the value will bu null");
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.");
list.addPropertyDefinition(radioButtonName);
list.addPropertyDefinition(radioButtonLabel);
list.addPropertyDefinition(radioButtonValue);
mainGroup.addPropertyDefinition(showBorder);
mainGroup.addPropertyDefinition(orientation);
mainGroup.addPropertyDefinition(defaultValue);
mainGroup.addPropertyDefinition(customCSSKey);
mainGroup.addPropertyDefinitionList(list);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionList in project rap by entirej.
the class EJRWTApplicationDefinition method getApplicationPropertyDefinitionGroup.
@Override
public EJPropertyDefinitionGroup getApplicationPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("RWTAPP");
mainGroup.setLabel("Eclipse RAP Application Framework");
{
try {
Class<?> support = Class.forName("org.entirej.applicationframework.rwt.spring.EJSpringSupport");
if (support != null) {
mainGroup.setLabel("Eclipse RAP Application Framework with Spring Security");
EJDevPropertyDefinitionGroup springGroup = new EJDevPropertyDefinitionGroup(SPRING_SECURITY, "Spring Security Support");
mainGroup.addSubGroup(springGroup);
{
// Config
EJDevPropertyDefinition type = new EJDevPropertyDefinition(SPRING_SECURITY_CONFIG, EJPropertyDefinitionType.PROJECT_CLASS_FILE);
type.setLabel("Security Config Provider");
type.setClassParent("org.entirej.applicationframework.rwt.spring.ext.EJSpringSecurityConfigProvider");
springGroup.addPropertyDefinition(type);
}
{
// Auth
EJDevPropertyDefinition type = new EJDevPropertyDefinition(SPRING_SECURITY_AUTH, EJPropertyDefinitionType.PROJECT_CLASS_FILE);
type.setLabel("Authentication Provider");
type.setClassParent("org.entirej.applicationframework.rwt.spring.ext.EJSpringSecurityAuthenticationProvider");
springGroup.addPropertyDefinition(type);
}
}
} catch (ClassNotFoundException e) {
// ignore
}
}
{
// services
EJDevPropertyDefinitionGroup serviceGroup = new EJDevPropertyDefinitionGroup(SERVICE, "Services");
mainGroup.addSubGroup(serviceGroup);
EJDevPropertyDefinitionList list = new EJDevPropertyDefinitionList(SERVICE_LIST, "Paths");
serviceGroup.addPropertyDefinitionList(list);
EJDevPropertyDefinition serviceName = new EJDevPropertyDefinition(SERVICE_NAME, EJPropertyDefinitionType.STRING);
serviceName.setLabel("Service Name");
EJDevPropertyDefinition servicePath = new EJDevPropertyDefinition(SERVICE_PATH, EJPropertyDefinitionType.STRING);
servicePath.setLabel("Service Path");
EJDevPropertyDefinition serviceForm = new EJDevPropertyDefinition(SERVICE_FORM, EJPropertyDefinitionType.FORM_ID);
serviceForm.setLabel("Service Form");
list.addPropertyDefinition(servicePath);
list.addPropertyDefinition(serviceName);
list.addPropertyDefinition(serviceForm);
}
EJDevPropertyDefinition applicationMenu = new EJDevPropertyDefinition(APPLICATION_MENU, EJPropertyDefinitionType.MENU_GROUP);
applicationMenu.setLabel("Application Menu");
applicationMenu.setDescription("The Application Menu is the standard drop down menu displayed at the top of the screen. The menu is created using the <a href=\"http://docs.entirej.com/display/EJ1/Application+Menu\">EntireJ Menu Editor</a>");
mainGroup.addPropertyDefinition(applicationMenu);
EJDevPropertyDefinition liveConnection = new EJDevPropertyDefinition(LIVE_CONNECTION, EJPropertyDefinitionType.BOOLEAN);
liveConnection.setLabel("Keep live connection to server.");
liveConnection.setDescription("Keep a live connection to the server so in the event of a session timeout, the timeout page will automatically be shown without any user interaction.");
mainGroup.addPropertyDefinition(liveConnection);
EJDevPropertyDefinition displayTabBorder = new EJDevPropertyDefinition(DISPLAY_TAB_BORDER, EJPropertyDefinitionType.BOOLEAN);
displayTabBorder.setLabel("Display border on tabs");
displayTabBorder.setDescription("Indicates if borders should be used to surround tab canvases. Displaying borders on tabs can lead to many unwanted frames displayed on your application.");
mainGroup.addPropertyDefinition(displayTabBorder);
EJDevPropertyDefinitionGroup actionGroup = new EJDevPropertyDefinitionGroup(EJRWTSingleRecordBlockDefinitionProperties.ACTION_GROUP, "Shortcuts");
mainGroup.addSubGroup(actionGroup);
EJDevPropertyDefinition queryAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_QUERY_KEY, EJPropertyDefinitionType.STRING);
queryAction.setLabel("Query");
queryAction.setDefaultValue("SHIFT+Q");
queryAction.setDescription("Use this shortcut to open the Query Screen");
EJDevPropertyDefinition insertAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_INSERT_KEY, EJPropertyDefinitionType.STRING);
insertAction.setLabel("Insert");
insertAction.setDefaultValue("SHIFT+I");
queryAction.setDescription("Use this shortcut to open the Insert Screen");
EJDevPropertyDefinition updateAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_UPDATE_KEY, EJPropertyDefinitionType.STRING);
updateAction.setLabel("Update");
updateAction.setDefaultValue("SHIFT+U");
queryAction.setDescription("Use this shortcut to open the Update Screen");
EJDevPropertyDefinition deleteAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_DELETE_KEY, EJPropertyDefinitionType.STRING);
deleteAction.setLabel("Delete");
deleteAction.setDefaultValue("SHIFT+D");
queryAction.setDescription("Use this shortcut to delete the current record");
EJDevPropertyDefinition refreshAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_REFRESH_KEY, EJPropertyDefinitionType.STRING);
refreshAction.setLabel("Refresh");
refreshAction.setDefaultValue("SHIFT+R");
queryAction.setDescription("Use this shortcut to refresh the current block by calling the blocks execute last query method");
EJDevPropertyDefinition lovAction = new EJDevPropertyDefinition(EJRWTSingleRecordBlockDefinitionProperties.ACTION_LOV_KEY, EJPropertyDefinitionType.STRING);
lovAction.setLabel("Lov");
queryAction.setDescription("Use this shortcut to open the lov assigned with the current item");
lovAction.setDefaultValue("SHIFT+ARROW_DOWN");
actionGroup.addPropertyDefinition(queryAction);
actionGroup.addPropertyDefinition(insertAction);
actionGroup.addPropertyDefinition(updateAction);
actionGroup.addPropertyDefinition(deleteAction);
actionGroup.addPropertyDefinition(refreshAction);
actionGroup.addPropertyDefinition(lovAction);
// Application message settings
EJDevPropertyDefinitionGroup messageGroup = new EJDevPropertyDefinitionGroup(APP_MESSAGING, "Application Messaging");
messageGroup.setDescription("EntireJ gives you the possibility to have application messages displayed either in standard popup message boxes or in notifications that rise up from the bottom of the application. You can decide which option you would prefer or have a combination of both");
// add error message settings
{
EJDevPropertyDefinitionGroup errorMsgGroup = new EJDevPropertyDefinitionGroup(APP_MSG_ERROR, "Error Message");
EJDevPropertyDefinition type = new EJDevPropertyDefinition(APP_MSG_TYPE, EJPropertyDefinitionType.STRING);
type.setLabel("Display Type");
type.setDescription("Indicates how messages are handeld within you application. Setting a value of Dialog will display messages as a popup dialog, setting to Notification will make messages display as notifications within the bottom right of your screen");
type.addValidValue(APP_MSG_TYPE_DIALOG, "Dialog");
type.addValidValue(APP_MSG_TYPE_NOTIFICATION, "Notifiaction");
type.addValidValue(APP_MSG_TYPE_BOTH, "Both");
type.setDefaultValue(APP_MSG_TYPE_DIALOG);
EJDevPropertyDefinition notificationAutoHide = new EJDevPropertyDefinition(APP_MSG_NOTIFICATION_AUTOHIDE, EJPropertyDefinitionType.BOOLEAN);
notificationAutoHide.setLabel("Auto Hide Notification");
notificationAutoHide.setDescription("Indicates if the notifications should automatically hide after being displayed. If this is not set, the user must close the notifications manually");
EJDevPropertyDefinition width = new EJDevPropertyDefinition(APP_MSG_WIDTH, EJPropertyDefinitionType.INTEGER);
width.setLabel("Width");
width.setDescription("The width of the notification");
EJDevPropertyDefinition height = new EJDevPropertyDefinition(APP_MSG_HEIGHT, EJPropertyDefinitionType.INTEGER);
height.setLabel("Height");
height.setDescription("The height of the notification");
errorMsgGroup.addPropertyDefinition(type);
errorMsgGroup.addPropertyDefinition(notificationAutoHide);
errorMsgGroup.addPropertyDefinition(width);
errorMsgGroup.addPropertyDefinition(height);
messageGroup.addSubGroup(errorMsgGroup);
}
// add warning message settings
{
EJDevPropertyDefinitionGroup warningMsgGroup = new EJDevPropertyDefinitionGroup(APP_MSG_WARNING, "Warning Message");
EJDevPropertyDefinition type = new EJDevPropertyDefinition(APP_MSG_TYPE, EJPropertyDefinitionType.STRING);
type.setLabel("Display Type");
type.setDescription("Indicates how messages are handeld within you application. Setting a value of Dialog will display messages as a popup dialog, setting to Notification will make messages display as notifications within the bottom right of your screen");
type.addValidValue(APP_MSG_TYPE_DIALOG, "Dialog");
type.addValidValue(APP_MSG_TYPE_NOTIFICATION, "Notifiaction");
type.addValidValue(APP_MSG_TYPE_BOTH, "Both");
type.setDefaultValue(APP_MSG_TYPE_DIALOG);
EJDevPropertyDefinition notificationAutoHide = new EJDevPropertyDefinition(APP_MSG_NOTIFICATION_AUTOHIDE, EJPropertyDefinitionType.BOOLEAN);
notificationAutoHide.setLabel("Auto Hide Notification");
notificationAutoHide.setDescription("Indicates if the notifications should automatically hide after being displayed. If this is not set, the user must close the notifications manually");
EJDevPropertyDefinition width = new EJDevPropertyDefinition(APP_MSG_WIDTH, EJPropertyDefinitionType.INTEGER);
width.setLabel("Width");
width.setDescription("The width of the notification");
EJDevPropertyDefinition height = new EJDevPropertyDefinition(APP_MSG_HEIGHT, EJPropertyDefinitionType.INTEGER);
height.setLabel("Height");
height.setDescription("The height of the notification");
warningMsgGroup.addPropertyDefinition(type);
warningMsgGroup.addPropertyDefinition(notificationAutoHide);
warningMsgGroup.addPropertyDefinition(width);
warningMsgGroup.addPropertyDefinition(height);
messageGroup.addSubGroup(warningMsgGroup);
}
// add information message settings
{
EJDevPropertyDefinitionGroup infoMsgGroup = new EJDevPropertyDefinitionGroup(APP_MSG_INFO, "Information Message");
EJDevPropertyDefinition type = new EJDevPropertyDefinition(APP_MSG_TYPE, EJPropertyDefinitionType.STRING);
type.setLabel("Display Type");
type.setDescription("Indicates how messages are handeld within you application. Setting a value of Dialog will display messages as a popup dialog, setting to Notification will make messages display as notifications within the bottom right of your screen");
type.addValidValue(APP_MSG_TYPE_DIALOG, "Dialog");
type.addValidValue(APP_MSG_TYPE_NOTIFICATION, "Notifiaction");
type.addValidValue(APP_MSG_TYPE_BOTH, "Both");
type.setDefaultValue(APP_MSG_TYPE_NOTIFICATION);
EJDevPropertyDefinition notificationAutoHide = new EJDevPropertyDefinition(APP_MSG_NOTIFICATION_AUTOHIDE, EJPropertyDefinitionType.BOOLEAN);
notificationAutoHide.setLabel("Notification Auto Hide");
notificationAutoHide.setDescription("Indicates if the notifications should automatically hide after being displayed. If this is not set, the user must close the notifications manually");
notificationAutoHide.setDefaultValue("true");
EJDevPropertyDefinition width = new EJDevPropertyDefinition(APP_MSG_WIDTH, EJPropertyDefinitionType.INTEGER);
width.setLabel("Width");
width.setDescription("The width of the notification");
EJDevPropertyDefinition height = new EJDevPropertyDefinition(APP_MSG_HEIGHT, EJPropertyDefinitionType.INTEGER);
height.setLabel("Height");
height.setDescription("The height of the notification");
infoMsgGroup.addPropertyDefinition(type);
infoMsgGroup.addPropertyDefinition(notificationAutoHide);
infoMsgGroup.addPropertyDefinition(width);
infoMsgGroup.addPropertyDefinition(height);
messageGroup.addSubGroup(infoMsgGroup);
}
// add hint message settings
{
EJDevPropertyDefinitionGroup hintMsgGroup = new EJDevPropertyDefinitionGroup(APP_MSG_HINT, "Hint Message");
EJDevPropertyDefinition notificationAutoHide = new EJDevPropertyDefinition(APP_MSG_NOTIFICATION_AUTOHIDE, EJPropertyDefinitionType.BOOLEAN);
notificationAutoHide.setLabel("Auto Hide Notification");
notificationAutoHide.setDescription("Indicates if the notifications should automatically hide after being displayed. If this is not set, the user must close the notifications manually");
notificationAutoHide.setDefaultValue("true");
EJDevPropertyDefinition width = new EJDevPropertyDefinition(APP_MSG_WIDTH, EJPropertyDefinitionType.INTEGER);
width.setLabel("Width");
width.setDescription("The width of the notification");
EJDevPropertyDefinition height = new EJDevPropertyDefinition(APP_MSG_HEIGHT, EJPropertyDefinitionType.INTEGER);
height.setLabel("Height");
height.setDescription("The height of the notification");
hintMsgGroup.addPropertyDefinition(notificationAutoHide);
hintMsgGroup.addPropertyDefinition(width);
hintMsgGroup.addPropertyDefinition(height);
messageGroup.addSubGroup(hintMsgGroup);
}
mainGroup.addSubGroup(messageGroup);
return mainGroup;
}
Aggregations