public class ComponentTitledFolder extends java.lang.Object implements IComponent
Constructor and Description |
---|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButton bar,
java.lang.String id)
Creates a new instance.
|
ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ComponentTitledFolderButton bar,
java.lang.String id,
boolean bottom)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(int arg0,
org.eclipse.swt.widgets.Listener arg1) |
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,
int index)
Creates a new entry in the folder.
|
void |
disposeItem(java.lang.String text)
Disposes the given item.
|
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.
|
int |
getSelectionIndex()
Returns the currently selected index.
|
org.eclipse.swt.graphics.Point |
getSize() |
org.eclipse.swt.custom.CTabItem |
getTabItem(java.lang.String text)
Returns the tab item for the given text.
|
void |
setEnabled(boolean b)
Enables/disables the component.
|
void |
setLayoutData(java.lang.Object data)
Sets layout data.
|
void |
setSelection(int index)
Sets the current selection.
|
void |
setSize(int arg0,
int arg1) |
public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButton bar, java.lang.String id)
parent
- controller
- bar
- id
- public ComponentTitledFolder(org.eclipse.swt.widgets.Composite parent, Controller controller, ComponentTitledFolderButton bar, java.lang.String id, boolean bottom)
parent
- controller
- bar
- id
- bottom
- public void addListener(int arg0, org.eclipse.swt.widgets.Listener arg1)
arg0
- arg1
- Widget.addListener(int, org.eclipse.swt.widgets.Listener)
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, int index)
title
- image
- index
- public void disposeItem(java.lang.String text)
text
- public org.eclipse.swt.widgets.ToolItem getButtonItem(java.lang.String text)
text
- public int getItemCount()
public int getSelectionIndex()
public org.eclipse.swt.graphics.Point getSize()
Control.getSize()
public org.eclipse.swt.custom.CTabItem getTabItem(java.lang.String text)
text
- public void setEnabled(boolean b)
b
- public void setLayoutData(java.lang.Object data)
data
- public void setSelection(int index)
index
- public void setSize(int arg0, int arg1)
arg0
- arg1
- Control.setSize(int, int)