Class WSplitButton


public class WSplitButton extends WCompositeWidget
A split button.

A split button combines a button and a drop down menu. Typically, the button represents an action, with related alternative actions accessible from the drop down menu.

  • Constructor Details

  • Method Details

    • getActionButton

      public WPushButton getActionButton()
      Returns the action button.

      This is the button that represents the main action.

    • getDropDownButton

      public WPushButton getDropDownButton()
      Returns the drop down button.

      This represents the button that represents the drop-down action.

    • setMenu

      public void setMenu(WPopupMenu popupMenu)
      Sets the menu for the drop-down button.
    • getMenu

      public WPopupMenu getMenu()
      Returns the menu for the drop-down button.
    • render

      protected void render(EnumSet<RenderFlag> flags)
      Description copied from class: WWidget
      Renders the widget.

      This function renders the widget (or an update for the widget), after this has been scheduled using scheduleRender().

      The default implementation will render the widget by serializing changes to JavaScript and HTML. You may want to reimplement this widget if you have been postponing some of the layout / rendering implementation until the latest moment possible. In that case you should make sure you call the base implementation however.

      Overrides:
      render in class WCompositeWidget