Class TableControl

  • All Implemented Interfaces:
    ECPControlSWT

    @Deprecated
    public class TableControl
    extends SWTControl
    Deprecated.
    The class describing a table control.
    Author:
    Eugen Neufeld, emueller
    • Constructor Detail

      • TableControl

        public TableControl()
        Deprecated.
    • Method Detail

      • bindValue

        protected 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
      • createControl

        public org.eclipse.swt.widgets.Composite createControl​(org.eclipse.swt.widgets.Composite parent)
        Deprecated.
        Description copied from class: SWTControl
        This method is called to render the control on a parent.
        Overrides:
        createControl in class SWTControl
        Parameters:
        parent - the Composite which is the parent
        Returns:
        the created Composite
      • fillControlComposite

        protected void fillControlComposite​(org.eclipse.swt.widgets.Composite parent)
        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:
        parent - the Composite to add the widget to
      • getCustomUnsetButton

        protected org.eclipse.swt.widgets.Button getCustomUnsetButton()
        Deprecated.
        Description copied from class: SWTControl
        The default unset button will be displayed to the right of the control's composite. Concrete classes may override this method to include an own unset button in their composite rather than using the default positioning.
        Overrides:
        getCustomUnsetButton in class SWTControl
        Returns:
        The custom unset button of the concrete class
      • deleteRowUserConfirmDialog

        protected void deleteRowUserConfirmDialog​(java.util.List<org.eclipse.emf.ecore.EObject> deletionList)
        Deprecated.
        This method shows a user confirmation dialog when the user attempts to delete a row in the table.
        Parameters:
        deletionList - the list of selected EObjects to delete
      • deleteRows

        protected void deleteRows​(java.util.List<org.eclipse.emf.ecore.EObject> deletionList)
        Deprecated.
        This is called by deleteRowUserConfirmDialog(List) after the user confirmed to delete the selected elements.
        Parameters:
        deletionList - the list of EObjects to delete
      • addRow

        protected void addRow​(org.eclipse.emf.ecore.EClass clazz)
        Deprecated.
        This method is called to add a new entry in the domain model and thus to create a new row in the table. The element to create is defined by the provided class. You can override this method but you have to call super nonetheless.
        Parameters:
        clazz - the EClass defining the EObject to create
      • dispose

        public void dispose()
        Deprecated.
        Disposes the control. A control which needs specific dispose handling must still call super.dispose.
        Overrides:
        dispose in class SWTControl
      • getTableTooltipMessage

        protected java.lang.String getTableTooltipMessage​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Deprecated.
        Returns the message of the validation tool tip shown in the table header.
        Parameters:
        diagnostic - the Diagnostic to extract the message from
        Returns:
        the message
      • getRowTooltipMessage

        protected java.lang.String getRowTooltipMessage​(VDiagnostic vDiagnostic)
        Deprecated.
        Returns the message of the validation tool tip shown in the row.
        Parameters:
        vDiagnostic - the VDiagnostic to get the message from
        Returns:
        the message
      • getCellTooltipMessage

        protected java.lang.String getCellTooltipMessage​(VDiagnostic vDiagnostic)
        Deprecated.
        Returns the message of the validation tool tip shown in the cell.
        Parameters:
        vDiagnostic - the VDiagnostic to get the message from
        Returns:
        the message
      • setEditable

        @Deprecated
        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
      • getUnsetLabelText

        protected java.lang.String getUnsetLabelText()
        Deprecated.
        Description copied from class: SWTControl
        Returns the string for the unset label.
        Specified by:
        getUnsetLabelText in class SWTControl
        Returns:
        The unset label text
      • getUnsetButtonTooltip

        protected java.lang.String getUnsetButtonTooltip()
        Deprecated.
        Description copied from class: SWTControl
        Returns the string for the unset button tooltip.
        Specified by:
        getUnsetButtonTooltip in class SWTControl
        Returns:
        The unset button tooltip
      • 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
      • showLabel

        @Deprecated
        public boolean showLabel()
        Deprecated.
        Whether a label should be shown for this control.
        Overrides:
        showLabel in class ECPAbstractControl
        Returns:
        true if a label should be created, false otherwise