public class TabEvent
extends java.util.EventObject
TabListener
.Modifier and Type | Class and Description |
---|---|
static class |
TabEvent.TAB_EVENT_TYPE |
Constructor and Description |
---|
TabEvent(javax.swing.JTabbedPane source,
int index,
TabEvent.TAB_EVENT_TYPE type)
Counstructor.
|
Modifier and Type | Method and Description |
---|---|
TabEvent.TAB_EVENT_TYPE |
getEventType()
Returns the event type this object represents
|
int |
getTabIndex()
Returns the index of the affected tab.
|
public TabEvent(javax.swing.JTabbedPane source, int index, TabEvent.TAB_EVENT_TYPE type)
source
- JTabbedPane that triggered the eventindex
- index of affected tabtype
- event typepublic TabEvent.TAB_EVENT_TYPE getEventType()
public int getTabIndex()