not able to get back and forward function in browser widget [message #756562] |
Mon, 14 November 2011 10:44 |
marie Missing name Messages: 63 Registered: March 2011 |
Member |
|
|
Hi. all
I have implemented following class,which is extending from composite..
here is its constructor
public HTMLReportViewer(TestCaseEditor editor, Composite parent,File testCaseReportFile)
{
super(parent, SWT.NONE);
this.testCaseReportFile = testCaseReportFile;
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.horizontalSpacing = 0;
layout.verticalSpacing = 0;
layout.numColumns = 1;
setLayout(layout);
setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
browser = new Browser(this,SWT.NONE);
browser.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
Button backButton = new Button(this, SWT.PUSH);
backButton.setText("Back");
backButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
browser.back();
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
Button forwardButton = new Button(this, SWT.PUSH);
forwardButton.setText("Forward");
forwardButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
browser.forward();
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
browser.forward();
browser.back();
When i tried to use this ..i ma getting compilation error
can any body tell me what i am doing wrong in its constructor..
thanks in advance!!!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03466 seconds