Available Methods
- NONE
- BORDER
- V_SCROLL
- PUSH
- CHECK
- LEFT
- MULTI
- SINGLE
- READ_ONLY
- OK
- H_SCROLL
- FILL
- CENTER
- WRAP
- error ( )
- ICON_ERROR
- RIGHT
- NULL
- HORIZONTAL
- FULL_SELECTION
- BOLD
- SEPARATOR
- DEFAULT
- RADIO
- RESIZE
- FLAT
- VERTICAL
- TOP
- DROP_DOWN
- ITALIC
- NORMAL
- SAVE
- ICON_INFORMATION
- CTRL
- SHIFT
- NO_FOCUS
- APPLICATION_MODAL
- DIALOG_TRIM
- DOUBLE_BUFFERED
- OPEN
- CR
- ARROW_DOWN
- Selection ( )
- YES
- CANCEL
- BOTTOM
- NO_BACKGROUND
- NO
- CLOSE
- ICON_WARNING
- RIGHT_TO_LEFT
- LEFT_TO_RIGHT
- TOGGLE
- SHEET
- DOWN
- BEGINNING
- MAX
- ARROW_LEFT
- ARROW_RIGHT
- NO_TRIM
- END
- ON_TOP
- MIN
- ARROW_UP
- KeyDown ( )
- KeyUp ( )
- ICON_QUESTION
- Dispose ( )
- ALT
- CASCADE
- VIRTUAL
- SHADOW_ETCHED_IN
- PAGE_UP
- DEL
- FocusOut ( )
- Traverse ( )
- PASSWORD
- SHELL_TRIM
- ARROW
- Deactivate ( )
- BS
- FocusIn ( )
- ESC
- LEAD
- MouseUp ( )
- SMOOTH
- MouseDoubleClick ( )
- TRAVERSE_TAB_NEXT
- UP
- MouseDown ( )
- TITLE
- Paint ( )
- PAGE_DOWN
- Move ( )
- HOME
- SHADOW_IN
- TRAVERSE_TAB_PREVIOUS
- F2 ( )
- LINE_SOLID
- HIDE_SELECTION
- JOIN_BEVEL
- SHADOW_NONE
- Modify ( )
- BAR
- SEARCH
- COMMAND
- LINE_DASHDOT
- ICON_SEARCH
- TAB
- SHADOW_OUT
- LINE_DASH
- KEYPAD_CR
- LINE_DOT
- JOIN_ROUND
- MOD1 ( )
- TOOL
- MODIFIER_MASK
- CURSOR_ARROW
- IMAGE_GIF
- LF
- MouseEnter ( )
- MouseMove ( )
- TRAVERSE_ARROW_PREVIOUS
- UNDERLINE_LINK
- MODELESS
- CURSOR_HAND
- IMAGE_JPEG
- MouseHover ( )
- CURSOR_WAIT
- getPlatform ( )
- IMAGE_BMP
- PRIMARY_MODAL
- CAP_FLAT
- UNDERLINE_ERROR
- POP_UP
- CAP_ROUND
- SIMPLE
- DATE
- EraseItem ( )
- TRANSPARENT
- TIME
- CAP_SQUARE
- COLOR_DARK_GREEN
- FOREGROUND
- INHERIT_DEFAULT
- KEYPAD_SUBTRACT
- TRAVERSE_ARROW_NEXT
- Help ( )
- LINE_DASHDOTDOT
- TRAVERSE_ESCAPE
- MouseExit ( )
- JOIN_MITER
- NO_SCROLL
- Collapse ( )
- F9 ( )
- FILL_WINDING
- HIGH
- ERROR_NULL_ARGUMENT
- BORDER_DOT
- CAPS_LOCK
- ICON_CANCEL
- KEYPAD_4 ( )
- PATH_MOVE_TO
- MOD2 ( )
- INDETERMINATE
- NO_REDRAW_RESIZE
- INSERT
- DefaultSelection ( )
- SYSTEM_MODAL
- IMAGE_COPY
- CALENDAR
- BACKGROUND
- MOD4 ( )
Related Classes
- java.io.File
- org.eclipse.swt.widgets.Composite
- org.eclipse.swt.widgets.Display
- org.eclipse.swt.widgets.Button
- org.eclipse.swt.widgets.Label
- org.eclipse.swt.widgets.Shell
- org.eclipse.swt.layout.GridData
- org.eclipse.swt.widgets.Text
- org.eclipse.swt.layout.GridLayout
- org.eclipse.swt.events.SelectionEvent
- org.eclipse.swt.events.SelectionAdapter
- org.eclipse.swt.widgets.Control
- org.eclipse.swt.graphics.Image
- org.eclipse.swt.widgets.Group
- org.eclipse.swt.widgets.Event
- org.eclipse.swt.graphics.Point
- org.eclipse.swt.graphics.Color
- org.eclipse.ui.PlatformUI
- org.eclipse.swt.widgets.Listener
- org.eclipse.swt.events.SelectionListener
- org.eclipse.swt.events.ModifyListener
- org.eclipse.swt.widgets.Combo
- org.eclipse.swt.widgets.FileDialog
- org.eclipse.swt.events.ModifyEvent
- org.eclipse.jface.viewers.IStructuredSelection
Java Code Examples for org.eclipse.swt.SWT#Collapse
The following examples show how to use
org.eclipse.swt.SWT#Collapse .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CTree.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * <p> * Event types: * <ul> * <li>SWT.Collapse</li> * <li>SWT.Expand</li> * <li>SWT.Hide</li> * <li>SWT.Move</li> * <li>SWT.Show</li> * </ul> * </p> * @param eventType * @param item */ void layout(int eventType, CTreeItem item) { if(SWT.Collapse == eventType) { layout.layout(eventType, item); visibleItems = null; updatePaintedList = true; } else if(SWT.Expand == eventType) { layout.layout(eventType, item); visibleItems = null; updatePaintedList = true; } else if(SWT.Hide == eventType && isVisible((CTreeItem)item)) { layout.layout(eventType, item); updatePaintedList = true; item.setVisible(false); } else if(SWT.Show == eventType && !isVisible((CTreeItem)item)) { layout.layout(eventType, item); updatePaintedList = true; item.setVisible(true); } }
Example 2
Source File: CogniCryptPreferencePage.java From CogniCrypt with Eclipse Public License 2.0 | 6 votes |
@Override protected Control createContents(Composite parent) { final Composite container = new Composite(parent, SWT.FILL); container.setLayout(new GridLayout(1, true)); notifyBasicPreferenceListeners(container); new Label(container, SWT.NONE); final ExpandableComposite collap = new ExpandableComposite(container, SWT.Collapse); collap.setText("Advanced Options"); final Composite advancedOptions = new Composite(collap, SWT.None); collap.setClient(advancedOptions); advancedOptions.setLayout(new RowLayout(SWT.VERTICAL)); notifyAdvancedPreferenceListeners(advancedOptions); collap.setExpanded(true); return container; }
Example 3
Source File: CapabilitySection.java From uima-uimaj with Apache License 2.0 | 5 votes |
@Override public void handleEvent(Event event) { if (event.type == SWT.Expand || event.type == SWT.Collapse) { pack04(); return; } if (event.widget == addCapabilityButton) { handleAddCapability(); enable(); return; } TreeItem selItem = tt.getSelection()[0]; int itemKind = getItemKind(selItem); if (event.widget == addLangButton) { handleAddLang(selItem, itemKind); } else if (event.widget == addTypeButton) { handleAddType(selItem, itemKind); } else if (event.widget == addSofaButton) { handleAddSofa(selItem, itemKind); } else if (event.widget == addEditFeatureButton) { handleAddEditFeature(selItem, itemKind); } else if (event.widget == editButton || event.type == SWT.MouseDoubleClick) { handleEdit(selItem, itemKind); } else if (event.widget == removeButton || (event.widget == tt && event.type == SWT.KeyUp && event.character == SWT.DEL)) { handleRemove(selItem, itemKind); } enable(); }
Example 4
Source File: CTree.java From nebula with Eclipse Public License 2.0 | 4 votes |
private void fireTreeEvent(Widget item, boolean collapse) { Event event = new Event(); event.type = collapse ? SWT.Collapse : SWT.Expand; event.item = item; notifyListeners(event.type, event); }
Example 5
Source File: CTreeCombo.java From nebula with Eclipse Public License 2.0 | 4 votes |
void createPopup(Collection<CTreeComboItem> items, CTreeComboItem selectedItem) { // create shell and list popup = new Shell(getShell(), SWT.NO_TRIM | SWT.ON_TOP); final int style = getStyle(); int listStyle = SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE; if ((style & SWT.FLAT) != 0) { listStyle |= SWT.FLAT; } if ((style & SWT.RIGHT_TO_LEFT) != 0) { listStyle |= SWT.RIGHT_TO_LEFT; } if ((style & SWT.LEFT_TO_RIGHT) != 0) { listStyle |= SWT.LEFT_TO_RIGHT; } tree = new Tree(popup, listStyle); tree.addTreeListener(hookListener); if (font != null) { tree.setFont(font); } if (foreground != null) { tree.setForeground(foreground); } if (background != null) { tree.setBackground(background); } final int[] popupEvents = { SWT.Close, SWT.Paint, SWT.Deactivate }; for (int i = 0; i < popupEvents.length; i++) { popup.addListener(popupEvents[i], listener); } final int[] listEvents = { SWT.MouseUp, SWT.Selection, SWT.Traverse, SWT.KeyDown, SWT.KeyUp, SWT.FocusIn, SWT.Dispose, SWT.Collapse, SWT.Expand }; for (int i = 0; i < listEvents.length; i++) { tree.addListener(listEvents[i], listener); } for (final CTreeComboColumn c : columns) { final TreeColumn col = new TreeColumn(tree, SWT.NONE); c.setRealTreeColumn(col); } if (items != null) { createTreeItems(items.toArray(new CTreeComboItem[0])); } if (selectedItem != null) { tree.setSelection(selectedItem.getRealTreeItem()); } }