Class SelectableToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class SelectableToolBar extends JToolBar
Caja de herramientas seleccionables
See Also:
  • Constructor Details

    • SelectableToolBar

      public SelectableToolBar(String titulo)
      Creates a new SelectableToolBar object.
      Parameters:
      titulo - Título de la barra
    • SelectableToolBar

      public SelectableToolBar(String titulo, String description, int position)
  • Method Details

    • getPosition

      public int getPosition()
    • setPosition

      public void setPosition(int position)
    • getDescription

      public String getDescription()
    • addButton

      public void addButton(ButtonGroup group, JToggleButton btn)
      Añade un boton a la caja
      Parameters:
      btn - botón a añadir.
    • setSelectedTool

      public void setSelectedTool(String actionCommand)
      Selects a toggleButton in this toolBar by ActionCommand
      Parameters:
      actionCommand -
    • setAndamiVisibility

      public void setAndamiVisibility(boolean visible)
      Sets whether or not this toolbar should be shown by Andami. If it's false, the toolbar will be hidden even if its associated extension is visible.
      Parameters:
      visible -
    • getAndamiVisibility

      public boolean getAndamiVisibility()
      Gets whether this toolbar should be shown by Andami. If it's false, the toolbar will be hidden even if its associated extension is visible.
      Returns:
      true if the toolbar should be shown when it has some visible button, false if the toolbar should be hidden even it it contains some buttons that should be visible according to its associated extension.
    • findComponent

      public Component findComponent(String name)