headInline.addStyleName("head_inline");
final PFlowPanel icon = new PFlowPanel();
icon.addStyleName("icon");
final PLabel header = new PLabel(currency);
header.addStyleName("header");
final PAnchor close = new PAnchor();
close.addStyleName("close");
final PHTML buy = new PHTML("<div></div>");
buy.addStyleName("buy");
buy.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent clickEvent) {
PNotificationManager.showHumanizedNotification("Buy clicked!");
}
});
final PLabel buyPipHead = new PLabel("buy");
buyPipHead.addStyleName("buy_pip_head");
final PLabel buyNum = new PLabel("1.22");
buyNum.addStyleName("buy_num");
final PFlowPanel buyPipNum = new PFlowPanel();
buyPipNum.addStyleName("buy_pip_num");
final PElement buyPipNumStrong = new PElement("strong");
final PFlowPanel buyDirection = new PFlowPanel();
buyDirection.addStyleName("buy_direction");
final PHTML sell = new PHTML("<div></div>");
sell.addStyleName("sell");
sell.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent clickEvent) {
PNotificationManager.showHumanizedNotification("Sell clicked!");
}
});
final PLabel sellPipHead = new PLabel("offer");
sellPipHead.addStyleName("sell_pip_head");
final PLabel sellNum = new PLabel("1.45");
sellNum.addStyleName("sell_num");
final PElement sellPipNumStrong = new PElement("strong");
final PFlowPanel sellPipNum = new PFlowPanel();
sellPipNum.addStyleName("sell_pip_num");
final PLabel amtLabel = new PLabel("EUR");
amtLabel.addStyleName("amtlabel");
final PFlowPanel sellDirection = new PFlowPanel();
sellDirection.addStyleName("sell_direction");
final PLabel spread = new PLabel();
spread.addStyleName("spread");
final PTextBox textBox = new PTextBox();
textBox.setStyleName("input");
final PAnchor selector = new PAnchor();
selector.addStyleName("selector");
box.add(background);
box.add(headInline);
headInline.add(icon);
headInline.add(header);