protected void setTabOrder(Composite composite) { if (hasHeader()) { composite.setTabList(new Control[] { fFilterText, fTreeViewer.getTree() }); } else { fViewMenuButtonComposite.setTabList(new Control[] { fFilterText }); composite.setTabList(new Control[] { fViewMenuButtonComposite, fTreeViewer.getTree() }); } } }
@Override protected void setTabOrder(Composite composite) { if (hasHeader()) { composite.setTabList(new Control[] { fFilterText, fTreeViewer.getTree() }); } else { fViewMenuButtonComposite.setTabList(new Control[] { fFilterText }); composite.setTabList(new Control[] { fViewMenuButtonComposite, fTreeViewer.getTree() }); } } }
@Override protected void setTabOrder(Composite composite) { if (hasHeader()) { composite.setTabList(new Control[] { fFilterText, fTreeViewer.getTree() }); } else { fViewMenuButtonComposite.setTabList(new Control[] { fFilterText }); composite.setTabList(new Control[] { fViewMenuButtonComposite, fTreeViewer.getTree() }); } } }
/** * Create the tab order of all SWT-Widgets of the page. (sets the focus and * defines the tab order) */ protected void createWidgetsTabOrder() { Control[] tabOrder; final Shell shell = dialog; final Composite CertificateFormCompW = getComposite(); dialog.setTabList(new Control[] { CertificateFormCompW.getParent() }); tabOrder = new Control[1]; tabOrder[0] = CertificatePanelW; CertificateFormCompW.setTabList(tabOrder); tabOrder = new Control[3]; tabOrder[0] = CertificateTableHeaderW; tabOrder[1] = certificateTableW; tabOrder[2] = txtCertdataW; CertificatePanelW.setTabList(tabOrder); tabOrder = new Control[1]; tabOrder[0] = CertificateTableHeader_set0W; CertificateTableHeaderW.setTabList(tabOrder); tabOrder = new Control[1]; tabOrder[0] = cmbCertW; CertificateTableHeader_set0W.setTabList(tabOrder); }
/** * Create the tab order of all SWT-Widgets of the page. (sets the focus and * defines the tab order) */ protected void createWidgetsTabOrder() { Control[] tabOrder; final Shell shell = dialog; final Composite CertificateFormCompW = getComposite(); dialog.setTabList(new Control[] { CertificateFormCompW.getParent() }); tabOrder = new Control[1]; tabOrder[0] = CertificatePanelW; CertificateFormCompW.setTabList(tabOrder); tabOrder = new Control[3]; tabOrder[0] = CertificateTableHeaderW; tabOrder[1] = certificateTableW; tabOrder[2] = txtCertdataW; CertificatePanelW.setTabList(tabOrder); tabOrder = new Control[1]; tabOrder[0] = CertificateTableHeader_set0W; CertificateTableHeaderW.setTabList(tabOrder); tabOrder = new Control[1]; tabOrder[0] = cmbCertW; CertificateTableHeader_set0W.setTabList(tabOrder); }
protected Control createContents(Composite contents) { initAccessible(contents); contents.setBackground(backgroundColour); GridLayout layout = new GridLayout(); layout.marginHeight = 5; layout.marginWidth = 5; contents.setLayout(layout); contents.setLayoutData(new GridData(GridData.FILL_BOTH)); // create the dialog area and button bar createInfoArea(contents); Control c = createLinksArea(contents); if (c != null) { // links exist, make them the only focusable controls contents.setTabList(new Control[] { c }); } return contents; }
public void setTextVisible(boolean enabled) { if (fTextVisible == enabled) return; fTextVisible= enabled; GridData data= (GridData) fTextComposite.getLayoutData(); data.exclude= !enabled; fTextComposite.setVisible(enabled); if (fTextVisible) { fDetailComposite.setTabList(new Control[] { fTextComposite }); } else { fDetailComposite.setTabList(new Control[] { fImageComposite }); } if (fHasFocus) { if (isTextVisible()) { fTextComposite.setFocus(); } else { fImageComposite.setFocus(); } } }
tableParent.setLayout(gridLayout); parent.setTabList(new Control[] { tableParent, cTop
public void setTextVisible(boolean enabled) { if (fTextVisible == enabled) { return; } fTextVisible= enabled; GridData data= (GridData) fTextComposite.getLayoutData(); data.exclude= !enabled; fTextComposite.setVisible(enabled); if (fTextVisible) { fDetailComposite.setTabList(new Control[] { fTextComposite }); } else { fDetailComposite.setTabList(new Control[] { fImageComposite }); } if (fHasFocus) { if (isTextVisible()) { fTextComposite.setFocus(); } else { fImageComposite.setFocus(); } } }
public void setTextVisible(boolean enabled) { if (fTextVisible == enabled) return; fTextVisible= enabled; GridData data= (GridData) fTextComposite.getLayoutData(); data.exclude= !enabled; fTextComposite.setVisible(enabled); if (fTextVisible) { fDetailComposite.setTabList(new Control[] { fTextComposite }); } else { fDetailComposite.setTabList(new Control[] { fImageComposite }); } if (fHasFocus) { if (isTextVisible()) { fTextComposite.setFocus(); } else { fImageComposite.setFocus(); } } updateSelection(); }
private void createSearchTextControl(Composite textComposite) { searchText = new StyledText(textComposite, SWT.SINGLE | SWT.BORDER | SWT.SEARCH | SWT.CANCEL); textComposite.setTabList(new Control[]{searchText});
button1.addListener(SWT.FocusIn, listener); button2.addListener(SWT.FocusIn, listener); composite.setTabList(new Control[]{checkButton});
data.bottom = new FormAttachment(100,0); compW.setLayoutData(data); clientCompositeW.setTabList(new Control[]{compW});
data.bottom = new FormAttachment(100,0); compW.setLayoutData(data); clientCompositeW.setTabList(new Control[]{compW});
/** * Construct a decorated field which is parented by the specified composite * and has the given style bits. Use the controlCreator to create the * specific kind of control that is decorated inside the field. * * @param parent * the parent of the decorated field. * @param style * the desired style bits for the field. * @param controlCreator * the IControlCreator used to specify the specific kind of * control that is to be decorated. * * @see IControlCreator */ public DecoratedField(Composite parent, int style, IControlCreator controlCreator) { this.form = createForm(parent); this.control = controlCreator.createControl(form, style); addControlListeners(); form.setTabList(new Control[] { control }); // Set up the initial layout data. FormData data = new FormData(); data.left = new FormAttachment(0, 0); data.top = new FormAttachment(0, 0); data.right = new FormAttachment(100, 0); data.bottom = new FormAttachment(100, 0); control.setLayoutData(data); }
/** * Construct a decorated field which is parented by the specified composite * and has the given style bits. Use the controlCreator to create the * specific kind of control that is decorated inside the field. * * @param parent * the parent of the decorated field. * @param style * the desired style bits for the field. * @param controlCreator * the IControlCreator used to specify the specific kind of * control that is to be decorated. * * @see IControlCreator */ public DecoratedField(Composite parent, int style, IControlCreator controlCreator) { this.form = createForm(parent); this.control = controlCreator.createControl(form, style); addControlListeners(); form.setTabList(new Control[] { control }); // Set up the initial layout data. FormData data = new FormData(); data.left = new FormAttachment(0, 0); data.top = new FormAttachment(0, 0); data.right = new FormAttachment(100, 0); data.bottom = new FormAttachment(100, 0); control.setLayoutData(data); }
/** * Construct a decorated field which is parented by the specified composite * and has the given style bits. Use the controlCreator to create the * specific kind of control that is decorated inside the field. * * @param parent * the parent of the decorated field. * @param style * the desired style bits for the field. * @param controlCreator * the IControlCreator used to specify the specific kind of * control that is to be decorated. * * @see IControlCreator */ public DecoratedField(Composite parent, int style, IControlCreator controlCreator) { this.form = createForm(parent); this.control = controlCreator.createControl(form, style); addControlListeners(); form.setTabList(new Control[] { control }); // Set up the initial layout data. FormData data = new FormData(); data.left = new FormAttachment(0, 0); data.top = new FormAttachment(0, 0); data.right = new FormAttachment(100, 0); data.bottom = new FormAttachment(100, 0); control.setLayoutData(data); }
/** * Creates the Widgets of the PageClient and all Subpages by calling * {@link #createWidgets()} on the PageClient and all Subpages. Overloaded here * to add its own widgets: the composite menu for the menu and the SWT-List for * the context stack. */ void prepare () { super.prepare(); EventAdapter adapter = new EventAdapter(appShell); menuCompW = getMenuComp(); if ( menuCompW != null ) { FormData data = new FormData(); data.left = new FormAttachment(0,100,0); data.right = new FormAttachment(100,100,0); data.top = new FormAttachment(0,100,0); data.bottom = new FormAttachment(100,100,0); Control ctrl = createRootMenu(adapter,menuCompW); ctrl.setLayoutData(data); menuCompW.setTabList(new Control[] { ctrl }); menuCompW.layout(); } } }
/** * Creates the Widgets of the PageClient and all Subpages by calling * {@link #createWidgets()} on the PageClient and all Subpages. Overloaded here * to add its own widgets: the composite menu for the menu and the SWT-List for * the context stack. */ void prepare () { super.prepare(); EventAdapter adapter = new EventAdapter(appShell); menuCompW = getMenuComp(); if ( menuCompW != null ) { FormData data = new FormData(); data.left = new FormAttachment(0,100,0); data.right = new FormAttachment(100,100,0); data.top = new FormAttachment(0,100,0); data.bottom = new FormAttachment(100,100,0); Control ctrl = createRootMenu(adapter,menuCompW); ctrl.setLayoutData(data); menuCompW.setTabList(new Control[] { ctrl }); menuCompW.layout(); } } }
PlatformUI.getWorkbench().getHelpSystem().setHelp(preserveWhitespace, XSDEditorCSHelpIds.ADD_ENUMERATIONS__PRESERVE_LEAD_AND_TRAIL_WHITESPACES); client.setTabList(tabOrder);