use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTHtmlEditorItemRendererDefinition method getItemPropertyDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Html Editor Item Renderer");
mainGroup.setDescription("The html editor item will allow to edit content as html formatting");
EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(customCSSKey);
EJDevPropertyDefinition inlineMode = new EJDevPropertyDefinition(PROPERTY_INLINE_KEY, EJPropertyDefinitionType.BOOLEAN);
inlineMode.setLabel("Inline mode");
inlineMode.setDescription("Indicates if this item should edit with inline toolbar");
inlineMode.setDefaultValue("false");
mainGroup.addPropertyDefinition(inlineMode);
EJDevPropertyDefinition removeToolbar = new EJDevPropertyDefinition(PROPERTY_REMOVE_TOOLBAR_KEY, EJPropertyDefinitionType.BOOLEAN);
removeToolbar.setLabel("Hide toolbar when disabled");
removeToolbar.setDefaultValue("false");
mainGroup.addPropertyDefinition(removeToolbar);
EJDevPropertyDefinition profile = new EJDevPropertyDefinition(PROPERTY_PROFILE_KEY, EJPropertyDefinitionType.STRING);
profile.setLabel("Toolbar Profile");
profile.addValidValue(PROPERTY_PROFILE_BASIC, PROPERTY_PROFILE_BASIC);
profile.addValidValue(PROPERTY_PROFILE_STANDARD, PROPERTY_PROFILE_STANDARD);
profile.addValidValue(PROPERTY_PROFILE_FULL, PROPERTY_PROFILE_FULL);
profile.setDefaultValue(PROPERTY_PROFILE_STANDARD);
mainGroup.addPropertyDefinition(profile);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTLabelItemRendererDefinition method getItemPropertyDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Label Item Renderer");
mainGroup.setDescription("This renderer should be used if you require dynamic labels for your block items, or be able to place a label anywhere on the screen");
EJDevPropertyDefinition displayAsHyperlink = new EJDevPropertyDefinition(PROPERTY_DISPLAY_AS_HYPERLINK, EJPropertyDefinitionType.BOOLEAN);
displayAsHyperlink.setLabel("Display as Hyperlink");
displayAsHyperlink.setDescription("If this property is set, the Label will display its content as a Hyperlink, which, if pressed, will fire the labels Action Command");
EJDevPropertyDefinition textCase = new EJDevPropertyDefinition(PROPERTY_CASE, EJPropertyDefinitionType.STRING);
textCase.setLabel("Case");
textCase.setDescription("The character case for the text displayed within this label");
textCase.addValidValue(PROPERTY_CASE_UPPER, "Upper");
textCase.addValidValue(PROPERTY_CASE_LOWER, "Lower");
textCase.addValidValue(PROPERTY_CASE_MIXED, "Mixed");
textCase.setDefaultValue(PROPERTY_CASE_MIXED);
EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
textAlignment.setLabel("Alignment");
textAlignment.setDescription("The alignment of the text displayed within this label");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
textAlignment.setDefaultValue(PROPERTY_ALIGNMENT_RIGHT);
EJDevPropertyDefinition textWrap = new EJDevPropertyDefinition(PROPERTY_TEXT_WRAP, EJPropertyDefinitionType.BOOLEAN);
textWrap.setLabel("Wrap Text");
textWrap.setDescription("If this property is set, the Label Wraps the text");
EJDevPropertyDefinition htmlFormat = new EJDevPropertyDefinition(PROPERTY_HTML_FORMAT, EJPropertyDefinitionType.BOOLEAN);
htmlFormat.setLabel("XHTML Formatting");
htmlFormat.setDescription("If this property is set, the Label formats certain XHTML tags ");
// EJDevPropertyDefinition pic = new EJDevPropertyDefinition(PROPERTY_PICTURE, EJPropertyDefinitionType.PROJECT_FILE);
// pic.setLabel("Picture");
// pic.setDescription("It is possible to display an image in a label renderer. See also: Image Item Renderer");
//
EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(displayAsHyperlink);
mainGroup.addPropertyDefinition(textCase);
mainGroup.addPropertyDefinition(textAlignment);
mainGroup.addPropertyDefinition(textWrap);
mainGroup.addPropertyDefinition(htmlFormat);
// mainGroup.addPropertyDefinition(pic);
mainGroup.addPropertyDefinition(customCSSKey);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTNumberItemRendererDefinition method getItemPropertyDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Number Item Renderer");
EJDevPropertyDefinition format = new EJDevPropertyDefinition(PROPERTY_FORMAT, EJPropertyDefinitionType.STRING);
format.setLabel("Format");
format.setDescription("The format of this item as defined by formats specified within java.text.DecimalFormat. e.g. ###,###,##0.00 where a # represents any number and a 0 indicates that a value will be displayed, even if it is 0");
format.setDefaultValue("###,###,###,###.##");
EJDevPropertyDefinition displayValueAsLabel = new EJDevPropertyDefinition(PROPERTY_DISPLAY_VAUE_AS_LABEL, EJPropertyDefinitionType.BOOLEAN);
displayValueAsLabel.setLabel("Display value as label");
displayValueAsLabel.setDefaultValue("false");
displayValueAsLabel.setDescription("Indicates if this item should be displayed as a label. Items displayed as labels cannot be modified by the user.");
EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(EJRWTTextItemRendererDefinition.PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
textAlignment.setLabel("Alignment");
textAlignment.setDescription("The alignment of the text displayed within this item");
textAlignment.addValidValue(EJRWTTextItemRendererDefinition.PROPERTY_ALIGNMENT_LEFT, "Left");
textAlignment.addValidValue(EJRWTTextItemRendererDefinition.PROPERTY_ALIGNMENT_RIGHT, "Right");
textAlignment.addValidValue(EJRWTTextItemRendererDefinition.PROPERTY_ALIGNMENT_CENTER, "Center");
EJDevPropertyDefinition selectOnFocus = new EJDevPropertyDefinition(EJRWTTextItemRendererDefinition.PROPERTY_SELECT_ON_FOCUS, EJPropertyDefinitionType.BOOLEAN);
selectOnFocus.setLabel("Select on focus");
selectOnFocus.setDescription("Indicates if this item should select text on focus");
selectOnFocus.setDefaultValue("true");
EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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.");
EJDevPropertyDefinition maxValue = new EJDevPropertyDefinition(PROPERTY_MAXVALUE, EJPropertyDefinitionType.FLOAT);
maxValue.setLabel("Maximum Value");
maxValue.setDescription("The maximum allowable value for this item");
EJDevPropertyDefinition minValue = new EJDevPropertyDefinition(PROPERTY_MINVALUE, EJPropertyDefinitionType.FLOAT);
minValue.setLabel("Minimum Value");
minValue.setDescription("The minimum allowable value for this item");
EJDevPropertyDefinition message = new EJDevPropertyDefinition(PROPERTY_MESSAGE, EJPropertyDefinitionType.STRING);
message.setLabel("Message");
message.setDescription("The message text is displayed as a hint for the user, indicating the purpose of the field..");
mainGroup.addPropertyDefinition(format);
mainGroup.addPropertyDefinition(textAlignment);
mainGroup.addPropertyDefinition(selectOnFocus);
mainGroup.addPropertyDefinition(displayValueAsLabel);
mainGroup.addPropertyDefinition(customCSSKey);
mainGroup.addPropertyDefinition(maxValue);
mainGroup.addPropertyDefinition(minValue);
mainGroup.addPropertyDefinition(message);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTStackedItemRendererDefinition method getItemPropertyDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Stack Item Renderer");
EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
textAlignment.setLabel("Alignment");
textAlignment.setDescription("The alignment of the text displayed within this item");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(textAlignment);
mainGroup.addPropertyDefinition(customCSSKey);
return mainGroup;
}
use of org.entirej.framework.dev.properties.EJDevPropertyDefinitionGroup in project rap by entirej.
the class EJRWTTextItemRendererDefinition method getItemPropertyDefinitionGroup.
public EJPropertyDefinitionGroup getItemPropertyDefinitionGroup() {
EJDevPropertyDefinitionGroup mainGroup = new EJDevPropertyDefinitionGroup("Text Item Renderer");
EJDevPropertyDefinition maxLength = new EJDevPropertyDefinition(PROPERTY_MAXLENGTH, EJPropertyDefinitionType.INTEGER);
maxLength.setLabel("Maximum Length");
maxLength.setDescription("The maximum amount of characters allowed within this item");
EJDevPropertyDefinition textCase = new EJDevPropertyDefinition(PROPERTY_CASE, EJPropertyDefinitionType.STRING);
textCase.setLabel("Case");
textCase.setDescription("The character case for the text displayed within this item");
textCase.addValidValue(PROPERTY_CASE_UPPER, "Upper");
textCase.addValidValue(PROPERTY_CASE_LOWER, "Lower");
textCase.addValidValue(PROPERTY_CASE_MIXED, "Mixed");
EJDevPropertyDefinition textAlignment = new EJDevPropertyDefinition(PROPERTY_ALIGNMENT, EJPropertyDefinitionType.STRING);
textAlignment.setLabel("Alignment");
textAlignment.setDescription("The alignment of the text displayed within this item");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_LEFT, "Left");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_RIGHT, "Right");
textAlignment.addValidValue(PROPERTY_ALIGNMENT_CENTER, "Center");
EJDevPropertyDefinition displayValueAsLabel = new EJDevPropertyDefinition(PROPERTY_DISPLAY_VAUE_AS_LABEL, EJPropertyDefinitionType.BOOLEAN);
displayValueAsLabel.setLabel("Display value as label");
displayValueAsLabel.setDefaultValue("false");
displayValueAsLabel.setDescription("Indicates if this item should be displayed as a label. Items displayed as labels cannot be modified by the user.");
EJDevPropertyDefinition protectedField = new EJDevPropertyDefinition(PROPERTY_DISPLAY_VAUE_AS_PROTECTED, EJPropertyDefinitionType.BOOLEAN);
protectedField.setLabel("Display value as Protected");
protectedField.setDescription("Indicates if this item should be displayed as a Protected. Items displayed as labels cannot be seen by the user eg'*****'.");
EJDevPropertyDefinition selectOnFocus = new EJDevPropertyDefinition(PROPERTY_SELECT_ON_FOCUS, EJPropertyDefinitionType.BOOLEAN);
selectOnFocus.setLabel("Select on focus");
selectOnFocus.setDescription("Indicates if this item should select text on focus");
selectOnFocus.setDefaultValue("false");
EJDevPropertyDefinition message = new EJDevPropertyDefinition(PROPERTY_MESSAGE, EJPropertyDefinitionType.STRING);
message.setLabel("Message");
message.setDescription("The message text is displayed as a hint for the user, indicating the purpose of the field..");
EJDevPropertyDefinition customCSSKey = new EJDevPropertyDefinition(PROPERTY_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(maxLength);
mainGroup.addPropertyDefinition(textCase);
mainGroup.addPropertyDefinition(textAlignment);
mainGroup.addPropertyDefinition(displayValueAsLabel);
mainGroup.addPropertyDefinition(protectedField);
mainGroup.addPropertyDefinition(selectOnFocus);
mainGroup.addPropertyDefinition(message);
mainGroup.addPropertyDefinition(customCSSKey);
return mainGroup;
}
Aggregations