|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.swt.widgets.Widget | +--org.eclipse.swt.widgets.Control | +--org.eclipse.swt.widgets.Scrollable | +--org.eclipse.swt.widgets.Composite
Safe:
Field Summary | |
(package private) int |
font
|
(package private) Layout |
layout
|
(package private) org.eclipse.swt.internal.win32.WINDOWPOS[] |
lpwp
|
(package private) Control[] |
tabList
|
Fields inherited from class org.eclipse.swt.widgets.Scrollable |
horizontalBar, verticalBar |
Fields inherited from class org.eclipse.swt.widgets.Control |
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText |
Fields inherited from class org.eclipse.swt.widgets.Widget |
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values |
Constructor Summary | |
(package private) |
Composite()
Prevents uninitialized instances from being created outside the package. |
|
Composite(Composite parent,
int style)
Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
Method Summary | |
(package private) Control[] |
_getChildren()
|
(package private) Control[] |
_getTabList()
|
protected void |
checkSubclass()
Checks that this class can be subclassed. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Enabled: |
(package private) Control[] |
computeTabList()
|
(package private) void |
createHandle()
|
Control[] |
getChildren()
Enabled: Returns an array containing the receiver's children. |
(package private) int |
getChildrenCount()
|
Layout |
getLayout()
Enabled: Returns layout which is associated with the receiver, or null if one has not been set. |
Control[] |
getTabList()
Enabled: Gets the last specified tabbing order for the control. |
(package private) boolean |
hooksKeys()
|
void |
layout()
Enabled: If the receiver has a layout, asks the layout to lay out (that is, set the size and location of) the receiver's children. |
void |
layout(boolean changed)
Enabled: If the receiver has a layout, asks the layout to lay out (that is, set the size and location of) the receiver's children. |
(package private) Point |
minimumSize()
|
void |
moveAbove(Control above,
Control optBelow)
Added: If 'self' is the parent of both 'above' and 'optBelow', then does an 'above. moveAbove (optBelow)' |
void |
moveBelow(Control below,
Control optAbove)
Added: If 'self' is the parent of both 'below' and 'optAbove', then does an 'below. moveBelow (optAbove)' |
(package private) void |
releaseChildren()
|
(package private) void |
releaseWidget()
|
(package private) void |
resizeChildren()
|
(package private) boolean |
resizeChildren(boolean defer,
org.eclipse.swt.internal.win32.WINDOWPOS[] pwp)
|
boolean |
setFocus()
Suppressed: |
void |
setLayout(Layout layout)
Enabled: Sets the layout which is associated with the receiver to be the argument which may be null. |
(package private) void |
setResizeChildren(boolean resize)
|
(package private) boolean |
setTabGroupFocus()
|
(package private) boolean |
setTabItemFocus()
|
void |
setTabList(Control[] tabList)
Enabled: Sets the tabbing order for the specified controls to match the order that they occur in the argument list. |
(package private) String |
toolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO hdr)
|
(package private) boolean |
translateMnemonic(char key)
|
(package private) void |
updateFont(Font oldFont,
Font newFont)
|
(package private) int |
widgetStyle()
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_ERASEBKGND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_GETDLGCODE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_GETFONT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_LBUTTONDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NOTIFY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PAINT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETFONT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SIZE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSCOLORCHANGE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSCOMMAND(int wParam,
int lParam)
|
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
callWindowProc, computeTrim, createScrollBar, createWidget, getClientArea, getHorizontalBar, getVerticalBar, widgetExtStyle, windowClass, windowProc, WM_HSCROLL, WM_MOUSEWHEEL, WM_VSCROLL, wmScroll |
Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkBits, checkParent, checkWidget, dispose, error, filters, getData, getData, getName, getNameText, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Layout layout
int font
org.eclipse.swt.internal.win32.WINDOWPOS[] lpwp
Control[] tabList
Constructor Detail |
Composite()
public Composite(Composite parent, int style)
The style value is either one of the style constants defined in
class SWT
which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int
"|" operator) two or more
of those SWT
style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
parent
- a widget which will be the parent of the new instance (cannot be null)style
- the style of widget to constructSWT.NO_BACKGROUND
,
SWT.NO_FOCUS
,
SWT.NO_MERGE_PAINTS
,
SWT.NO_REDRAW_RESIZE
,
SWT.NO_RADIO_GROUP
,
Widget.getStyle()
Method Detail |
Control[] _getChildren()
Control[] _getTabList()
protected void checkSubclass()
Widget
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Composite
and Canvas
when
implementing new widgets). This method enforces this
rule unless it is overridden.
IMPORTANT: By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion.
The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
checkSubclass
in class Widget
Control[] computeTabList()
computeTabList
in class Control
public Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class Control
wHint
- the width hint (can be SWT.DEFAULT
)hHint
- the height hint (can be SWT.DEFAULT
)changed
- true
if the control's contents have changed, and false
otherwise
Layout
,
Control.getBorderWidth()
,
Control.getBounds()
,
Control.getSize()
,
Control.pack()
,
"computeTrim, getClientArea for controls that implement them"void createHandle()
createHandle
in class Control
public Control[] getChildren()
Note: This is not the actual structure used by the receiver to maintain its list of children, so modifying the array will not affect the receiver.
int getChildrenCount()
public Layout getLayout()
public Control[] getTabList()
setTabList(org.eclipse.swt.widgets.Control[])
boolean hooksKeys()
public void layout()
This is equivalent to calling layout(true)
.
public void layout(boolean changed)
true
the layout must not rely
on any cached information it is keeping about the children. If it
is false
the layout may (potentially) simplify the
work it is doing by assuming that the state of the none of the
receiver's children has changed since the last layout.
If the receiver does not have a layout, do nothing.
changed
- true
if the layout must flush its caches, and false
otherwisePoint minimumSize()
void releaseChildren()
void resizeChildren()
boolean resizeChildren(boolean defer, org.eclipse.swt.internal.win32.WINDOWPOS[] pwp)
void releaseWidget()
releaseWidget
in class Scrollable
public boolean setFocus()
setFocus
in class Control
true
if the control got focus, and false
if it was unable to.Control.forceFocus()
public void setLayout(Layout layout)
layout
- the receiver's new layout or nullpublic void setTabList(Control[] tabList)
tabList
- the ordered list of controls representing the tab order or nullvoid setResizeChildren(boolean resize)
boolean setTabGroupFocus()
setTabGroupFocus
in class Control
boolean setTabItemFocus()
setTabItemFocus
in class Control
String toolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO hdr)
boolean translateMnemonic(char key)
translateMnemonic
in class Control
void updateFont(Font oldFont, Font newFont)
updateFont
in class Control
int widgetStyle()
widgetStyle
in class Scrollable
org.eclipse.swt.internal.win32.LRESULT WM_ERASEBKGND(int wParam, int lParam)
WM_ERASEBKGND
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam, int lParam)
WM_GETDLGCODE
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_GETFONT(int wParam, int lParam)
WM_GETFONT
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam, int lParam)
WM_LBUTTONDOWN
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam, int lParam)
WM_NOTIFY
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_PAINT(int wParam, int lParam)
WM_PAINT
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SETFONT(int wParam, int lParam)
WM_SETFONT
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam, int lParam)
WM_SIZE
in class Scrollable
org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam, int lParam)
WM_SYSCOLORCHANGE
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SYSCOMMAND(int wParam, int lParam)
WM_SYSCOMMAND
in class Control
public void moveAbove(Control above, Control optBelow)
moveAbove
(optBelow)'
public void moveBelow(Control below, Control optAbove)
moveBelow
(optAbove)'
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |