* @deprecated
*/
@Deprecated
private Widget makeHeader() {
ToolBar masterPanel = new ToolBar();
//masterPanel.setWidth("100%");
final Label titleLabel = new Label("System Messages", false);
titleLabel.setStylePrimaryName(LogClientBundle.INSTANCE.css().logTitle());
HorizontalPanel buttonPanel = new HorizontalPanel();
levelButtons = new Button[levels.length];
for (int i = 0; i < levels.length; i++) {
final int level = levels[i];
levelButtons[i] = new Button(LogUtil.levelToString(level));
buttonPanel.add(levelButtons[i]);
levelButtons[i].addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
((Button) event.getSource()).setFocus(false);
Log.setCurrentLogLevel(level);
}
});
}
Button clearButton = new Button("Clear");
clearButton.addStyleName(LogClientBundle.INSTANCE.css().logClearButton());
DOM.setStyleAttribute(clearButton.getElement(), "color", "#00c");
clearButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
((Button) event.getSource()).setFocus(false);
Log.clear();
}
});
buttonPanel.add(clearButton);
//masterPanel.add(titleLabel);
masterPanel.add(buttonPanel);
return masterPanel;
}