Klasse ComponentTitledFolder

java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentTitledFolder
Alle implementierten Schnittstellen:
IComponent

public class ComponentTitledFolder extends Object implements IComponent
This class implements a titled folder.
  • Konstruktordetails

    • ComponentTitledFolder

      public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id)
      Creates a new instance.
      Parameter:
      parent -
      controller -
      bar -
      id -
    • ComponentTitledFolder

      public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id, boolean bottom, boolean supportsHidingElements)
      Creates a new instance.
      Parameter:
      parent -
      controller -
      bar -
      id -
      bottom -
    • ComponentTitledFolder

      public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id, Map<org.eclipse.swt.widgets.Composite,String> helpids)
      Creates a new instance.
      Parameter:
      parent -
      controller -
      bar -
      id -
      helpids -
    • ComponentTitledFolder

      public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id, Map<org.eclipse.swt.widgets.Composite,String> helpids, boolean bottom, boolean hasHidingMenu)
      Creates a new instance.
      Parameter:
      parent -
      controller -
      bar -
      id -
      bottom -
      hasHidingMenu -
  • Methodendetails

    • addSelectionListener

      public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
      Adds a selection listener.
      Parameter:
      listener -
    • createItem

      public org.eclipse.swt.widgets.Composite createItem(String title, org.eclipse.swt.graphics.Image image)
      Creates a new entry in the folder.
      Parameter:
      title -
      image -
      Gibt zurück:
    • createItem

      public org.eclipse.swt.widgets.Composite createItem(String title, org.eclipse.swt.graphics.Image image, boolean hideable)
      Creates a new entry in the folder.
      Parameter:
      title -
      image -
      hideable -
      Gibt zurück:
    • createItem

      public org.eclipse.swt.widgets.Composite createItem(String title, org.eclipse.swt.graphics.Image image, boolean hideable, org.eclipse.swt.widgets.Layout layout)
      Creates a new entry in the folder.
      Parameter:
      title -
      image -
      hideable -
      layout -
      Gibt zurück:
    • createItem

      public org.eclipse.swt.widgets.Composite createItem(String title, org.eclipse.swt.graphics.Image image, int index, boolean hideable)
      Creates a new entry in the folder.
      Parameter:
      title -
      image -
      index -
      hideable -
      Gibt zurück:
    • createItem

      public org.eclipse.swt.widgets.Composite createItem(String title, org.eclipse.swt.graphics.Image image, int index, boolean hideable, org.eclipse.swt.widgets.Layout layout)
      Creates a new entry in the folder.
      Parameter:
      title -
      image -
      index -
      hideable -
      layout -
      Gibt zurück:
    • getButtonItem

      public org.eclipse.swt.widgets.ToolItem getButtonItem(String text)
      Returns the button item for the given text.
      Parameter:
      text -
      Gibt zurück:
    • getItemCount

      public int getItemCount()
      Returns the number of items in the folder.
      Gibt zurück:
    • getSelectedControl

      public org.eclipse.swt.widgets.Control getSelectedControl()
      Returns the selected control
      Gibt zurück:
    • getSelectionIndex

      public int getSelectionIndex()
      Returns the currently selected index.
      Gibt zurück:
    • getSize

      public org.eclipse.swt.graphics.Point getSize()
      Gibt zurück:
      Siehe auch:
      • Control.getSize()
    • getVisibleItems

      public List<String> getVisibleItems()
      Returns all visible items
      Gibt zurück:
    • setEnabled

      public void setEnabled(boolean b)
      Enables/disables the component.
      Parameter:
      b -
    • setItemVisibilityListener

      public void setItemVisibilityListener(org.eclipse.swt.events.SelectionListener listener)
      Sets the item visibility listener
      Parameter:
      listener -
    • setLayoutData

      public void setLayoutData(Object data)
      Sets layout data.
      Parameter:
      data -
    • setSelectedControl

      public void setSelectedControl(org.eclipse.swt.widgets.Control c)
      Selects the item with the given control
      Parameter:
      c -
    • setSelection

      public void setSelection(int index)
      Sets the current selection.
      Parameter:
      index -
    • setVisible

      public void setVisible(String item, boolean visible)
      Sets the according item visible
      Parameter:
      item -
      visible -
    • setVisibleItems

      public void setVisibleItems(List<String> items)
      Sets the given items as visible
      Parameter:
      item -