}
public void install(Component component) {
super.install(component);
TabPane tabPane = (TabPane)component;
// Add this as a listener on the tab pane
tabPane.getTabPaneListeners().add(this);
tabPane.getTabPaneSelectionListeners().add(this);
tabPane.getTabPaneAttributeListeners().add(this);
// Add the tab buttons
tabPane.add(buttonPanorama);
Sequence<Component> tabs = tabPane.getTabs();
int selectedIndex = tabPane.getSelectedIndex();
for (int i = 0, n = tabs.getLength(); i < n; i++) {
Component tab = tabs.get(i);
tab.setVisible(i == selectedIndex);