Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2  
org.eclipse.swt.accessibility.* (13)org.eclipse.swt.awt.* (1)org.eclipse.swt.browser.* (22)
org.eclipse.swt.custom.* (49)org.eclipse.swt.dnd.* (24)org.eclipse.swt.events.* (42)
org.eclipse.swt.graphics.* (24)org.eclipse.swt.internal.* (326)org.eclipse.swt.layout.* (8)
org.eclipse.swt.ole.* (14)

org.eclipse.swt: Javadoc index of package org.eclipse.swt.


Package Samples:

org.eclipse.swt.graphics.custom
org.eclipse.swt.internal.mozilla
org.eclipse.swt.internal.image
org.eclipse.swt.internal
org.eclipse.swt.browser
org.eclipse.swt.graphics
org.eclipse.swt.events
org.eclipse.swt.layout
org.eclipse.swt.accessibility
org.eclipse.swt.awt
org.eclipse.swt.dnd
org.eclipse.swt.custom
org.eclipse.swt.internal.gnome
org.eclipse.swt.internal.gtk
org.eclipse.swt.internal.accessibility.gtk
org.eclipse.swt.ole.win32
org.eclipse.swt.internal.ole.win32
org.eclipse.swt.internal.win32

Classes:

TableCursor: A TableCursor provides a way for the user to navigate around a Table using the keyboard. It also provides a mechanism for selecting an individual cell in a table. Here is an example of using a TableCursor to navigate to a cell and then edit it. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); // create a a table with 3 columns and fill with data final Table table = new Table(shell, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); table.setLayoutData(new GridData(GridData.FILL_BOTH)); TableColumn column1 = ...
DragSource: DragSource defines the source object for a drag and drop transfer. IMPORTANT: This class is not intended to be subclassed. A drag source is the object which originates a drag and drop operation. For the specified widget, it defines the type of data that is available for dragging and the set of operations that can be performed on that data. The operations can be any bit-wise combination of DND.MOVE, DND.COPY or DND.LINK. The type of data that can be transferred is specified by subclasses of Transfer such as TextTransfer or FileTransfer. The type of data transferred can be a predefined system type ...
TraverseEvent: Instances of this class are sent as a result of widget traversal actions. The traversal event allows fine control over keyboard traversal in a control both to implement traversal and override the default traversal behavior defined by the system. This is achieved using two fields, detail and doit . When a control is traversed, a traverse event is sent. The detail describes the type of traversal and the doit indicates the default behavior of the system. For example, when a right arrow key is pressed in a text control, the detail field is TRAVERSE_ARROW_NEXT and the doit field is false , indicating ...
ByteArrayTransfer: The class ByteArrayTransfer provides a platform specific mechanism for converting a java byte[] to a platform specific representation of the byte array and vice versa. See Transfer for additional information. ByteArrayTransfer is never used directly but is sub-classed by transfer agents that convert between data in a java format such as a String and a platform specific byte array. If the data you are converting does not map to a byte[] , you should sub-class Transfer directly and do your own mapping to a platform data type. The following snippet shows a sublcass of ByteArrayTransfer that transfers ...
ScrolledComposite: A ScrolledComposite provides scrollbars and will scroll its content when the user uses the scrollbars. There are two ways to use the ScrolledComposite: 1) Set the size of the control that is being scrolled and the ScrolledComposite will show scrollbars when the contained control can not be fully seen. 2) The second way imitates the way a browser would work. Set the minimum size of the control and the ScrolledComposite will show scroll bars if the visible area is less than the minimum size of the control and it will expand the size of the control if the visible area is greater than the minimum size. ...
Shell: Instances of this class represent the "windows" which the desktop or "window manager" is managing. Instances that do not have a parent (that is, they are built using the constructor, which takes a Display as the argument) are described as top level shells. Instances that do have a parent are described as secondary or dialog shells. Instances are always displayed in one of the maximized, minimized or normal states: When an instance is marked as maximized , the window manager will typically resize it to fill the entire visible area of the display, and the instance is usually put in a state where ...
Display: Instances of this class are responsible for managing the connection between SWT and the underlying operating system. Their most important function is to implement the SWT event loop in terms of the platform event model. They also provide various methods for accessing information about the operating system, and have overall control over the operating system resources which SWT allocates. Applications which are built with SWT will almost always require only a single display. In particular, some platforms which SWT supports will not allow more than one active display. In other words, some platforms ...
Decorations: Instances of this class provide the appearance and behavior of Shells , but are not top level shells or dialogs. Class Shell shares a significant amount of code with this class, and is a subclass. IMPORTANT: This class was intended to be abstract and should never be referenced or instantiated. Instead, the class Shell should be used. Instances are always displayed in one of the maximized, minimized or normal states: When an instance is marked as maximized , the window manager will typically resize it to fill the entire visible area of the display, and the instance is usually put in a state where ...
ScrollBar: Instances of this class are selectable user interface objects that represent a range of positive, numeric values. At any given moment, a given scroll bar will have a single selection that is considered to be its value, which is constrained to be within the range of values the scroll bar represents (that is, between its minimum and maximum values). Typically, scroll bars will be made up of five areas: an arrow button for decrementing the value a page decrement area for decrementing the value by a larger amount a thumb for modifying the value by mouse dragging a page increment area for incrementing ...
FormLayout: Instances of this class control the position and size of the children of a composite control by using FormAttachments to optionally configure the left, top, right and bottom edge of each child. The following example code creates a FormLayout and then sets it into a Shell : Display display = new Display (); Shell shell = new Shell(display); FormLayout layout = new FormLayout(); layout.marginWidth = 3; layout.marginHeight = 3; shell.setLayout(layout); To use a FormLayout , create a FormData with FormAttachment for each child of Composite . The following example code attaches button1 to the top and ...
DropTarget: Class DropTarget defines the target object for a drag and drop transfer. IMPORTANT: This class is not intended to be subclassed. This class identifies the Control over which the user must position the cursor in order to drop the data being transferred. It also specifies what data types can be dropped on this control and what operations can be performed. You may have several DropTragets in an application but there can only be a one to one mapping between a Control and a DropTarget . The DropTarget can receive data from within the same application or from other applications (such as text dragged ...
FormAttachment: Instances of this class are used to define the edges of a control within a FormLayout . FormAttachments are set into the top, bottom, left, and right fields of the FormData for a control. For example: FormData data = new FormData(); data.top = new FormAttachment(0,5); data.bottom = new FormAttachment(100,-5); data.left = new FormAttachment(0,5); data.right = new FormAttachment(100,-5); button.setLayoutData(data); A FormAttachment defines where to attach the side of a control by using the equation, y = ax + b. The "a" term represents a fraction of the parent composite's width (from the left) or ...
TableTreeEditor: A TableTreeEditor is a manager for a Control that appears above a cell in a TableTree and tracks with the moving and resizing of that cell. It can be used to display a text widget above a cell in a TableTree so that the user can edit the contents of that cell. It can also be used to display a button that can launch a dialog for modifying the contents of the associated cell. Here is an example of using a TableTreeEditor: final TableTree tableTree = new TableTree(shell, SWT.FULL_SELECTION | SWT.HIDE_SELECTION); final Table table = tableTree.getTable(); TableColumn column1 = new TableColumn(table, ...
OleAutomation: OleAutomation provides a generic mechanism for accessing functionality that is specific to a particular ActiveX Control or OLE Document. The OLE Document or ActiveX Control must support the IDispatch interface in order to provide OleAutomation support. The additional functionality provided by the OLE Object is specified in its IDL file. The additional methods can either be to get property values ( getProperty ), to set property values ( setProperty ) or to invoke a method ( invoke or invokeNoReply ). Arguments are passed around in the form of Variant objects. Here is a sample IDL fragment: interface ...
WindowEvent: A WindowEvent is sent by a Browser when a new window needs to be created or when an existing window needs to be closed. This notification occurs when a javascript command such as window.open or window.close gets executed by a Browser . The following example shows how WindowEvent 's are typically handled. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Main Window"); shell.setLayout(new FillLayout()); Browser browser = new Browser(shell, SWT.NONE); initialize(display, browser); shell.open(); browser.setUrl("http://www.eclipse.org"); ...
StyledText: A StyledText is an editable user interface object that displays lines of text. The following style attributes can be defined for the text: foreground color background color font style (bold, regular) In addition to text style attributes, the background color of a line may be specified. There are two ways to use this widget when specifying text style information. You may use the API that is defined for StyledText or you may define your own LineStyleListener. If you define your own listener, you will be responsible for maintaining the text style information for the widget. IMPORTANT: You may not ...
TableEditor: A TableEditor is a manager for a Control that appears above a cell in a Table and tracks with the moving and resizing of that cell. It can be used to display a text widget above a cell in a Table so that the user can edit the contents of that cell. It can also be used to display a button that can launch a dialog for modifying the contents of the associated cell. Here is an example of using a TableEditor: final Table table = new Table(shell, SWT.FULL_SELECTION | SWT.HIDE_SELECTION); TableColumn column1 = new TableColumn(table, SWT.NONE); TableColumn column2 = new TableColumn(table, SWT.NONE); for ...
Slider: Instances of this class are selectable user interface objects that represent a range of positive, numeric values. At any given moment, a given slider will have a single selection that is considered to be its value, which is constrained to be within the range of values the slider represents (that is, between its minimum and maximum values). Typically, sliders will be made up of five areas: an arrow button for decrementing the value a page decrement area for decrementing the value by a larger amount a thumb for modifying the value by mouse dragging a page increment area for incrementing the value ...
Dialog: This class is the abstract superclass of the classes that represent the built in platform dialogs. A Dialog typically contains other widgets that are not accessible. A Dialog is not a Widget . This class can also be used as the abstract superclass for user-designed dialogs. Such dialogs usually consist of a Shell with child widgets. The basic template for a user-defined dialog typically looks something like this: public class MyDialog extends Dialog { Object result; public MyDialog (Shell parent, int style) { super (parent, style); } public MyDialog (Shell parent) { this (parent, 0); // your default ...
Image: Instances of this class are graphics which have been prepared for display on a specific device. That is, they are ready to paint using methods such as GC.drawImage() and display on widgets with, for example, Button.setImage() . If loaded from a file format that supports it, an Image may have transparency, meaning that certain pixels are specified as being transparent when drawn. Examples of file formats that support transparency are GIF and PNG. There are two primary ways to use Images . The first is to load a graphic file from disk and create an Image from it. This is done using an Image constructor, ...
TreeEditor: A TreeEditor is a manager for a Control that appears above a cell in a Tree and tracks with the moving and resizing of that cell. It can be used to display a text widget above a cell in a Tree so that the user can edit the contents of that cell. It can also be used to display a button that can launch a dialog for modifying the contents of the associated cell. Here is an example of using a TreeEditor: final Tree tree = new Tree(shell, SWT.BORDER); for (int i = 0; i &lt 3; i++) { TreeItem item = new TreeItem(tree, SWT.NONE); item.setText("item " + i); for (int j = 0; j &lt 3; j++) { TreeItem subItem ...
BidiSegmentEvent: This event is sent to BidiSegmentListeners when a line is to be measured or rendered in a bidi locale. The segments field is used to specify text ranges in the line that should be treated as separate segments for bidi reordering. Each segment will be reordered and rendered separately. The elements in the segments field specify the start offset of a segment relative to the start of the line. They must follow the following rules: first element must be 0 elements must be in ascending order and must not have duplicates elements must not exceed the line length In addition, the last element may be set ...
ControlEditor: A ControlEditor is a manager for a Control that appears above a composite and tracks with the moving and resizing of that composite. It can be used to display one control above another control. This could be used when editing a control that does not have editing capabilities by using a text editor or for launching a dialog by placing a button above a control. Here is an example of using a ControlEditor: Canvas canvas = new Canvas(shell, SWT.BORDER); canvas.setBounds(10, 10, 300, 300); Color color = new Color(null, 255, 0, 0); canvas.setBackground(color); ControlEditor editor = new ControlEditor ...
StackLayout: This Layout stacks all the controls one on top of the other and resizes all controls to have the same size and location. The control specified in topControl is visible and all other controls are not visible. Users must set the topControl value to flip between the visible items and then call layout() on the composite which has the StackLayout. Here is an example which places ten buttons in a stack layout and flips between them: public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); final Composite parent = new ...
RowLayout: Instances of this class determine the size and position of the children of a Composite by placing them either in horizontal rows or vertical columns within the parent Composite . RowLayout aligns all controls in one row if the type is set to horizontal, and one column if it is set to vertical. It has the ability to wrap, and provides configurable margins and spacing. RowLayout has a number of configuration fields. In addition, the height and width of each control in a RowLayout can be specified by setting a RowData object into the control using setLayoutData () . The following example code creates ...

Home | Contact Us | Privacy Policy | Terms of Service