Class ValueEditorBase

    • Constructor Detail

      • ValueEditorBase

        public ValueEditorBase()
    • Method Detail

      • activateControls

        public final void activateControls()
        Description copied from interface: IValueEditor
        Включить (когда несколько типов)
        Specified by:
        activateControls in interface IValueEditor
      • deactivate

        public final void deactivate()
        Description copied from interface: IValueEditor
        Выключить (когда несколько типов)
        Specified by:
        deactivate in interface IValueEditor
      • getValue

        public Object getValue()
        Description copied from interface: IValueEditor
        Получить отредактированное значение
        Specified by:
        getValue in interface IValueEditor
        Returns:
        значение
      • getValue

        public Object getValue​(boolean needValidate)
        Description copied from interface: IValueEditor
        Получить отредактированное значение
        Specified by:
        getValue in interface IValueEditor
        Parameters:
        needValidate - Нужно ли проверять на корректность возвращаемое значение, true если нужно, то значение и если значение не валидно, то откроется соответствующее сообщение об ошибках
        Returns:
        значение такое же как в IValueEditor.getValue()
      • setValue

        public void setValue​(Object value)
        Description copied from interface: IValueEditor
        Установить значение для редактирования
        Specified by:
        setValue in interface IValueEditor
        Parameters:
        value - значение
      • isValuesEquals

        public boolean isValuesEquals​(Object value1,
                                      Object value2)
        Description copied from interface: IValueEditor
        Проверить два значения на равенство
        Specified by:
        isValuesEquals in interface IValueEditor
        Parameters:
        value1 - первое значение
        value2 - второе значение
        Returns:
        значения равны
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(org.eclipse.swt.graphics.Device device,
                                                       Object value)
        Description copied from interface: IValueEditor
        Получить картинку значения
        Specified by:
        getImage in interface IValueEditor
        value - значение
        Returns:
        картинка
      • getText

        public String getText​(IV8Project v8project,
                              Object value)
        Description copied from interface: IValueEditor
        Получить представление значения
        Specified by:
        getText in interface IValueEditor
        Parameters:
        v8project - the V8 project, cannot be null
        value - значение
        Returns:
        представление
      • getAlignment

        public int getAlignment()
        Description copied from interface: IValueEditor
        Получить выравнивание
        Specified by:
        getAlignment in interface IValueEditor
        Returns:
        выравнивание
      • isValueForEditor

        public boolean isValueForEditor​(Object value)
        Description copied from interface: IValueEditor
        Проверить, что значение данного типа редактируется редактором
        Specified by:
        isValueForEditor in interface IValueEditor
        Parameters:
        value - значение
        Returns:
        значение редактируется редактором
      • isSeparated

        public boolean isSeparated()
        Description copied from interface: IValueEditor
        Value editor is separated window
        Specified by:
        isSeparated in interface IValueEditor
        Returns:
        whether editor is separated window
      • doActivateControls

        protected void doActivateControls()
      • doActivateListeners

        protected void doActivateListeners()
      • doDeactivateControls

        protected void doDeactivateControls()
      • doDeactivateListeners

        protected void doDeactivateListeners()
      • setFocusToParent

        protected boolean setFocusToParent()
        Sets focus to parent control
        Returns:
        true if focus will be set for parent control, false otherwise