public LoggerDetailsPanel( BrowseContainer myDisplay, String name, String fullName, LogTreeNode node) { super(); this.browseContainer = myDisplay; this.name = name; this.fullName = fullName; this.node = node; this.initWidget(display); display.setWidth("100%"); display.setHeight("100%"); display.setVerticalAlignment(DockPanel.ALIGN_TOP); display.setHorizontalAlignment(DockPanel.ALIGN_LEFT); }
public VerticalPanel buildAssignedRolesPanel() { DockPanel headerDockPanel = new DockPanel(); VerticalPanel fieldsetPanel = new VerticalPanel(); Label label = new Label(Messages.getString("assignedRoles")); // $NON-NLS-1$ Label spacer = new Label(""); // $NON-NLS-1$ headerDockPanel.add(label, DockPanel.WEST); headerDockPanel.setCellWidth(label, "100%"); // $NON-NLS-1$ headerDockPanel.add(deleteRoleAssignmentBtn, DockPanel.EAST); VerticalPanel spacer2 = new VerticalPanel(); spacer2.setWidth("2"); // $NON-NLS-1$ headerDockPanel.add(spacer2, DockPanel.EAST); headerDockPanel.add(addRoleAssignmentBtn, DockPanel.EAST); headerDockPanel.add(spacer, DockPanel.WEST); headerDockPanel.setCellWidth(spacer, "100%"); // $NON-NLS-1$ DockPanel assignedRolesPanel = new DockPanel(); assignedRolesPanel.add(headerDockPanel, DockPanel.NORTH); assignedRolesPanel.add(assignedRolesList, DockPanel.CENTER); assignedRolesPanel.setCellHeight(assignedRolesList, "100%"); // $NON-NLS-1$ assignedRolesPanel.setCellWidth(assignedRolesList, "100%"); // $NON-NLS-1$ assignedRolesList.setHeight("100%"); // $NON-NLS-1$ assignedRolesList.setWidth("100%"); // $NON-NLS-1$ assignedRolesList.addChangeListener(this); deleteRoleAssignmentBtn.addClickListener(this); addRoleAssignmentBtn.addClickListener(this); fieldsetPanel.add(assignedRolesPanel); assignedRolesPanel.setWidth("100%"); // $NON-NLS-1$ assignedRolesPanel.setHeight("100%"); // $NON-NLS-1$ return fieldsetPanel; }
public EmailAdminPanel() { dockPanel = new DockPanel(); actionBar = new ActionBar(); FlexTable mainPanel = new FlexTable(); HorizontalPanel hPanel = new HorizontalPanel(); SimplePanel hSpacer = new SimplePanel(); hSpacer.setWidth("10px"); hPanel.add(hSpacer); hPanel.add(new Label(Messages.getString("emailSmtpServer"))); mainPanel.setWidget(0, 0, hPanel); hPanel = new HorizontalPanel(); hSpacer = new SimplePanel(); hSpacer.setWidth("10px"); hPanel.add(hSpacer); hPanel.add(createEmailPanel()); mainPanel.setWidget(1, 0, hPanel); dockPanel.add(mainPanel, DockPanel.CENTER); dockPanel.setCellWidth(mainPanel, "100%"); saveButton = new Button(Messages.getString("save")); progressIndicator = new ProgressIndicatorWidget(saveButton); actionBar.addWidget(progressIndicator, HorizontalPanel.ALIGN_RIGHT); dockPanel.add(actionBar, DockPanel.SOUTH); dockPanel.setCellVerticalAlignment(actionBar, HorizontalPanel.ALIGN_BOTTOM); dockPanel.setCellWidth(actionBar, "100%"); dockPanel.setCellHeight(actionBar, "100%"); setWidget(dockPanel); dockPanel.setHeight("100%"); dockPanel.setWidth("100%"); this.setWidth("100%"); this.setHeight("100%"); if (isIE()) { saveButton.setEnabled(false); } else { actionBar.collapse(1); } }