Class FWBoxPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FWBoxPanel extends JPanel
Use this class to easily build groups of widgets etc. buttons, popupbuttons...
Author:
Andreas Enders
See Also:
  • Field Details

  • Constructor Details

    • FWBoxPanel

      public FWBoxPanel()
      Constuctor for FWBoxPanel - X-Axis is used by default
    • FWBoxPanel

      public FWBoxPanel(int aAxis)
      Constuctor for FWBoxPanel - X-Axis is used by default
  • Method Details

    • addButton

      public FWButton addButton(Action aAction)
      Add Button with special Action
    • addButton

      public void addButton(JButton aButton)
      Add Button to Panel
    • addButton

      public FWButton addButton(String aCaption, ActionListener aActionListener, String aActionCommand)
      Add Button
    • addButton

      public FWButton addButton(String aCaption, ActionListener aActionListener, String aActionCommand, boolean aEnabled)
      Add Button
    • addButton

      public FWButton addButton(String aCaption, char aMnemonic, ActionListener aActionListener, String aActionCommand, boolean aEnabled)
      Add Button
    • addButton

      public FWButton addButton(String aCaption, char aMnemonic, ActionListener aActionListener, String aActionCommand, boolean aEnabled, Icon aIcon)
      Parameters:
      aCaption -
      aMnemonic -
      aActionListener -
      aActionCommand -
      aEnabled -
      aIcon -
      Returns:
      the Button
    • addDefaultButton

      public FWButton addDefaultButton(String aButtonType, String aActionCommand, ActionListener aActionListener)
      Parameters:
      aButtonType -
      aActionCommand -
      aActionListener -
      Returns:
      the added Button for keeping the reference
    • addDefaultButton

      public FWButton addDefaultButton(String aButtonType, String aActionCommand, ActionListener aActionListener, boolean aEnabled)
      Parameters:
      aButtonType -
      aActionCommand -
      aActionListener -
      aEnabled -
      Returns:
      the added Button for keeping the reference
    • addCheckbox

      public JCheckBox addCheckbox(String aCaption, String aActionCommand, ActionListener aActionListener, boolean aSelected)
      Parameters:
      aCaption -
      aActionCommand -
      aActionListener -
      aSelected -
      Returns:
      the new JCheckBox
    • addCheckbox

      public JCheckBox addCheckbox(String aCaption, ItemListener aItemListener, boolean aSelected)
      Parameters:
      aCaption -
      aItemListener -
      aSelected -
      Returns:
      the new JCheckBox
    • addStrut

      public void addStrut()
      Adding Strut of 6 px
    • addStrut

      public Component addStrut(int aWidth)
      Parameters:
      aWidth -
      Returns:
      the strut component
    • addDynamicStrut

      public Component addDynamicStrut(int aMinWidth, int aPrefWidth)
      Parameters:
      aMinWidth -
      aPrefWidth -
      Returns:
      the strut component
    • addGlue

      public void addGlue()
      adds a Glue
    • getButton

      public AbstractButton getButton(Action aAction)
      Parameters:
      aAction -
      Returns:
      the asked Button
    • getButton

      public AbstractButton getButton(String aActionCommand)
      Parameters:
      aActionCommand -
      Returns:
      the asked Button
    • setEnabled

      public void setEnabled(Action aAction, boolean aEnabled)
      Parameters:
      aAction -
      aEnabled -
    • setEnabled

      public void setEnabled(String aActionCommand, boolean aEnabled)
      Parameters:
      aActionCommand -
      aEnabled -