Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] JFACE CELLEDITOR WITH button

Hi,

Please direct user questions about JFace to eclipse.patform.rcp.

Tom

Michele D'Urso schrieb:
I'm trying to add a button in a table column implementing celleditor.

It seems not working
Any suggest????

thank you

here the code:

############################
package ltable;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public class ButtonEditor extends CellEditor {
	  public ButtonEditor(){
}
	  public ButtonEditor(Composite c){
		  super(c,0);
	  }
	  public ButtonEditor(Composite c ,int style){
		  super(c,style);
	  }
@Override
		protected Control createControl(Composite parent) {
			
			System.out.println("Creo bottone");
			Button butt =new Button(parent,SWT.NONE);
			butt.pack();
			butt.setText("Test");
			return butt;
			
			
			}

		@Override
		protected Object doGetValue() {
			// TODO Auto-generated method stub
			return null;
		}
		
		@Override
		protected void doSetFocus() {
			// TODO Auto-generated method stub
			 //button.setFocus();
		}

		@Override
		protected void doSetValue(Object arg0) {
			// TODO Auto-generated method stub
			
		}
}
 ################################################

--
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
 Fai conoscere la tua azienda con l'invio di newsletter e campagne email marketing. Con soli 250 Euro incrementi la tua visibilità!
* Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7150&d=25-10
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top