Class ItemFactory
- java.lang.Object
-
- com.logicaldoc.gui.common.client.util.ItemFactory
-
public class ItemFactory extends Object
Collection of useful factory methods for form items.- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
itemNameForAttribute(String name)
static com.smartgwt.client.widgets.form.fields.SelectItem
new2AFMethodSelector(String name, String value, boolean enabledOnly)
static com.smartgwt.client.widgets.form.fields.SelectItem
newAliasTypeSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newAnnotationShapeSelector(String value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newArchiveSelector(int mode, Integer status)
static com.smartgwt.client.widgets.form.fields.SelectItem
newAttributeSetSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newAttributesSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newAttributesSelector(String context)
static com.smartgwt.client.widgets.form.fields.SelectItem
newAutomationRoutineSelector(String name, Long value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean showEmpty)
static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem
newBarcodeFormatsComboBoxItem(String values)
static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem
newBarcodeFormatsComboBoxItem(String[] values)
static com.smartgwt.client.widgets.form.fields.SelectItem
newBarcodeGenerationFormatSelector(String name, String title, String value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newBarcodeTemplateSelector(boolean withEmpty, Long filterTemplateId, Long selectedTemplateId)
Creates a select list with the barcode templatesstatic com.smartgwt.client.widgets.form.fields.RadioGroupItem
newBooleanSelector(String name)
static com.smartgwt.client.widgets.form.fields.RadioGroupItem
newBooleanSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newBooleanSelectorForAttribute(String name, String title, boolean allowEmpty)
Simple boolean selector for Extended Attributestatic com.smartgwt.client.widgets.Img
newBrandImg(String name, GUIInfo info)
static com.smartgwt.client.widgets.form.fields.SelectItem
newCalendarEventStatusSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newCharsetSelector(String name)
static com.smartgwt.client.widgets.form.fields.CheckboxItem
newCheckbox(String name, String title)
static com.smartgwt.client.widgets.form.fields.ColorPickerItem
newColorItemPicker(String value, boolean clearOption, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
static com.smartgwt.client.widgets.form.fields.ColorPickerItem
newColorItemPicker(String name, String title, String value, boolean clearOption, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
static com.smartgwt.client.widgets.form.fields.ComboBoxItem
newComboBoxItem(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newComparatorSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newComparatorSelector(String inExt)
static com.smartgwt.client.widgets.form.fields.SelectItem
newConversionFormatItem(String fileName)
static com.smartgwt.client.widgets.form.fields.TextItem
newCronExpressionItem(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
static com.smartgwt.client.widgets.form.fields.SelectItem
newDashletSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newDashletTypeSelector(String value)
static com.smartgwt.client.widgets.form.fields.DateItem
newDateItem(String name)
Creates a new DateItem.static com.smartgwt.client.widgets.form.fields.DateItem
newDateItem(String name, String title)
Creates a new DateItem.static com.smartgwt.client.widgets.form.fields.DateItem
newDateItemForAttribute(String name, String title)
Creates a new DateItem for the Extended AttributesDS.static com.smartgwt.client.widgets.form.fields.SelectItem
newDateOperator(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newDensitySelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newDocuSignTabType(String value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newDueTimeSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEffectSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.ComboBoxItem
newEmailComboSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEmailFields(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEmailFolderingSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newEmailFromSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.TextItem
newEmailItem(String name, String title, boolean multiple)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEmailProtocolSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newEmailSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEventSelector(String name, String title, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean folder, boolean workflow, boolean user, boolean importfolder)
static com.smartgwt.client.widgets.form.fields.SelectItem
newEventsSelector(String name, String title, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean folder, boolean workflow, boolean user, boolean importfolder)
static com.smartgwt.client.widgets.form.fields.FloatItem
newFloatItem(String name, String title, Float value)
Creates a new FloatItem.static com.smartgwt.client.widgets.form.fields.FormItem
newFloatItemForAttribute(String name, String label, Float value)
Creates a new FloatItem for the Extended AttributesDS.static com.smartgwt.client.widgets.form.fields.SelectItem
newFolderSecurityOption(String name)
static com.smartgwt.client.widgets.form.fields.TextItem
newFolderSelectorForAttribute(String name, String title, boolean allowsNull, List<com.smartgwt.client.widgets.form.fields.FormItemIcon> additionalIcons)
static com.smartgwt.client.widgets.form.fields.SelectItem
newFolderTemplateSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newFormatConverterSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newFormatConverterSelector(String inExt, String outExt)
static com.smartgwt.client.widgets.form.fields.SelectItem
newFormSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newFrequencySelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newGroupSelector(String name, String title)
static com.smartgwt.client.widgets.HeaderControl.HeaderIcon
newHeaderIcon(String image)
static com.smartgwt.client.widgets.Img
newImg(String name)
static com.smartgwt.client.widgets.Img
newImgIcon(String name)
static com.smartgwt.client.widgets.form.fields.SelectItem
newImportCustomIds()
static com.smartgwt.client.widgets.form.fields.SelectItem
newImportFolderProviderOption(String value)
static com.smartgwt.client.widgets.form.fields.IntegerItem
newIntegerItem(String name, String title, Integer value)
Creates a new IntegerItem.static com.smartgwt.client.widgets.form.fields.FormItem
newIntegerItemForAttribute(String name, String label, Integer value)
Creates a new IntegerItem for the Extended AttributesDS.static com.smartgwt.client.widgets.form.fields.FormItemIcon
newItemIcon(String image)
static com.smartgwt.client.widgets.form.fields.SelectItem
newJobGroupSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newLanguageSelector(String name, boolean withEmpty, boolean gui)
static com.smartgwt.client.widgets.form.fields.LinkItem
newLinkItem(String name, String title)
static com.smartgwt.client.widgets.Label
newLinkLabel(String title)
static com.smartgwt.client.widgets.form.fields.IntegerItem
newLongItem(String name, String title, Long value)
Creates a new IntegerItemstatic com.smartgwt.client.widgets.form.fields.MiniDateRangeItem
newMiniDateRangeItem(String name, String title)
static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem
newMultiComboBoxItem(String name, String title, com.smartgwt.client.data.DataSource options, Object[] values)
static com.smartgwt.client.widgets.form.fields.SelectItem
newMultipleSelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem
newMultipleUsersSelector(String name, String title, boolean skipDisabled, long[] selection)
static com.smartgwt.client.widgets.form.fields.SelectItem
newOCRStatusSelector(Integer value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newOCRTemplateSelector(boolean withEmpty, Long filterTemplateId, Long selectedTemplateId)
Creates a select list with the OCR templatesstatic com.smartgwt.client.widgets.form.fields.PasswordItem
newPasswordItem(String name, String title, String value)
static com.smartgwt.client.widgets.form.fields.PasswordItem
newPasswordItemPreventAutocomplete(String name, String title, String value)
static com.smartgwt.client.widgets.form.fields.PasswordItem
newPasswordItemPreventAutocomplete(String name, String title, String value, boolean withGeneratorTool)
static com.smartgwt.client.widgets.form.fields.SelectItem
newPrioritySelector(String name, String title)
static com.smartgwt.client.widgets.form.fields.RadioGroupItem
newRadioGroup(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newRecipientTypeSelector(String name)
static com.smartgwt.client.widgets.form.fields.SelectItem
newRetentionAction(int value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newRetentionDateOption(int value)
static com.smartgwt.client.widgets.form.fields.RichTextItem
newRichTextItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
static com.smartgwt.client.widgets.form.fields.RichTextItem
newRichTextItemForEmail(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler chagnedHandler)
Creates a new RichTextItem suitable for emails.static com.smartgwt.client.widgets.form.fields.RichTextItem
newRichTextItemForNote(String name, String title, String value)
Creates a new RichTextItem suitable for notes.static com.smartgwt.client.widgets.form.fields.RowSpacerItem
newRowSpacer()
static com.smartgwt.client.widgets.form.fields.SelectItem
newRunlevelSelector()
static com.smartgwt.client.widgets.form.fields.StaticTextItem
newSafePasswordItem(String name, String title, String value, com.smartgwt.client.widgets.form.fields.FormItem hiddenPasswordItem, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
Provides a control that does not display the password input directly, it uses a second item to store the password in an hidden attribute of the form.static com.smartgwt.client.widgets.form.fields.SelectItem
newSelectItem(String name)
static com.smartgwt.client.widgets.form.fields.SelectItem
newSelectItem(String name, String title)
static com.smartgwt.client.widgets.form.fields.TextItem
newSimpleTextItem(String name, String value)
Creates a new TextItem that validates a simple textstatic com.smartgwt.client.widgets.form.fields.TextItem
newSimpleTextItem(String name, String title, String value)
Creates a new TextItem that validates a simple textstatic com.smartgwt.client.widgets.form.fields.TextItem
newSimpleTextItemPreventAutocomplete(String name, String title, String value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newSizeOperator(String name, String title)
static com.smartgwt.client.widgets.form.fields.SelectItem
newSkinSelector()
static com.smartgwt.client.widgets.form.fields.SliderItem
newSliderItem(String name, String title, Double value, double minValue, double maxValue)
Creates a new SliderItemstatic com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, Integer value)
static com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, Integer value, Integer min, Integer max)
Creates a new SpinnerItem(with a range validator)static com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, Long value)
static com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, String title, Integer value)
static com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, String title, Integer value, Integer min, Integer max)
Creates a new SpinnerItem(with a range validator)static com.smartgwt.client.widgets.form.fields.SpinnerItem
newSpinnerItem(String name, String title, Long value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newSplitSeparatorHandlingSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newSplittingPolicySelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newStampSelector()
static com.smartgwt.client.widgets.form.fields.StaticTextItem
newStaticTextItem(String name, String value)
Creates a new StaticTextItemstatic com.smartgwt.client.widgets.form.fields.StaticTextItem
newStaticTextItem(String name, String title, String value)
Creates a new StaticTextItemstatic com.smartgwt.client.widgets.form.fields.SelectItem
newStorageSelector(String name, Integer value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newStorageTypeSelector()
static com.smartgwt.client.widgets.form.fields.FormItem
newStringItemForAttribute(GUIAttribute att)
Creates a new TextItem for an extended attributestatic com.smartgwt.client.widgets.form.fields.SelectItem
newSubscriptionTypeSelector()
static com.smartgwt.client.widgets.form.fields.SelectItem
newTagInputMode(String name, String title)
static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem
newTagsComboBoxItem(String name, String title, TagsDS options, Object[] tags)
static com.smartgwt.client.widgets.form.fields.SelectItem
newTagsMultiplePickList(String name, String title, TagsDS options, Object[] tags)
static com.smartgwt.client.widgets.form.fields.SelectItem
newTemplateSelector(boolean withEmpty, Long selectedTemplateId)
static com.smartgwt.client.widgets.form.fields.SelectItem
newTenantSelector()
static com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItem(String name, String value)
Creates a new TextAreaItemstatic com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItem(String name, String title, String value)
Creates a new TextAreaItemstatic com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItemForAutomation(String name, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withHtmlEditor)
static com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withHtmlEditor)
static com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItemForHTML(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
static com.smartgwt.client.widgets.form.fields.TextAreaItem
newTextAreaItemForNote(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withSimplifiedHtmlEditor)
Creates a new TextAreaItem suitable for notes.static com.smartgwt.client.widgets.form.fields.TextItem
newTextItem(String name, String value)
Creates a new TextItem.static com.smartgwt.client.widgets.form.fields.TextItem
newTextItem(String name, String title, String value)
Creates a new TextItem.static com.smartgwt.client.widgets.form.fields.TextItem
newTextItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
static com.smartgwt.client.widgets.form.fields.TextItem
newTextItemPreventAutocomplete(String name, String title, String value)
static com.smartgwt.client.widgets.form.fields.TimeItem
newTimeItem(String name, String title)
static com.smartgwt.client.widgets.form.fields.TimeItem
newTimeItemPicklist(String name, String title)
static com.smartgwt.client.widgets.form.fields.ComboBoxItem
newTimeZoneSelector(String name, String value)
static com.smartgwt.client.widgets.form.fields.SelectItem
newUserSelector(String name, String title, String groupIdOrName, boolean required, boolean skipDisabled)
static com.smartgwt.client.widgets.form.fields.SelectItem
newUserSelectorForAttribute(String name, String title, String groupIdOrName, List<com.smartgwt.client.widgets.form.fields.FormItemIcon> additionalIcons)
static com.smartgwt.client.widgets.form.fields.SelectItem
newUserTypeSelector(String name, int userType)
static com.smartgwt.client.widgets.form.fields.IntegerItem
newValidateIntegerItem(String name, String title, Integer value, Integer min, Integer max)
Creates a new IntegerItem with a range validatorstatic com.smartgwt.client.widgets.form.fields.SelectItem
newWelcomeScreenSelector(Integer value)
static com.smartgwt.client.widgets.form.fields.ComboBoxItem
newWorkflowCombo(Long userId)
static com.smartgwt.client.widgets.form.fields.SelectItem
newWorkflowSelector(Long userId)
static com.smartgwt.client.widgets.form.fields.SelectItem
newWorkflowSelector(Long userId, boolean deployedOnly)
static com.smartgwt.client.widgets.form.fields.SelectItem
newWorkflowSelectorForAdministration(Long userId)
static com.smartgwt.client.widgets.form.fields.SelectItem
newWorkspaceSelector(Long value)
static com.smartgwt.client.widgets.form.fields.RadioGroupItem
newYesNoRadioItem(String name, String label)
Simple yes/no radio button.static com.smartgwt.client.widgets.form.fields.SelectItem
newYesNoSelectItem(String name, String title)
static String
originalItemName(String name)
Filter the name from problematic chars
-
-
-
Method Detail
-
newColorItemPicker
public static com.smartgwt.client.widgets.form.fields.ColorPickerItem newColorItemPicker(String name, String title, String value, boolean clearOption, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
-
newColorItemPicker
public static com.smartgwt.client.widgets.form.fields.ColorPickerItem newColorItemPicker(String value, boolean clearOption, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
-
newDateItem
public static com.smartgwt.client.widgets.form.fields.DateItem newDateItem(String name, String title)
Creates a new DateItem.- Parameters:
name
- The item name (mandatory)title
- The item title (optional)- Returns:
- the new item
-
newDateItem
public static com.smartgwt.client.widgets.form.fields.DateItem newDateItem(String name)
Creates a new DateItem.- Parameters:
name
- The item name (mandatory)- Returns:
- the new item
-
newDateItemForAttribute
public static com.smartgwt.client.widgets.form.fields.DateItem newDateItemForAttribute(String name, String title)
Creates a new DateItem for the Extended AttributesDS.- Parameters:
name
- The item name (mandatory)title
- The item title- Returns:
- the new item
-
newMiniDateRangeItem
public static com.smartgwt.client.widgets.form.fields.MiniDateRangeItem newMiniDateRangeItem(String name, String title)
-
newMultipleUsersSelector
public static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem newMultipleUsersSelector(String name, String title, boolean skipDisabled, long[] selection)
-
newFolderSelectorForAttribute
public static com.smartgwt.client.widgets.form.fields.TextItem newFolderSelectorForAttribute(String name, String title, boolean allowsNull, List<com.smartgwt.client.widgets.form.fields.FormItemIcon> additionalIcons)
-
newUserSelectorForAttribute
public static com.smartgwt.client.widgets.form.fields.SelectItem newUserSelectorForAttribute(String name, String title, String groupIdOrName, List<com.smartgwt.client.widgets.form.fields.FormItemIcon> additionalIcons)
-
newRecipientTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newRecipientTypeSelector(String name)
-
newUserTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newUserTypeSelector(String name, int userType)
-
newDashletTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newDashletTypeSelector(String value)
-
newDensitySelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newDensitySelector()
-
newSkinSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newSkinSelector()
-
newDateOperator
public static com.smartgwt.client.widgets.form.fields.SelectItem newDateOperator(String name, String title)
-
newSizeOperator
public static com.smartgwt.client.widgets.form.fields.SelectItem newSizeOperator(String name, String title)
-
newBarcodeGenerationFormatSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newBarcodeGenerationFormatSelector(String name, String title, String value)
-
newLanguageSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newLanguageSelector(String name, boolean withEmpty, boolean gui)
-
newTimeZoneSelector
public static com.smartgwt.client.widgets.form.fields.ComboBoxItem newTimeZoneSelector(String name, String value)
-
newCharsetSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newCharsetSelector(String name)
-
newStorageSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newStorageSelector(String name, Integer value)
-
newStorageTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newStorageTypeSelector()
-
newAnnotationShapeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAnnotationShapeSelector(String value)
-
newComparatorSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newComparatorSelector()
-
newComparatorSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newComparatorSelector(String inExt)
-
newFormatConverterSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newFormatConverterSelector()
-
newFormatConverterSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newFormatConverterSelector(String inExt, String outExt)
-
newEmailItem
public static com.smartgwt.client.widgets.form.fields.TextItem newEmailItem(String name, String title, boolean multiple)
-
newEmailComboSelector
public static com.smartgwt.client.widgets.form.fields.ComboBoxItem newEmailComboSelector(String name, String title)
-
newEmailSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEmailSelector(String name, String title)
-
newEmailFromSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEmailFromSelector(String name, String title)
-
newGroupSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newGroupSelector(String name, String title)
-
newUserSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newUserSelector(String name, String title, String groupIdOrName, boolean required, boolean skipDisabled)
-
newTenantSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newTenantSelector()
-
newAutomationRoutineSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAutomationRoutineSelector(String name, Long value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean showEmpty)
-
newRadioGroup
public static com.smartgwt.client.widgets.form.fields.RadioGroupItem newRadioGroup(String name, String title)
-
newBooleanSelector
public static com.smartgwt.client.widgets.form.fields.RadioGroupItem newBooleanSelector(String name, String title)
-
newBooleanSelector
public static com.smartgwt.client.widgets.form.fields.RadioGroupItem newBooleanSelector(String name)
-
newCheckbox
public static com.smartgwt.client.widgets.form.fields.CheckboxItem newCheckbox(String name, String title)
-
newMultiComboBoxItem
public static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem newMultiComboBoxItem(String name, String title, com.smartgwt.client.data.DataSource options, Object[] values)
-
newTagsComboBoxItem
public static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem newTagsComboBoxItem(String name, String title, TagsDS options, Object[] tags)
-
newBarcodeFormatsComboBoxItem
public static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem newBarcodeFormatsComboBoxItem(String values)
-
newBarcodeFormatsComboBoxItem
public static com.smartgwt.client.widgets.form.fields.MultiComboBoxItem newBarcodeFormatsComboBoxItem(String[] values)
-
newTagsMultiplePickList
public static com.smartgwt.client.widgets.form.fields.SelectItem newTagsMultiplePickList(String name, String title, TagsDS options, Object[] tags)
-
newMultipleSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newMultipleSelector(String name, String title)
-
newPrioritySelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newPrioritySelector(String name, String title)
-
newWelcomeScreenSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newWelcomeScreenSelector(Integer value)
-
newDashletSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newDashletSelector()
-
newOCRStatusSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newOCRStatusSelector(Integer value)
-
newFolderSecurityOption
public static com.smartgwt.client.widgets.form.fields.SelectItem newFolderSecurityOption(String name)
-
newEventsSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEventsSelector(String name, String title, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean folder, boolean workflow, boolean user, boolean importfolder)
-
newEventSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEventSelector(String name, String title, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean folder, boolean workflow, boolean user, boolean importfolder)
-
newSelectItem
public static com.smartgwt.client.widgets.form.fields.SelectItem newSelectItem(String name, String title)
-
newSelectItem
public static com.smartgwt.client.widgets.form.fields.SelectItem newSelectItem(String name)
-
newConversionFormatItem
public static com.smartgwt.client.widgets.form.fields.SelectItem newConversionFormatItem(String fileName)
-
newComboBoxItem
public static com.smartgwt.client.widgets.form.fields.ComboBoxItem newComboBoxItem(String name, String title)
-
newYesNoSelectItem
public static com.smartgwt.client.widgets.form.fields.SelectItem newYesNoSelectItem(String name, String title)
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, String title, Long value)
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, Long value)
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, String title, Integer value)
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, Integer value)
-
newImgIcon
public static com.smartgwt.client.widgets.Img newImgIcon(String name)
-
newImg
public static com.smartgwt.client.widgets.Img newImg(String name)
-
newItemIcon
public static com.smartgwt.client.widgets.form.fields.FormItemIcon newItemIcon(String image)
-
newHeaderIcon
public static com.smartgwt.client.widgets.HeaderControl.HeaderIcon newHeaderIcon(String image)
-
newCronExpressionItem
public static com.smartgwt.client.widgets.form.fields.TextItem newCronExpressionItem(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
-
newTextItem
public static com.smartgwt.client.widgets.form.fields.TextItem newTextItem(String name, String title, String value)
Creates a new TextItem.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the text item
-
newTextItem
public static com.smartgwt.client.widgets.form.fields.TextItem newTextItem(String name, String value)
Creates a new TextItem.- Parameters:
name
- The item name (mandatory)value
- The item value (optional)- Returns:
- the text item
-
newTextItemPreventAutocomplete
public static com.smartgwt.client.widgets.form.fields.TextItem newTextItemPreventAutocomplete(String name, String title, String value)
-
newTextItemForAutomation
public static com.smartgwt.client.widgets.form.fields.TextItem newTextItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
-
newRichTextItemForAutomation
public static com.smartgwt.client.widgets.form.fields.RichTextItem newRichTextItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
-
newRowSpacer
public static com.smartgwt.client.widgets.form.fields.RowSpacerItem newRowSpacer()
-
newStringItemForAttribute
public static com.smartgwt.client.widgets.form.fields.FormItem newStringItemForAttribute(GUIAttribute att)
Creates a new TextItem for an extended attribute- Parameters:
att
- the attribute- Returns:
- the new item
-
newPasswordItem
public static com.smartgwt.client.widgets.form.fields.PasswordItem newPasswordItem(String name, String title, String value)
-
newPasswordItemPreventAutocomplete
public static com.smartgwt.client.widgets.form.fields.PasswordItem newPasswordItemPreventAutocomplete(String name, String title, String value)
-
newPasswordItemPreventAutocomplete
public static com.smartgwt.client.widgets.form.fields.PasswordItem newPasswordItemPreventAutocomplete(String name, String title, String value, boolean withGeneratorTool)
-
newSafePasswordItem
public static com.smartgwt.client.widgets.form.fields.StaticTextItem newSafePasswordItem(String name, String title, String value, com.smartgwt.client.widgets.form.fields.FormItem hiddenPasswordItem, com.smartgwt.client.widgets.form.fields.events.ChangedHandler changedHandler)
Provides a control that does not display the password input directly, it uses a second item to store the password in an hidden attribute of the form.- Parameters:
name
- Name of the fieldtitle
- The titlevalue
- Current password valuehiddenPasswordItem
- The item that stores the real passwordchangedHandler
- optional handler to invoke when the password has been changed- Returns:
- the opaque item
-
newSimpleTextItem
public static com.smartgwt.client.widgets.form.fields.TextItem newSimpleTextItem(String name, String title, String value)
Creates a new TextItem that validates a simple text- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newSimpleTextItem
public static com.smartgwt.client.widgets.form.fields.TextItem newSimpleTextItem(String name, String value)
Creates a new TextItem that validates a simple text- Parameters:
name
- The item name (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newSimpleTextItemPreventAutocomplete
public static com.smartgwt.client.widgets.form.fields.TextItem newSimpleTextItemPreventAutocomplete(String name, String title, String value)
-
newStaticTextItem
public static com.smartgwt.client.widgets.form.fields.StaticTextItem newStaticTextItem(String name, String value)
Creates a new StaticTextItem- Parameters:
name
- The item name (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newStaticTextItem
public static com.smartgwt.client.widgets.form.fields.StaticTextItem newStaticTextItem(String name, String title, String value)
Creates a new StaticTextItem- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newLongItem
public static com.smartgwt.client.widgets.form.fields.IntegerItem newLongItem(String name, String title, Long value)
Creates a new IntegerItem- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newIntegerItem
public static com.smartgwt.client.widgets.form.fields.IntegerItem newIntegerItem(String name, String title, Integer value)
Creates a new IntegerItem.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newIntegerItemForAttribute
public static com.smartgwt.client.widgets.form.fields.FormItem newIntegerItemForAttribute(String name, String label, Integer value)
Creates a new IntegerItem for the Extended AttributesDS.- Parameters:
name
- The item name (mandatory)label
- The item labelvalue
- The item value (optional)- Returns:
- the new item
-
newBooleanSelectorForAttribute
public static com.smartgwt.client.widgets.form.fields.SelectItem newBooleanSelectorForAttribute(String name, String title, boolean allowEmpty)
Simple boolean selector for Extended Attribute- Parameters:
name
- name of the itemtitle
- title of the item(optional)allowEmpty
- flag to indicate id the item must accept empty value- Returns:
- the new item
-
newValidateIntegerItem
public static com.smartgwt.client.widgets.form.fields.IntegerItem newValidateIntegerItem(String name, String title, Integer value, Integer min, Integer max)
Creates a new IntegerItem with a range validator- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)min
- The item minimum value (optional)max
- The item maximum value (optional)- Returns:
- the new item
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, String title, Integer value, Integer min, Integer max)
Creates a new SpinnerItem(with a range validator)- Parameters:
name
- name of the itemtitle
- title of the item(optional)value
- default value(optional)min
- minimum value(optional)max
- maximum value(optional)- Returns:
- the new item
-
newSpinnerItem
public static com.smartgwt.client.widgets.form.fields.SpinnerItem newSpinnerItem(String name, Integer value, Integer min, Integer max)
Creates a new SpinnerItem(with a range validator)- Parameters:
name
- name of the itemvalue
- default value(optional)min
- minimum value(optional)max
- maximum value(optional)- Returns:
- the new item
-
newSliderItem
public static com.smartgwt.client.widgets.form.fields.SliderItem newSliderItem(String name, String title, Double value, double minValue, double maxValue)
Creates a new SliderItem- Parameters:
name
- name of the itemtitle
- title of the item(optional)value
- default value(optional)minValue
- minimum valuemaxValue
- maximum value- Returns:
- the new item
-
newLinkItem
public static com.smartgwt.client.widgets.form.fields.LinkItem newLinkItem(String name, String title)
-
newTextAreaItem
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItem(String name, String title, String value)
Creates a new TextAreaItem- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newTextAreaItem
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItem(String name, String value)
Creates a new TextAreaItem- Parameters:
name
- The item name (mandatory)svalue
- The item value (optional)- Returns:
- the new item
-
newTextAreaItemForAutomation
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItemForAutomation(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withHtmlEditor)
-
newTextAreaItemForAutomation
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItemForAutomation(String name, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withHtmlEditor)
-
newTextAreaItemForHTML
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItemForHTML(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler)
-
newDueTimeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newDueTimeSelector(String name, String title)
-
newTimeItem
public static com.smartgwt.client.widgets.form.fields.TimeItem newTimeItem(String name, String title)
-
newTimeItemPicklist
public static com.smartgwt.client.widgets.form.fields.TimeItem newTimeItemPicklist(String name, String title)
-
newTemplateSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newTemplateSelector(boolean withEmpty, Long selectedTemplateId)
-
newOCRTemplateSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newOCRTemplateSelector(boolean withEmpty, Long filterTemplateId, Long selectedTemplateId)
Creates a select list with the OCR templates- Parameters:
withEmpty
- id an empty row must be shownfilterTemplateId
- the document template id to filter the ocr templatesselectedTemplateId
- identifier of the template to be selected by default- Returns:
- the item
-
newBarcodeTemplateSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newBarcodeTemplateSelector(boolean withEmpty, Long filterTemplateId, Long selectedTemplateId)
Creates a select list with the barcode templates- Parameters:
withEmpty
- id an empty row must be shownfilterTemplateId
- the document template id to filter the ocr templatesselectedTemplateId
- identifier of the template to be selected by default- Returns:
- the item
-
newAttributeSetSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAttributeSetSelector()
-
newAttributesSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAttributesSelector(String context)
-
newAttributesSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAttributesSelector()
-
newFrequencySelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newFrequencySelector()
-
newCalendarEventStatusSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newCalendarEventStatusSelector()
-
newEmailProtocolSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEmailProtocolSelector()
-
newEmailFolderingSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEmailFolderingSelector()
-
newEffectSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newEffectSelector(String name, String title)
-
newEmailFields
public static com.smartgwt.client.widgets.form.fields.SelectItem newEmailFields(String name, String title)
-
newAliasTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newAliasTypeSelector()
-
newArchiveSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newArchiveSelector(int mode, Integer status)
-
newImportCustomIds
public static com.smartgwt.client.widgets.form.fields.SelectItem newImportCustomIds()
-
newWorkflowSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newWorkflowSelector(Long userId)
-
newWorkflowSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newWorkflowSelector(Long userId, boolean deployedOnly)
-
newWorkflowSelectorForAdministration
public static com.smartgwt.client.widgets.form.fields.SelectItem newWorkflowSelectorForAdministration(Long userId)
-
newWorkflowCombo
public static com.smartgwt.client.widgets.form.fields.ComboBoxItem newWorkflowCombo(Long userId)
-
newJobGroupSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newJobGroupSelector()
-
newFormSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newFormSelector()
-
newStampSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newStampSelector()
-
newLinkLabel
public static com.smartgwt.client.widgets.Label newLinkLabel(String title)
-
newFloatItem
public static com.smartgwt.client.widgets.form.fields.FloatItem newFloatItem(String name, String title, Float value)
Creates a new FloatItem.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the new item
-
newFloatItemForAttribute
public static com.smartgwt.client.widgets.form.fields.FormItem newFloatItemForAttribute(String name, String label, Float value)
Creates a new FloatItem for the Extended AttributesDS.- Parameters:
name
- The item name (mandatory)label
- The item label (optional)value
- The item value (optional)- Returns:
- the new item
-
newYesNoRadioItem
public static com.smartgwt.client.widgets.form.fields.RadioGroupItem newYesNoRadioItem(String name, String label)
Simple yes/no radio button. yes=true, no=false- Parameters:
name
- name of the itemlabel
- label of the item(optional)- Returns:
- the new item
-
newTagInputMode
public static com.smartgwt.client.widgets.form.fields.SelectItem newTagInputMode(String name, String title)
-
newRunlevelSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newRunlevelSelector()
-
newFolderTemplateSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newFolderTemplateSelector()
-
newWorkspaceSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newWorkspaceSelector(Long value)
-
newRetentionDateOption
public static com.smartgwt.client.widgets.form.fields.SelectItem newRetentionDateOption(int value)
-
newImportFolderProviderOption
public static com.smartgwt.client.widgets.form.fields.SelectItem newImportFolderProviderOption(String value)
-
newDocuSignTabType
public static com.smartgwt.client.widgets.form.fields.SelectItem newDocuSignTabType(String value)
-
newRetentionAction
public static com.smartgwt.client.widgets.form.fields.SelectItem newRetentionAction(int value)
-
new2AFMethodSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem new2AFMethodSelector(String name, String value, boolean enabledOnly)
-
newSplittingPolicySelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newSplittingPolicySelector()
-
newSplitSeparatorHandlingSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newSplitSeparatorHandlingSelector()
-
newSubscriptionTypeSelector
public static com.smartgwt.client.widgets.form.fields.SelectItem newSubscriptionTypeSelector()
-
newTextAreaItemForNote
public static com.smartgwt.client.widgets.form.fields.TextAreaItem newTextAreaItemForNote(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler, boolean withSimplifiedHtmlEditor)
Creates a new TextAreaItem suitable for notes.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)handler
- The changed handler (optional)withSimplifiedHtmlEditor
- If the icon that opens the simplified HTML editor must be shown- Returns:
- the text item
-
newRichTextItemForNote
public static com.smartgwt.client.widgets.form.fields.RichTextItem newRichTextItemForNote(String name, String title, String value)
Creates a new RichTextItem suitable for notes.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)- Returns:
- the text item
-
newRichTextItemForEmail
public static com.smartgwt.client.widgets.form.fields.RichTextItem newRichTextItemForEmail(String name, String title, String value, com.smartgwt.client.widgets.form.fields.events.ChangedHandler chagnedHandler)
Creates a new RichTextItem suitable for emails.- Parameters:
name
- The item name (mandatory)title
- The item title (mandatory)value
- The item value (optional)chagnedHandler
- A handler thas is notified about changes (optional)- Returns:
- the text item
-
originalItemName
public static String originalItemName(String name)
Filter the name from problematic chars- Parameters:
name
- name of the item- Returns:
- sanitized name
-
-