Hbox hboxSameButtonsHeight = new Hbox();
hboxSameButtonsHeight.setPack("center");
hboxSameButtonsHeight.setParent(toolbarRight);
if (isTimerControl()) {
Button btnTimer = new Button();
btnTimer.setId("btnTimer");
btnTimer.setSclass("oT_ButtonForPanelWithIcon");
btnTimer.setImage("/images/icons/clock1_16x16.gif");
// convert to seconds
int seconds = (int) Math.round(getDelay() / 1000);
if (seconds > 60) {
// convert to minutes and set localization to minutes
int minutes = (int) Math.round((getDelay() / 1000) / 60);
btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + minutes + " " + Labels.getLabel("common.Minutes"));
} else
// set localization to seconds
btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + seconds + " " + Labels.getLabel("common.Seconds"));
btnTimer.addEventListener("onClick", new BtnClickListener());
btnTimer.setParent(hboxSameButtonsHeight);
}
Button btnRefresh = new Button();
btnRefresh.setId("btnSelectYoutubeSong");
btnRefresh.setSclass("oT_ButtonForPanelWithIcon");
btnRefresh.setImage("/images/icons/refresh_green_16x16.gif");
btnRefresh.setTooltiptext(Labels.getLabel("btnRefresh.tooltiptext"));
btnRefresh.addEventListener("onClick", new BtnClickListener());
btnRefresh.setParent(hboxSameButtonsHeight);
// END Buttons Toolbar/Timer
// body
Borderlayout bl = new Borderlayout();
bl.setHeight(getModulHeight() + "px");