if (!displayFlags.isHidePrint()) {
toolbar.add(print);
toolbar.add(new SeparatorToolItem());
}
hideEmptyCells = new ToggleToolItem();
hideEmptyCells.setId(HIDE_EMPTY_BTN);
hideEmptyCells.setIconStyle("ten-icons-hideEmpty");
hideEmptyCells.addListener(Events.Select, this);
hideEmptyCells.setToolTip(constants.hideEmpty());
toolbar.add(hideEmptyCells);
reverseColumns = new ToggleToolItem();
reverseColumns.setId(REVERSE_COLS_BTN);
reverseColumns.setIconStyle("ten-icons-reverseCols");
reverseColumns.setToolTip(constants.reverseColumns());
reverseColumns.addListener(Events.Select, this);
toolbar.add(reverseColumns);
// ~
reverseRows = new ToggleToolItem();
reverseRows.setId(REVERSE_ROWS_BTN);
reverseRows.setIconStyle("ten-icons-reverseRows");
reverseRows.addListener(Events.Select, this);
reverseRows.setToolTip(constants.reverseRows());
toolbar.add(reverseRows);
showRules = new ToggleToolItem();
showRules.setId(SHOW_RULES_BTN);
showRules.setIconStyle("ten-icons-viewRules");
showRules.setToolTip(constants.markRules());
showRules.addListener(Events.Select, this);
toolbar.add(showRules);