/** * Creates a new instance in the provided parent and with the provided * style. * * @param parent * the control parent * @param style * the style to use */ public ScrolledPageBook(Composite parent, int style) { super(parent, style); pageBook = new WrappedPageBook(this, SWT.NULL); setContent(pageBook); pages = new Hashtable<>(); setExpandHorizontal(true); setExpandVertical(true); this.addListener(SWT.Traverse, e -> { switch (e.detail) { case SWT.TRAVERSE_ESCAPE: case SWT.TRAVERSE_RETURN: case SWT.TRAVERSE_TAB_NEXT: case SWT.TRAVERSE_TAB_PREVIOUS: e.doit = true; break; } }); } /**
pageBook = new WrappedPageBook(this, SWT.NULL); setContent(pageBook); pages = new Hashtable<>();