Java Code Examples for org.eclipse.swt.widgets.Button#moveAbove()
The following examples show how to use
org.eclipse.swt.widgets.Button#moveAbove() .
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: InvoiceCorrectionWizardDialog.java From elexis-3-core with Eclipse Public License 1.0 | 6 votes |
@Override protected void createButtonsForButtonBar(Composite parent){ // TODO Auto-generated method stub super.createButtonsForButtonBar(parent); Button finish = getButton(IDialogConstants.FINISH_ID); finish.setText("Fertigstellen"); finish.setVisible(true); setButtonLayoutData(finish); Button back = getButton(IDialogConstants.BACK_ID); back.setVisible(false); Button cancel = getButton(IDialogConstants.CANCEL_ID); cancel.setText("Abbrechen"); Button btnCreateInvoice = getButton(IDialogConstants.NEXT_ID); btnCreateInvoice.setText("Rechnungskorrektur durchführen"); setButtonLayoutData(btnCreateInvoice); cancel.moveBelow(null); finish.moveAbove(cancel); btnCreateInvoice.moveAbove(finish); back.moveAbove(btnCreateInvoice); }
Example 2
Source File: RadioGroup.java From nebula with Eclipse Public License 2.0 | 5 votes |
Button createButton(int itemStyle, int position) { // Check add position (which may throw exception) before creating button position = checkAddPosition(position); final Button button = new Button(this, computeButtonStyle(itemStyle)); if (position < items.length) { button.moveAbove(items[position].getButton()); } layout(new Control[] { button }); return button; }
Example 3
Source File: ManualLayout.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); for (int i = 0; i <= 10; i++) { Button button = new Button(shell, SWT.PUSH); button.setText("Button " + 1); button.setBounds(i*10, i*10, 200, 200); button.moveAbove(null); button.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Control control = (Control) e.widget; control.moveAbove(null); } }); } shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } }
Example 4
Source File: FinishAndAddCustomWizardDialog.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public void moveFinishButton() { final Button cancelButton = getButton(IDialogConstants.CANCEL_ID); final Button finishButton = getButton(IDialogConstants.FINISH_ID); finishAndNewButton.moveAbove(cancelButton); finishButton.setText(IDialogConstants.FINISH_LABEL); finishButton.moveAbove(finishAndNewButton); }