public class TaskBar extends Widget
Display.getSystemTaskBar()
,
Sample code and further informationModifier and Type | Field and Description |
---|---|
(package private) static byte[] |
CLSID_DestinationList |
(package private) static byte[] |
CLSID_EnumerableObjectCollection |
(package private) static byte[] |
CLSID_FileOperation |
(package private) static byte[] |
CLSID_ShellLink |
(package private) static byte[] |
CLSID_TaskbarList |
(package private) static java.lang.String |
EXE_ARGS_KEY |
(package private) static char[] |
EXE_PATH |
(package private) static java.lang.String |
EXE_PATH_KEY |
(package private) static byte[] |
FOLDERID_LocalAppData |
(package private) static char[] |
ICO_DIR |
(package private) static java.lang.String |
ICON_INDEX_KEY |
(package private) static java.lang.String |
ICON_KEY |
(package private) static byte[] |
IID_ICustomDestinationList |
(package private) static byte[] |
IID_IFileOperation |
(package private) static byte[] |
IID_IObjectArray |
(package private) static byte[] |
IID_IObjectCollection |
(package private) static byte[] |
IID_IPropertyStore |
(package private) static byte[] |
IID_IShellItem |
(package private) static byte[] |
IID_IShellLinkW |
(package private) static byte[] |
IID_ITaskbarList3 |
(package private) int |
itemCount |
(package private) TaskItem[] |
items |
(package private) int |
mTaskbarList3 |
(package private) static PROPERTYKEY |
PKEY_AppUserModel_IsDestListSeparator |
(package private) static PROPERTYKEY |
PKEY_Title |
CANVAS, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, display, DISPOSE_SENT, DISPOSED, DRAG_DETECT, DRAW_BACKGROUND, eventTable, FOREIGN_HANDLE, HIDDEN, IGNORE_WM_CHANGEUISTATE, KEYED_DATA, LAYOUT_CHANGED, LAYOUT_CHILD, LAYOUT_NEEDED, MAJOR, MINOR, MOVE_DEFERRED, MOVE_OCCURRED, PARENT_BACKGROUND, RELEASED, RESIZE_DEFERRED, RESIZE_OCCURRED, SKIN_NEEDED, state, style, THEME_BACKGROUND, TRACK_MOUSE
Modifier and Type | Method and Description |
---|---|
(package private) void |
createHandle() |
(package private) void |
createItem(TaskItem item,
int index) |
(package private) void |
createItems() |
(package private) int |
createShellLink(MenuItem item,
java.lang.String directory) |
(package private) int |
createShellLinkArray(MenuItem[] items,
java.lang.String directory) |
(package private) void |
destroyItem(TaskItem item) |
(package private) java.lang.String |
getDirectory(char[] appName) |
(package private) int |
getDirectory(int parent,
int pfo,
char[] name,
boolean delete) |
TaskItem |
getItem(int index)
Returns the item at the given, zero-relative index in the
receiver.
|
TaskItem |
getItem(Shell shell)
Returns the
TaskItem for the given Shell or the TaskItem
for the application if the Shell parameter is null . |
int |
getItemCount()
Returns the number of items contained in the receiver.
|
TaskItem[] |
getItems()
Returns an array of
TaskItem s which are the items
in the receiver. |
(package private) void |
releaseChildren(boolean destroy) |
(package private) void |
releaseParent() |
(package private) void |
releaseWidget() |
(package private) void |
reskinChildren(int flags) |
(package private) void |
setMenu(Menu menu) |
_addListener, addDisposeListener, addListener, callWindowProc, checkBits, checkOpened, checkOrientation, checkParent, checkSubclass, checkWidget, DeferWindowPos, destroyWidget, dispose, dragDetect, error, filters, findItem, fixMnemonic, fixMnemonic, getData, getData, getDisplay, getListeners, getMenu, getName, getNameText, getStyle, hooks, isDisposed, isListening, isValidSubclass, isValidThread, mapEvent, new_GC, notifyListeners, postEvent, postEvent, release, releaseHandle, removeDisposeListener, removeListener, removeListener, reskin, reskinWidget, sendDragEvent, sendDragEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendFocusEvent, sendKeyEvent, sendKeyEvent, sendMouseEvent, sendMouseEvent, sendMouseWheelEvent, sendSelectionEvent, sendSelectionEvent, setData, setData, setInputState, setKeyState, setLocationMask, setTabGroupFocus, setTabItemFocus, SetWindowPos, showMenu, showMenu, toString, updateMenuLocation, wmCaptureChanged, wmChar, wmContextMenu, wmIMEChar, wmKeyDown, wmKeyUp, wmKillFocus, wmLButtonDblClk, wmLButtonDown, wmLButtonUp, wmMButtonDblClk, wmMButtonDown, wmMButtonUp, wmMouseHover, wmMouseHWheel, wmMouseLeave, wmMouseMove, wmMouseWheel, wmNCPaint, wmPaint, wmPrint, wmRButtonDblClk, wmRButtonDown, wmRButtonUp, wmSetFocus, wmSysChar, wmSysKeyDown, wmSysKeyUp, wmXButtonDblClk, wmXButtonDown, wmXButtonUp
int itemCount
TaskItem[] items
int mTaskbarList3
static final char[] EXE_PATH
static final char[] ICO_DIR
static final PROPERTYKEY PKEY_Title
static final PROPERTYKEY PKEY_AppUserModel_IsDestListSeparator
static final java.lang.String EXE_PATH_KEY
static final java.lang.String EXE_ARGS_KEY
static final java.lang.String ICON_KEY
static final java.lang.String ICON_INDEX_KEY
static final byte[] CLSID_TaskbarList
static final byte[] CLSID_DestinationList
static final byte[] CLSID_EnumerableObjectCollection
static final byte[] CLSID_ShellLink
static final byte[] CLSID_FileOperation
static final byte[] IID_ITaskbarList3
static final byte[] IID_ICustomDestinationList
static final byte[] IID_IObjectArray
static final byte[] IID_IObjectCollection
static final byte[] IID_IShellLinkW
static final byte[] IID_IPropertyStore
static final byte[] IID_IShellItem
static final byte[] IID_IFileOperation
static final byte[] FOLDERID_LocalAppData
TaskBar(Display display, int style)
void createHandle()
void createItem(TaskItem item, int index)
void createItems()
int createShellLink(MenuItem item, java.lang.String directory)
int createShellLinkArray(MenuItem[] items, java.lang.String directory)
void destroyItem(TaskItem item)
java.lang.String getDirectory(char[] appName)
int getDirectory(int parent, int pfo, char[] name, boolean delete)
public TaskItem getItem(int index)
index
- the index of the item to returnjava.lang.IllegalArgumentException
- SWTException
- public TaskItem getItem(Shell shell)
TaskItem
for the given Shell
or the TaskItem
for the application if the Shell
parameter is null
.
If the requested item is not supported by the platform it returns null
.shell
- the shell for which the task item is requested, or null to request the application itemSWTException
- public int getItemCount()
SWTException
- public TaskItem[] getItems()
TaskItem
s which are the items
in the receiver.
Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.
SWTException
- void releaseChildren(boolean destroy)
releaseChildren
in class Widget
void releaseParent()
releaseParent
in class Widget
void releaseWidget()
releaseWidget
in class Widget
void reskinChildren(int flags)
reskinChildren
in class Widget
void setMenu(Menu menu)