Class ButtonsPanelImpl

All Implemented Interfaces:
AttachNotifier, ButtonsPanel, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper, ComponentContainer, FlowBoxLayout, HasComponents, HasContextHelp, HasDebugId, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasMargin, HasRequiredIndicator, HasSpacing, LayoutClickNotifier, OrderedContainer, ShortcutNotifier, VisibilityChangeNotifier

public class ButtonsPanelImpl extends FlowBoxLayoutImpl implements ButtonsPanel, VisibilityChangeNotifier
  • Field Details

    • BUTTONS_PANEL_STYLENAME

      public static final String BUTTONS_PANEL_STYLENAME
      See Also:
    • alwaysVisible

      protected boolean alwaysVisible
  • Constructor Details

    • ButtonsPanelImpl

      public ButtonsPanelImpl()
  • Method Details

    • initComponent

      protected void initComponent(JmixFlowLayout component)
    • setStyleName

      public void setStyleName(@Nullable String name)
      Description copied from interface: Component
      Sets one or more style names of the component, replacing any previous styles. Multiple styles can be specified as a space-separated list of style names. Styles implementation is client-type-specific.
      Specified by:
      setStyleName in interface Component
      Overrides:
      setStyleName in class FlowBoxLayoutImpl
      Parameters:
      name - one or more style names separated by space.
    • getStyleName

      public String getStyleName()
      Description copied from interface: Component
      Styles implementation is client-type-specific.
      Specified by:
      getStyleName in interface Component
      Overrides:
      getStyleName in class FlowBoxLayoutImpl
      Returns:
      current style name.
    • setVisible

      public void setVisible(boolean visible)
      Description copied from interface: Component
      Sets visibility value for the component.
      Visible components are drawn in the user interface, while invisible ones are not. The effect is not a cosmetic CSS change - no information about an invisible component will be sent to the client. The effect is thus the same as removing the component from its parent.
      Specified by:
      setVisible in interface Component
      Overrides:
      setVisible in class AbstractComponent<JmixFlowLayout>
      Parameters:
      visible - visible flag
    • addVisibilityChangeListener

      public Subscription addVisibilityChangeListener(Consumer<VisibilityChangeNotifier.VisibilityChangeEvent> listener)
      Specified by:
      addVisibilityChangeListener in interface VisibilityChangeNotifier
    • setAlwaysVisible

      public void setAlwaysVisible(boolean alwaysVisible)
      Description copied from interface: ButtonsPanel
      Sets whether or not buttons panel is always displayed on the lookup screen. If the attribute value is true, the buttons panel is not hidden. Default value is false.
      Specified by:
      setAlwaysVisible in interface ButtonsPanel
      Parameters:
      alwaysVisible - specifies whether buttons panel is always displayed on the lookup screen
    • isAlwaysVisible

      public boolean isAlwaysVisible()
      Description copied from interface: ButtonsPanel
      Returns whether buttons panel is always displayed on the lookup screen. Default value is false.
      Specified by:
      isAlwaysVisible in interface ButtonsPanel
      Returns:
      {code true} if the buttons panel is always displayed on the lookup screen