Example #1
0
 private void tab1(final TabFolder tpane) {
   final Composite widget_lh9w84_a0a0i =
       new _FunctionTypes._return_P1_E0<Composite, Composite>() {
         public Composite invoke(Composite context_lh9w84_a_10) {
           Composite cmp = new Composite(tpane, SWT.NONE);
           RowLayout rlt = new RowLayout(SWT.HORIZONTAL);
           rlt.wrap = false;
           rlt.fill = false;
           rlt.justify = false;
           cmp.setLayout(rlt);
           return cmp;
         }
       }.invoke(tpane);
   final Button widget_lh9w84_a0a0a0a8 = new Button(widget_lh9w84_a0a0i, SWT.RADIO);
   widget_lh9w84_a0a0a0a8.setText("Stage 1");
   //  with SWT items are not added to container
   final Button widget_lh9w84_b0a0a0a8 = new Button(widget_lh9w84_a0a0i, SWT.RADIO);
   widget_lh9w84_b0a0a0a8.setText("Stage 2");
   //  with SWT items are not added to container
   final Button widget_lh9w84_c0a0a0a8 = new Button(widget_lh9w84_a0a0i, SWT.RADIO);
   widget_lh9w84_c0a0a0a8.setText("Stage 3");
   //  with SWT items are not added to container
   new _FunctionTypes._void_P0_E0() {
     public void invoke() {
       TabItem ti = new TabItem(tpane, SWT.NONE);
       ti.setText("Radiobuttons");
       ti.setControl((Control) widget_lh9w84_a0a0i);
     }
   }.invoke();
 }
Example #2
0
 private void tab2(final TabFolder tpane) {
   final Composite widget_lh9w84_a0a0j =
       new _FunctionTypes._return_P1_E0<Composite, Composite>() {
         public Composite invoke(Composite context_lh9w84_a_11) {
           Composite cmp = new Composite(tpane, SWT.NONE);
           RowLayout rlt = new RowLayout(SWT.VERTICAL);
           rlt.wrap = false;
           rlt.fill = false;
           rlt.justify = false;
           cmp.setLayout(rlt);
           return cmp;
         }
       }.invoke(tpane);
   final Button widget_lh9w84_a0a0a0a9 = new Button(widget_lh9w84_a0a0j, SWT.CHECK);
   widget_lh9w84_a0a0a0a9.setText("kino");
   widget_lh9w84_a0a0a0a9.setSelection(this.bo.isKino());
   widget_lh9w84_a0a0a0a9.addSelectionListener(
       new SelectionAdapter() {
         public void widgetSelected(SelectionEvent e) {
           new _FunctionTypes._void_P1_E0<Boolean>() {
             public void invoke(Boolean value) {
               bo.setKino(value);
             }
           }.invoke(widget_lh9w84_a0a0a0a9.getSelection());
         }
       });
   //  with SWT items are not added to container
   final Button widget_lh9w84_b0a0a0a9 = new Button(widget_lh9w84_a0a0j, SWT.CHECK);
   widget_lh9w84_b0a0a0a9.setText("vino");
   widget_lh9w84_b0a0a0a9.setSelection(this.bo.isVino());
   widget_lh9w84_b0a0a0a9.addSelectionListener(
       new SelectionAdapter() {
         public void widgetSelected(SelectionEvent e) {
           new _FunctionTypes._void_P1_E0<Boolean>() {
             public void invoke(Boolean value) {
               bo.setVino(value);
             }
           }.invoke(widget_lh9w84_b0a0a0a9.getSelection());
         }
       });
   //  with SWT items are not added to container
   final Button widget_lh9w84_c0a0a0a9 = new Button(widget_lh9w84_a0a0j, SWT.CHECK);
   widget_lh9w84_c0a0a0a9.setText("domino");
   widget_lh9w84_c0a0a0a9.setSelection(this.bo.isDomino());
   widget_lh9w84_c0a0a0a9.addSelectionListener(
       new SelectionAdapter() {
         public void widgetSelected(SelectionEvent e) {
           new _FunctionTypes._void_P1_E0<Boolean>() {
             public void invoke(Boolean value) {
               bo.setDomino(value);
             }
           }.invoke(widget_lh9w84_c0a0a0a9.getSelection());
         }
       });
   //  with SWT items are not added to container
   new _FunctionTypes._void_P0_E0() {
     public void invoke() {
       TabItem ti = new TabItem(tpane, SWT.NONE);
       ti.setText("Checkboxes");
       ti.setControl((Control) widget_lh9w84_a0a0j);
     }
   }.invoke();
 }