public WalrusInfoTable(String sessionId) { this.sessionId = sessionId; this.setStyleName("euca-config-component"); this.setSpacing(2); this.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); // this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); Label walrusesHeader = new Label("Walrus Configuration:"); walrusesHeader.setStyleName("euca-section-header"); this.add(walrusesHeader); this.noWalrusesLabel.setText("No Walrus hosts registered"); this.noWalrusesLabel.setStyleName("euca-greeting-disabled"); HorizontalPanel grid_and_hint = new HorizontalPanel(); grid_and_hint.add(this.grid); grid_and_hint.add(this.hint); this.hint.setWidth("100"); this.add(grid_and_hint); HorizontalPanel hpanel = new HorizontalPanel(); hpanel.setSpacing(2); hpanel.add(add_button); hpanel.add(new EucaButton("Save Walrus configuration", new SaveCallback(this))); hpanel.add(this.statusLabel); // this.statusLabel.setWidth ("250"); this.statusLabel.setText(""); this.statusLabel.setStyleName("euca-greeting-pending"); this.add(hpanel); rebuildTable(); EucalyptusWebBackend.App.getInstance() .getWalrusList(this.sessionId, new GetWalrusListCallback(this)); }
public void onClick(ClickEvent event) { this.parent.statusLabel.setText("Saving..."); this.parent.statusLabel.setStyleName("euca-greeting-pending"); EucalyptusWebBackend.App.getInstance() .setWalrusList(this.parent.sessionId, this.parent.walrusList, this); }