|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler
net.sf.jguiraffe.gui.platform.swing.builder.components.SwingTabbedPaneHandler
class SwingTabbedPaneHandler
A specific component handler implementation that deals with a tabbed pane object.
The data of a tabbed pane is defined as its selected index. This is an integer value. Clients can register itself as change listeners; they are then notified whenever the select index of the tabbed pane changes. Focus listeners are also supported.
| Constructor Summary | |
|---|---|
SwingTabbedPaneHandler(javax.swing.JTabbedPane pane)
Creates a new instance of SwingTabbedPaneHandler and
initializes it with the component to manage. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Returns the data of the managed component. |
javax.swing.JTabbedPane |
getTabbedPane()
Returns the tabbed pane component that is wrapped by this handler. |
java.lang.Class |
getType()
Returns the data type of this handler. |
protected void |
registerChangeListener()
Registers this handler as change listener at the managed component. |
void |
setData(java.lang.Object data)
Sets the data of the managed component. |
void |
stateChanged(javax.swing.event.ChangeEvent event)
This method gets called when the index of the selected tab changes. |
protected void |
unregisterChangeListener()
Unregisteres this handler as change listener from the managed component. |
| Methods inherited from class net.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler |
|---|
addActionListener, addChangeListener, addFocusListener, fireChangeEvent, getComponent, getJComponent, getOuterComponent, isEnabled, removeActionListener, removeChangeListener, removeFocusListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingTabbedPaneHandler(javax.swing.JTabbedPane pane)
SwingTabbedPaneHandler and
initializes it with the component to manage.
pane - the managed tab pane| Method Detail |
|---|
public javax.swing.JTabbedPane getTabbedPane()
public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged in interface javax.swing.event.ChangeListenerevent - the source eventpublic java.lang.Object getData()
getData in interface ComponentHandlerpublic java.lang.Class getType()
Integer object representing the selected index of the tab.
getType in interface ComponentHandlerpublic void setData(java.lang.Object data)
setData in interface ComponentHandlerdata - the data to setprotected void registerChangeListener()
registerChangeListener in class SwingComponentHandlerprotected void unregisterChangeListener()
unregisterChangeListener in class SwingComponentHandlerSwingComponentHandler.registerChangeListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||