use of com.servoy.j2db.util.toolbar.Toolbar in project servoy-client by Servoy.
the class J2DBClient method createToolBars.
protected void createToolBars(SortedList<Toolbar.ToolbarKey> list, Map<String, Action> actions) {
// $NON-NLS-1$ //$NON-NLS-2$
int editPlace = Integer.parseInt(settings.getProperty("toolbar.edit.row", "0"));
// $NON-NLS-1$ //$NON-NLS-2$
int editIndex = Integer.parseInt(settings.getProperty("toolbar.edit.row.index", "0"));
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
boolean editVisible = settings.getProperty("toolbar.edit", "true").equals("true");
// $NON-NLS-1$ //$NON-NLS-2$
int textPlace = Integer.parseInt(settings.getProperty("toolbar.text.row", "0"));
// $NON-NLS-1$ //$NON-NLS-2$
int textIndex = Integer.parseInt(settings.getProperty("toolbar.text.row.index", "1"));
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
boolean textVisible = settings.getProperty("toolbar.text", "true").equals("true");
// $NON-NLS-1$//$NON-NLS-2$
Toolbar browseToolbar = new Toolbar("edit", Messages.getString("servoy.edittoolbar.label"), true);
list.add(new Toolbar.ToolbarKey(editPlace, editIndex, editVisible, browseToolbar));
list.add(new Toolbar.ToolbarKey(textPlace, textIndex, textVisible, new TextToolbar(this, actions)));
}
Aggregations