Klasse ComponentTitledFolder
java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentTitledFolder
- Alle implementierten Schnittstellen:
IComponent
This class implements a titled folder.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id) Creates a new instance.ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, String id, boolean bottom, boolean supportsHidingElements) Creates a new instance.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.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. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddSelectionListener(org.eclipse.swt.events.SelectionListener listener) Adds a selection listener.org.eclipse.swt.widgets.CompositecreateItem(String title, org.eclipse.swt.graphics.Image image) Creates a new entry in the folder.org.eclipse.swt.widgets.CompositecreateItem(String title, org.eclipse.swt.graphics.Image image, boolean hideable) Creates a new entry in the folder.org.eclipse.swt.widgets.CompositecreateItem(String title, org.eclipse.swt.graphics.Image image, boolean hideable, org.eclipse.swt.widgets.Layout layout) Creates a new entry in the folder.org.eclipse.swt.widgets.CompositecreateItem(String title, org.eclipse.swt.graphics.Image image, int index, boolean hideable) Creates a new entry in the folder.org.eclipse.swt.widgets.CompositecreateItem(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.org.eclipse.swt.widgets.ToolItemgetButtonItem(String text) Returns the button item for the given text.intReturns the number of items in the folder.org.eclipse.swt.widgets.ControlReturns the selected controlintReturns the currently selected index.org.eclipse.swt.graphics.PointgetSize()Returns all visible itemsvoidsetEnabled(boolean b) Enables/disables the component.voidsetItemVisibilityListener(org.eclipse.swt.events.SelectionListener listener) Sets the item visibility listenervoidsetLayoutData(Object data) Sets layout data.voidsetSelectedControl(org.eclipse.swt.widgets.Control c) Selects the item with the given controlvoidsetSelection(int index) Sets the current selection.voidsetVisible(String item, boolean visible) Sets the according item visiblevoidsetVisibleItems(List<String> items) Sets the given items as visible
-
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
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:
-
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
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
Sets the according item visible- Parameter:
item-visible-
-
setVisibleItems
Sets the given items as visible- Parameter:
item-
-