public class ComponentTitledFolder extends java.lang.Object implements IComponent
Constructor and Description |
---|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButtonBar bar,
java.lang.String id)
Creates a new instance.
|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButtonBar bar,
java.lang.String id,
boolean bottom,
boolean supportsHidingElements)
Creates a new instance.
|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButtonBar bar,
java.lang.String id,
java.util.Map<org.eclipse.swt.widgets.Composite,java.lang.String> helpids)
Creates a new instance.
|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButtonBar bar,
java.lang.String id,
java.util.Map<org.eclipse.swt.widgets.Composite,java.lang.String> helpids,
boolean bottom,
boolean hasHidingMenu)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds a selection listener.
|
org.eclipse.swt.widgets.Composite |
createItem(java.lang.String title,
org.eclipse.swt.graphics.Image image)
Creates a new entry in the folder.
|
org.eclipse.swt.widgets.Composite |
createItem(java.lang.String title,
org.eclipse.swt.graphics.Image image,
boolean hideable)
Creates a new entry in the folder.
|
org.eclipse.swt.widgets.Composite |
createItem(java.lang.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.Composite |
createItem(java.lang.String title,
org.eclipse.swt.graphics.Image image,
int index,
boolean hideable)
Creates a new entry in the folder.
|
org.eclipse.swt.widgets.Composite |
createItem(java.lang.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.ToolItem |
getButtonItem(java.lang.String text)
Returns the button item for the given text.
|
int |
getItemCount()
Returns the number of items in the folder.
|
org.eclipse.swt.widgets.Control |
getSelectedControl()
Returns the selected control
|
int |
getSelectionIndex()
Returns the currently selected index.
|
org.eclipse.swt.graphics.Point |
getSize() |
java.util.List<java.lang.String> |
getVisibleItems()
Returns all visible items
|
void |
setEnabled(boolean b)
Enables/disables the component.
|
void |
setItemVisibilityListener(org.eclipse.swt.events.SelectionListener listener)
Sets the item visibility listener
|
void |
setLayoutData(java.lang.Object data)
Sets layout data.
|
void |
setSelectedControl(org.eclipse.swt.widgets.Control c)
Selects the item with the given control
|
void |
setSelection(int index)
Sets the current selection.
|
void |
setVisible(java.lang.String item,
boolean visible)
Sets the according item visible
|
void |
setVisibleItems(java.util.List<java.lang.String> items)
Sets the given items as visible
|
public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, java.lang.String id)
parent
- controller
- bar
- id
- public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, java.lang.String id, boolean bottom, boolean supportsHidingElements)
parent
- controller
- bar
- id
- bottom
- public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, java.lang.String id, java.util.Map<org.eclipse.swt.widgets.Composite,java.lang.String> helpids)
parent
- controller
- bar
- id
- helpids
- public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButtonBar bar, java.lang.String id, java.util.Map<org.eclipse.swt.widgets.Composite,java.lang.String> helpids, boolean bottom, boolean hasHidingMenu)
parent
- controller
- bar
- id
- bottom
- hasHidingMenu
- public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- public org.eclipse.swt.widgets.Composite createItem(java.lang.String title, org.eclipse.swt.graphics.Image image)
title
- image
- public org.eclipse.swt.widgets.Composite createItem(java.lang.String title, org.eclipse.swt.graphics.Image image, boolean hideable)
title
- image
- hideable
- public org.eclipse.swt.widgets.Composite createItem(java.lang.String title, org.eclipse.swt.graphics.Image image, boolean hideable, org.eclipse.swt.widgets.Layout layout)
title
- image
- hideable
- layout
- public org.eclipse.swt.widgets.Composite createItem(java.lang.String title, org.eclipse.swt.graphics.Image image, int index, boolean hideable)
title
- image
- index
- hideable
- public org.eclipse.swt.widgets.Composite createItem(java.lang.String title, org.eclipse.swt.graphics.Image image, int index, boolean hideable, org.eclipse.swt.widgets.Layout layout)
title
- image
- index
- hideable
- layout
- public org.eclipse.swt.widgets.ToolItem getButtonItem(java.lang.String text)
text
- public int getItemCount()
public org.eclipse.swt.widgets.Control getSelectedControl()
public int getSelectionIndex()
public org.eclipse.swt.graphics.Point getSize()
Control.getSize()
public java.util.List<java.lang.String> getVisibleItems()
public void setEnabled(boolean b)
b
- public void setItemVisibilityListener(org.eclipse.swt.events.SelectionListener listener)
listener
- public void setLayoutData(java.lang.Object data)
data
- public void setSelectedControl(org.eclipse.swt.widgets.Control c)
c
- public void setSelection(int index)
index
- public void setVisible(java.lang.String item, boolean visible)
item
- visible
- public void setVisibleItems(java.util.List<java.lang.String> items)
item
-