Class ValuePickerButton

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.flowui.kit.component.valuepicker.ValuePickerButton
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier<ValuePickerButton>, com.vaadin.flow.component.ClickNotifier<ValuePickerButton>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable<ValuePickerButton>, com.vaadin.flow.component.FocusNotifier<ValuePickerButton>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, HasAction, HasShortcutCombination, HasTitle, Serializable

@Tag("jmix-value-picker-button") @JsModule("./src/value-picker-button/jmix-value-picker-button.js") public class ValuePickerButton extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.ClickNotifier<ValuePickerButton>, com.vaadin.flow.component.Focusable<ValuePickerButton>, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, HasTitle, HasAction, HasShortcutCombination
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier

    com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier

    com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected com.vaadin.flow.component.Component
     
    protected KeyCombination
     
    protected com.vaadin.flow.component.ShortcutRegistration
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    add(com.vaadin.flow.component.Component component)
     
     
     
     
    com.vaadin.flow.component.Component
     
     
    protected void
    remove(com.vaadin.flow.component.Component component)
     
    void
    setAction(Action action, boolean overrideComponentProperties)
    Sets the action to the component.
    void
    setIcon(com.vaadin.flow.component.Component icon)
     
    void
    Sets object that stores information about keys, modifiers and additional settings that describe shortcut combinations.

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.BlurNotifier

    addBlurListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.Focusable

    addFocusShortcut, blur, focus, getTabIndex, setTabIndex

    Methods inherited from interface com.vaadin.flow.component.FocusNotifier

    addFocusListener

    Methods inherited from interface io.jmix.flowui.kit.component.HasAction

    setAction

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface io.jmix.flowui.kit.component.HasTitle

    getTitle, setTitle
  • Field Details

    • actionSupport

      protected ValuePickerButtonActionSupport actionSupport
    • iconComponent

      protected com.vaadin.flow.component.Component iconComponent
    • shortcutRegistration

      protected com.vaadin.flow.component.ShortcutRegistration shortcutRegistration
    • shortcutCombination

      protected KeyCombination shortcutCombination
  • Constructor Details

    • ValuePickerButton

      public ValuePickerButton()
  • Method Details

    • setAction

      public void setAction(@Nullable Action action, boolean overrideComponentProperties)
      Description copied from interface: HasAction
      Sets the action to the component. If overrideComponentProperties is true then the action properties will override component's properties, otherwise the component's properties will be overridden if they are null.

      List of properties that the action and the component have and which can be overridden:

      • text
      • description
      • shortcutCombination
      • enabled
      • visible
      • icon
      • variant
      Specified by:
      setAction in interface HasAction
      Parameters:
      action - an action to set
      overrideComponentProperties - whether action properties override component properties
    • getAction

      @Nullable public Action getAction()
      Specified by:
      getAction in interface HasAction
      Returns:
      an action or null
    • getActionSupport

      protected ValuePickerButtonActionSupport getActionSupport()
    • createActionSupport

      protected ValuePickerButtonActionSupport createActionSupport()
    • getIcon

      public com.vaadin.flow.component.Component getIcon()
    • setIcon

      public void setIcon(com.vaadin.flow.component.Component icon)
    • add

      protected void add(com.vaadin.flow.component.Component component)
    • remove

      protected void remove(com.vaadin.flow.component.Component component)
    • getShortcutCombination

      @Nullable public KeyCombination getShortcutCombination()
      Specified by:
      getShortcutCombination in interface HasShortcutCombination
      Returns:
      object that stores information about keys, modifiers and additional settings that describe shortcut combinations or null if not set
    • setShortcutCombination

      public void setShortcutCombination(@Nullable KeyCombination shortcutCombination)
      Description copied from interface: HasShortcutCombination
      Sets object that stores information about keys, modifiers and additional settings that describe shortcut combinations.
      Specified by:
      setShortcutCombination in interface HasShortcutCombination
      Parameters:
      shortcutCombination - key combination to set or null to remove