Class AbstractDtSelectComponent<M extends IModel,​P extends IParameterization,​VM extends SelectViewModel>

    • Field Detail

      • SELECT_BUTTON_COMMAND_ID

        public static final String SELECT_BUTTON_COMMAND_ID
        The command of the select button. By default the command corresponds to "F4" hotkey.
        See Also:
        Constant Field Values
      • CLEAR_BUTTON_COMMAND_ID

        public static final String CLEAR_BUTTON_COMMAND_ID
        The command of the clear button. By default the command corresponds to "Shift + F4" hotkey.
        See Also:
        Constant Field Values
      • OPEN_BUTTON_COMMAND_ID

        public static final String OPEN_BUTTON_COMMAND_ID
        The command of the open button. By default the command corresponds to "Ctrl/Cmd + Shift + F4" hotkey.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractDtSelectComponent

        protected AbstractDtSelectComponent​(P parameterization)
        Instantiates a new component with the given parameterization.
        Parameters:
        parameterization - the parameterization.
    • Method Detail

      • handleButtonClicked

        protected void handleButtonClicked​(IViewModel viewModel)
        Handles the button clicked event.
        Parameters:
        viewModel - the view model of the event sender.
      • createSelectButtonItem

        protected static ButtonItemViewModel createSelectButtonItem()
        Returns:
        the newly created ButtonItemViewModel with the fields filled in accordance with the select button.
      • createClearButtonItem

        protected static ButtonItemViewModel createClearButtonItem()
        Returns:
        the newly created ButtonItemViewModel with the fields filled in accordance with the clear button.
      • createOpenButtonItem

        protected static ButtonItemViewModel createOpenButtonItem()
        Returns:
        the newly created ButtonItemViewModel with the fields filled in accordance with the open button (the magnifier icon).
      • createButtonItem

        protected static ButtonItemViewModel createButtonItem​(String commandId,
                                                              String tooltip,
                                                              org.eclipse.swt.graphics.Image image)
        Create a new button view model with the provided parameters.
        Parameters:
        commandId - the command context id, cannot be null
        tooltip - the command tooltip message, cannot be null
        image - the command action image, cannot be null
        Returns:
        a new button view model with the provided parameters, never null