use of de.catma.ui.dialog.HelpWindow in project catma by forTEXT.
the class ResourcePermissionView method initComponents.
private void initComponents() {
HorizontalLayout content = new HorizontalLayout();
content.setSizeFull();
content.setMargin(new MarginInfo(true, false, true, true));
content.setSpacing(false);
setCaption("Resource permissions");
setWidth("85%");
setHeight("90%");
setModal(true);
permissionGrid = TreeGridFactory.createDefaultTreeGrid();
permissionGrid.setSizeFull();
permissionGrid.setRowHeight(45);
permissionGrid.setHeaderVisible(true);
permissionGrid.getEditor().setEnabled(true);
permissionGrid.getEditor().setBuffered(false);
permissionGridComponent = new ActionGridComponent<TreeGrid<Resource>>(new Label("Resource specific permissions"), permissionGrid);
permissionGridComponent.setSizeFull();
permissionGridComponent.setSelectionModeFixed(SelectionMode.SINGLE);
permissionGridComponent.getActionGridBar().setMargin(new MarginInfo(false, false, false, true));
permissionGridComponent.getActionGridBar().setMoreOptionsBtnVisible(false);
content.addComponent(permissionGridComponent);
content.setExpandRatio(permissionGridComponent, 1f);
HelpWindow helpWindow = new HelpWindow("Resource permissions", "<p>The resource permission matrix gives you an overview of the resource specific permissions for each team member.</p>" + "<p>By default it shows team members with changeable resource roles only. But you can add columns for all team members by using the show/hide columns menu in the upper right corner of the table</p>" + "<p>You can change resource specific roles only. Double click on a resource row to set a new resource specific role for a team member. To change Project roles go to the team section of the Project view.</p>" + "<p>Note that higher roles on the Project level cannot be overwritten by lower roles on the resource level. In fact it is not even possible to set lower roles in such cases.</p>");
Button btHelp = helpWindow.createHelpWindowButton();
content.addComponent(btHelp);
content.setComponentAlignment(btHelp, Alignment.TOP_RIGHT);
setContent(content);
}
Aggregations