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

Quick Search    Search Deep

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


Package Samples:

org.eclipse.swt.custom

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 = ...
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. ...
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, ...
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 ...
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 ...
CTabFolder: Instances of this class implement the notebook user interface metaphor. It allows the user to select a notebook page from set of pages. The item children that may be added to instances of this class must be of type CTabItem . Control children are created and then set into a tab item using CTabItem#setControl . Note that although this class is a subclass of Composite , it does not make sense to set a layout on it. Styles: CLOSE, TOP, BOTTOM, FLAT, BORDER, SINGLE, MULTI Events: Selection "CTabFolder2" Note: Only one of the styles TOP and BOTTOM may be specified. IMPORTANT: This class is not intended ...
WrappedContent: An instance of class WrappedContent is used by StyledText to display wrapped lines. Lines are wrapped at word breaks which are marked by a space character. Trailing space behind words is kept on the current line. If the last remaining word on a line can not be fully displayed the line is wrapped character by character. WrappedContent wraps a StyledTextContent which provides the line data. The start offset and length of wrapped lines is calculated and updated based on recalculation requests and text changes. All public methods in this class implement the StyledTextContent interface. Package visible ...
TableTree: A TableTree is a selectable user interface object that displays a hierarchy of items, and issues notification when an item is selected. A TableTree may be single or multi select. The item children that may be added to instances of this class must be of type TableTreeItem . Note that although this class is a subclass of Composite , it does not make sense to add Control children to it, or set a layout on it. Styles: SINGLE, MULTI, CHECK, FULL_SELECTION Events: Selection, DefaultSelection, Collapse, Expand Note: Only one of the styles SINGLE, and MULTI may be specified.
CBanner: Instances of this class implement a Composite that lays out its children and allows programmatic control of the layout. It draws a separator between the left and right children which can be dragged to resize the right control. CBanner is used in the workbench to layout the toolbar area and perspective switching toolbar at the top of the workbench. Note that although this class is a subclass of Composite , it does not make sense to set a layout on it. Styles: NONE Events: (None) IMPORTANT: This class is not intended to be subclassed.
CLabel: A Label which supports aligned text and/or an image and different border styles. If there is not enough space a CLabel uses the following strategy to fit the information into the available space: ignores the indent in left align mode ignores the image and the gap shortens the text by replacing the center portion of the label with an ellipsis shortens the text by removing the center portion of the label Styles: LEFT, RIGHT, CENTER, SHADOW_IN, SHADOW_OUT, SHADOW_NONE Events: IMPORTANT: This class is not intended to be subclassed.
StyledTextPrintOptions: Use StyledTextPrintOptions to specify printing options for the StyledText.print(Printer, StyledTextPrintOptions) API. The following example prints a right aligned page number in the footer, sets the job name to "Example" and prints line background colors but no other formatting: StyledTextPrintOptions options = new StyledTextPrintOptions(); options.footer = "\t\t<page>"; options.jobName = "Example"; options.printLineBackground = true; Runnable runnable = styledText.print(new Printer(), options); runnable.run();
TextChangeListener: The StyledText widget implements this listener to receive notifications when changes to the model occur. It is not intended to be implemented by clients or by implementors of StyledTextContent. Clients should listen to the ModifyEvent or ExtendedModifyEvent that is sent by the StyledText widget to receive text change notifications. Implementors of StyledTextContent should call the textChanging and textChanged methods when text changes occur as described below. If the entire text is replaced the textSet method should be called instead.
ViewForm: Instances of this class implement a Composite that lays out three children horizontally and allows programmatic control of layout and border parameters. ViewForm is used in the workbench to implement a view's label/menu/toolbar local bar. Note that although this class is a subclass of Composite , it does not make sense to set a layout on it. Styles: BORDER, FLAT Events: (None) IMPORTANT: This class is not intended to be subclassed.
PopupList: A PopupList is a list of selectable items that appears in its own shell positioned above its parent shell. It it used for selecting items when editing a Table cell (similar to the list that appears when you open a Combo box). The list will be positioned so that does not run off the screen and the largest number of items are visible. It may appear above the current cursor location or below it depending how close you are to the edge of the screen.
CTabFolder2Listener: Classes which implement this interface provide methods that deal with the events that are generated by the CTabFolder control. After creating an instance of a class that implements this interface it can be added to a CTabFolder using the addCTabFolder2Listener method and removed using the removeCTabFolder2Listener method. When events occurs in a CTabFolder the appropriate method will be invoked.
CCombo: The CCombo class represents a selectable user interface object that combines a text field and a list and issues notificiation when an item is selected from the list. Note that although this class is a subclass of Composite , it does not make sense to add children to it, or set a layout on it. Styles: BORDER, READ_ONLY, FLAT Events: Selection
StyledTextContent: Clients may implement the StyledTextContent interface to provide a custom store for the StyledText widget content. The StyledText widget interacts with its StyledTextContent in order to access and update the text that is being displayed and edited in the widget. A custom content implementation can be set in the widget using the StyledText.setContent API.
SashForm: The SashForm lays out its children in a Row or Column arrangement (as specified by the orientation) and places a Sash between the children. One child may be maximized to occupy the entire size of the SashForm. The relative sizes of the children may be specfied using weights. Styles: HORIZONTAL, VERTICAL
PrintRenderer: A PrintRenderer renders the content of a StyledText widget on a printer device. Print rendering may occur in a non-UI thread. Therefore all requests for styles, content and any other information normally stored in the StyledText widget are served from cached data. Caching also guarantees immutable data for threaded printing.

Home | Contact Us | Privacy Policy | Terms of Service