de.caff.gimmicks.swing

## Interface ToolBarElement

- All Known Subinterfaces:
    State
  All Known Implementing Classes:
    AbstractState, AbstractToggleState, VisibleState

      public interface ToolBarElement

  Element of a tool bar. Implementing this interface allows an element to fine tune its addition to the toolbar.
  Author:
    Rammi

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.swing.JComponent[]` | `addToToolBar(javax.swing.JToolBar toolBar)` Add this element to the toolbar.
    `javax.swing.JComponent[]` | `addToToolBar(javax.swing.JToolBar toolBar, int index)` Add this element to the toolbar.

- - ### Method Detail

    - #### addToToolBar

          @NotNull
          javax.swing.JComponent[] addToToolBar(@NotNull
                                                         javax.swing.JToolBar toolBar)

      Add this element to the toolbar.
      Parameters:
        `toolBar` - toolbar to add to
      Returns:
        components added to toolbar

    - #### addToToolBar

          @NotNull
          javax.swing.JComponent[] addToToolBar(@NotNull
                                                         javax.swing.JToolBar toolBar,
                                                         int index)

      Add this element to the toolbar.
      Parameters:
        `toolBar` - toolbar to add to
        `index` - position where to add the item
      Returns:
        actually inserted components