| net.infonode.tabbedpanel.TabEvent net.infonode.tabbedpanel.TabStateChangedEvent
TabStateChangedEvent | public class TabStateChangedEvent extends TabEvent (Code) | | TabStateChangedEvent is a state changed event. A change could mean that the
selected tab has been deselcted and another tab has been selected.
Example: Tab 1 is the selected tab. The user selects tab 2 and tab 1 will be
deselected. A change event will then be triggered where tab 1 will
be the previous tab (getPreviousTab()) and tab 2 will be the curent
tab (getCurrentTab()).
author: $Author: jesper $ version: $Revision: 1.5 $ See Also: TabListener See Also: TabbedPanel See Also: Tab |
TabStateChangedEvent | public TabStateChangedEvent(Object source, TabbedPanel tabbedPanel, Tab tab, Tab previousTab, Tab currentTab)(Code) | | Constructs a TabStateChangedEvent
Parameters: source - the tabbed panel or tab that is the source for thisevent Parameters: tabbedPanel - the tabbep panel in which the state change occured Parameters: tab - the tab that is effectd by this event Parameters: previousTab - the tab that was previously in this state Parameters: currentTab - the tab that is now in this state |
getCurrentTab | public Tab getCurrentTab()(Code) | | Gets the current Tab
the current Tab after the change or null if no current tab is in thethat state after the change |
getPreviousTab | public Tab getPreviousTab()(Code) | | Gets the previous Tab
the previous Tab before the change or null if no previous tab was inthat state before the change |
getTabbedPanel | public TabbedPanel getTabbedPanel()(Code) | | Gets the TabbedPanel in which the state change occured
the TabbedPanel in which the state change occured |
|
|