class CTreeLayout
extends org.eclipse.swt.widgets.Layout
NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT. THIS IS A PRE-RELEASE ALPHA VERSION. USERS SHOULD EXPECT API CHANGES IN FUTURE VERSIONS.
Modifier and Type | Field and Description |
---|---|
static boolean |
carbon
true if the platform is detected as being "carbon"
|
protected int |
contentHeight
the height of the container contents
|
protected CTree |
ctree
the CTree
|
static boolean |
gtk
true if the platform is detected as being "gtk"
|
protected org.eclipse.swt.graphics.Point |
headerSize
the size of the container's header composite
|
(package private) int |
itemHeight |
static boolean |
win32
true if the platform is detected as being "win32"
|
Constructor and Description |
---|
CTreeLayout(CTree ctree) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeContentHeight()
Compute the height of the Content area without consideration for cached values.
|
protected void |
computeContentHeight(int eventType,
CTreeCell cell)
Compute the height of the Content area after the given cell has experienced an event of
the given type.
|
protected void |
computeContentHeight(int eventType,
CTreeColumn column)
Compute the height of the Content area after the given column has experienced an event of
the given type.
|
protected void |
computeContentHeight(int eventType,
CTreeItem item)
Compute the height of the Content area after the given item has experienced an event of
the given type.
|
protected org.eclipse.swt.graphics.Point |
computeSize(org.eclipse.swt.widgets.Composite composite,
int wHint,
int hHint,
boolean flushCache) |
(package private) int |
getItemHeight() |
protected void |
layout(org.eclipse.swt.widgets.Composite composite,
boolean flushCache) |
(package private) void |
layout(int eventType,
CTreeCell cell)
Layout the Content area after the given cell has experienced an event of the given type.
|
(package private) void |
layout(int eventType,
CTreeColumn column)
Layout the Content area after the given column has experienced an event of the given type.
|
(package private) void |
layout(int eventType,
CTreeItem item)
Layout the Content area after the given item has experienced an event of the given type.
|
protected void |
layoutContent()
Compute the height of the Content area without consideration for cached values.
|
protected void |
layoutContent(int eventType,
CTreeCell cell)
Layout the Content area after the given cell has experienced an event of the given type.
|
protected void |
layoutContent(int eventType,
CTreeColumn column)
Layout the Content area after the given column has experienced an event of the given type.
|
protected void |
layoutContent(int eventType,
CTreeItem item)
Layout the Content area after the given item has experienced an event of the given type.
|
protected void |
layoutHeader()
layout the header.
|
(package private) void |
setItemHeight(int height) |
public static final boolean carbon
public static final boolean gtk
public static final boolean win32
protected CTree ctree
protected org.eclipse.swt.graphics.Point headerSize
protected int contentHeight
int itemHeight
public CTreeLayout(CTree ctree)
ctree
- protected void computeContentHeight()
protected void computeContentHeight(int eventType, CTreeCell cell)
Event types:
eventType
- cell
- protected void computeContentHeight(int eventType, CTreeColumn column)
Event types:
eventType
- column
- protected void computeContentHeight(int eventType, CTreeItem item)
Event types:
eventType
- item
- protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache)
computeSize
in class org.eclipse.swt.widgets.Layout
int getItemHeight()
protected void layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache)
layout
in class org.eclipse.swt.widgets.Layout
void layout(int eventType, CTreeCell cell)
Event types:
eventType
- cell
- void layout(int eventType, CTreeColumn column)
Event types:
eventType
- column
- void layout(int eventType, CTreeItem item)
Event types:
eventType
- item
- protected void layoutContent()
protected void layoutContent(int eventType, CTreeCell cell)
Event types:
eventType
- cell
- protected void layoutContent(int eventType, CTreeColumn column)
Event types:
eventType
- column
- protected void layoutContent(int eventType, CTreeItem item)
Event types:
eventType
- item
- protected void layoutHeader()
void setItemHeight(int height)