public void init() { setBorderLayout(0, 0); DruActionRelay relay = new DruActionRelay(this); dsp = new DScrollPane(); dsp.setVerticalScrollBarAlways(); addDComponent(dsp, DBorderLayout.CENTER); dlfp = new DruFlowPanel(); bprevious = new DruButton("back"); bprevious.setActionRelay(relay); bnext = new DruButton("next"); bnext.setActionRelay(relay); dlfp.addPanel(bprevious); dlfp.addPanel(bnext); addPanel(dlfp, DBorderLayout.NORTH); htmlPane = new DHTMLPane(); htmlPane.setEditable(false); htmlPane.setDefaultStyleSheet(); dsp.setViewportView(htmlPane); }
// EXTEND need separate handler class to receive requests and deliver pages; Should register // as sucn with htnlPane. public void setPageSupplier(PageSupplier ps) { DruLinkHandler linkHandler = new DruLinkHandler(ps, this); htmlPane.setHyperlinkHandler(linkHandler); }
public void setBg(Color c) { dlfp.setBg(c); htmlPane.setBackground(c); super.setBg(c); }
public void showPage(Page page) { htmlPane.showPage(page); }