Class AbstractTextControl

    • Constructor Detail

      • AbstractTextControl

        public AbstractTextControl()
        Deprecated.
    • Method Detail

      • updateValidationColor

        protected void updateValidationColor​(org.eclipse.swt.graphics.Color color)
        Deprecated.
        Description copied from class: SingleControl
        Allows controls to supply a second visual effect for controls on validation. The color to set is provided as the parameter.
        Overrides:
        updateValidationColor in class SingleControl
        Parameters:
        color - the color to set, null if the default background color should be set
      • fillControlComposite

        protected void fillControlComposite​(org.eclipse.swt.widgets.Composite composite)
        Deprecated.
        Description copied from class: SWTControl
        This method must be overridden by concrete classes. Here the widget displaying the data is added to the composite.
        Specified by:
        fillControlComposite in class SWTControl
        Parameters:
        composite - the Composite to add the widget to
      • createToolTip

        protected org.eclipse.swt.widgets.ToolTip createToolTip​(int style,
                                                                java.lang.String text,
                                                                java.lang.String message)
        Deprecated.
        Creates a ToolTip.
        Parameters:
        style - the SWT style
        text - the text
        message - the message
        Returns:
        a ToolTip
      • customizeText

        protected void customizeText​(org.eclipse.swt.widgets.Text text)
        Deprecated.
        This method allows to set custom values to the text field, e.g. a tooltip or a validation.
        Parameters:
        text - the text widget to customize
      • getTextVariantID

        protected abstract java.lang.String getTextVariantID()
        Deprecated.
        The VariantId to use e.g. for RAP
        Returns:
        the String identifying this control
      • getTextWidgetLayoutData

        protected org.eclipse.swt.layout.GridData getTextWidgetLayoutData()
        Deprecated.
        The LayoutData for the created Text widget. Can be changed by the concrete classes.
        Returns:
        the GridData to apply
      • getTextWidgetStyle

        protected int getTextWidgetStyle()
        Deprecated.
        The style to apply to the text widget. This can be changed by the concrete classes.
        Returns:
        the style to apply
      • getControlsForTooltip

        protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
        Deprecated.
        Description copied from class: SWTControl
        Method for retrieving all controls which should have the help text as their tooltip.
        Specified by:
        getControlsForTooltip in class SWTControl
        Returns:
        the array of the controls to set a tooltip to
      • setEditable

        public void setEditable​(boolean isEditable)
        Deprecated.
        Sets the state of the widget to be either editable or not.
        Overrides:
        setEditable in class ECPAbstractControl
        Parameters:
        isEditable - whether to set the widget editable
      • bindValue

        public org.eclipse.core.databinding.Binding bindValue()
        Deprecated.
        Description copied from class: SWTControl
        Triggers the control to perform the databinding.
        Specified by:
        bindValue in class SWTControl
        Returns:
        The Binding
      • createTooltipBinding

        protected org.eclipse.core.databinding.Binding createTooltipBinding​(org.eclipse.core.databinding.UpdateValueStrategy targetToModel,
                                                                            org.eclipse.core.databinding.UpdateValueStrategy modelToTarget)
        Deprecated.
        Creates a tooltip binding for this control.
        Parameters:
        targetToModel - the UpdateValueStrategy from target to Model
        modelToTarget - the UpdateValueStrategy from model to target
        Returns:
        the created Binding
      • setUnvalidatedString

        protected void setUnvalidatedString​(java.lang.String string)
        Deprecated.
        Sets the content of the SWT text control to the given string without calling #validateString(String).
        Parameters:
        string - the content of the SWT Text control
      • dispose

        public void dispose()
        Deprecated.
        Description copied from class: SingleControl
        Disposes the control. A control which needs specific dispose handling must still call super.dispose.
        Overrides:
        dispose in class SingleControl
      • getText

        public org.eclipse.swt.widgets.Text getText()
        Deprecated.
        Returns:
        the text