List of usage examples for com.google.gwt.user.client.ui TabBar addTabListener
@Deprecated public void addTabListener(TabListener listener)
From source file:asquare.gwt.tkdemo.client.TabHistoryCoordinator.java
License:Apache License
public TabHistoryCoordinator(HistoryWidgetCollection tabs, TabBar tabPanel, String initialTabToken) { m_tabs = tabs;/* w w w. ja v a 2s . c o m*/ m_tabPanel = tabPanel; int tabIndex = m_tabs.getIndexForToken(initialTabToken); selectTab(tabIndex); tabPanel.addTabListener(this); History.addHistoryListener(this); }
From source file:com.audata.client.record.RecordPropertiesDialog.java
License:Open Source License
public RecordPropertiesDialog(UpdateListener parent, String rType, String record, String checkedOutTo) { this.parent = parent; this.recorduuid = record; this.recordType = rType; this.checkedOutTo = checkedOutTo; this.fields = new ArrayList(); this.properties = new RecordProperties(this, this.checkedOutTo); this.revisions = new Revisions(this.recorduuid); this.main = new VerticalPanel(); TabBar tabs = new TabBar(); tabs.addTab(LANG.props_Text()); tabs.addTab("Revisions"); tabs.addTabListener(this); tabs.selectTab(0);// ww w .ja va2 s . c o m this.main.add(tabs); this.main.add(this.properties); this.main.add(this.revisions); this.revisions.setVisible(false); HorizontalPanel buttonPanel = new HorizontalPanel(); buttonPanel.setSpacing(4); this.okButton = new Button(LANG.ok_Text()); this.okButton.addClickListener(this); buttonPanel.add(this.okButton); this.cancelButton = new Button(LANG.cancel_Text()); this.cancelButton.addClickListener(this); buttonPanel.add(this.cancelButton); this.main.add(buttonPanel); this.addFields(); this.getFields(); this.getRecord(); this.setWidget(this.main); }