root.setWindow(this);
this.browser = browser;
this.url = url;
lskWidget = new TextWidget(ctrlFont);
rskWidget = new TextWidget(ctrlFont);
statusWidget = new TextWidget(ctrlFont);
lskWidget.setBackgroundColor(SOFTKEY_BG);
rskWidget.setBackgroundColor(SOFTKEY_BG);
lskWidget.setTextColor(0xffffff);
rskWidget.setTextColor(0xffffff);
statusWidget.setBackgroundColor(0x0cccccc);
statusWidget.setTextColor(0);
statusWidget.setBorderColor(0x0888888);
lskWidget.setText("Options");
lskWidget.setAlign(Graphics.LEFT);
if (browser.screenStack.size() != 0) {
rskWidget.setText("Back");
rskWidget.setAlign(Graphics.RIGHT);
} else {
rskWidget.setText("");
}
root.addChild(lskWidget);
root.addChild(rskWidget);
titleWidget = new TextWidget(ctrlFont);
titleWidget.setBackgroundColor(TITLE_BG);
titleWidget.setTextColor(0xffffff);
titleWidget.setText(url);
htmlWidget = new HtmlWidget(browser, url, browser.getElementHandlers(), false);