Class LocalizedStringPropEditor

    • Constructor Detail

      • LocalizedStringPropEditor

        public LocalizedStringPropEditor()
        Default constructor called before createControls.
    • Method Detail

      • create

        protected void create()
        Creates the property editor controls.
        Overrides:
        create in class StringPropEditor
      • setToolTipText

        protected void setToolTipText​(java.lang.String msg)
        Sets the tooltip text. The default is to apply the getToolTipText() text to the edit control.
        Overrides:
        setToolTipText in class BaseEditor<StringProp,​java.lang.String>
        Parameters:
        msg - Message in tooltip (normally error), null for none, in which case the getToolTipText2() is used.
      • validate

        public java.lang.String validate​(IPropertyEditorController controller,
                                         PropertyEditorInfo info,
                                         PropCnr[] parents,
                                         java.lang.String value,
                                         java.lang.String[] options)
        Validates the property value after editing. If this is successful, null is returned. Otherwise an error message string is returned that can be used as the tooltip text.
        Specified by:
        validate in interface IEntryValidator
        Parameters:
        controller - The controller of the property editor.
        info - Information about the item being edited.
        parents - Parent property containers of the validated property.
        value - The string value to set.
        options - Validation options, may be null for none.
        Returns:
        An error message or null for OK validation.
      • getDescription

        public java.lang.String getDescription​(IPropertyEditorController controller,
                                               PropertyEditorInfo info,
                                               PropCnr[] parents,
                                               java.lang.String[] options)
        Gets a description of the validation options.
        Specified by:
        getDescription in interface IEntryValidator
        Parameters:
        controller - The controller of the property editor.
        info - Information about the item being edited.
        parents - Parent property containers of the validated property.
        options - Validation options, may be null for none.
        Returns:
        The descriptive string that can be prepended with e.g. "Enter ";