com.tensegrity.gui.swing.dock.core
Interface CustomTabTitle

All Superinterfaces:
TabEntryProvider

public interface CustomTabTitle
extends TabEntryProvider

Docking framework / Custom tabtitles.

This interface can be implemented for custom tabview titles. An instance of an implementing class can be registered (eg. set) on a TabEntry instance. Whenever the specific TabEntry is shown the interface is notified and used to create the custom UI. Also callbacks exist for focus changes in the nested hierarchy.

Please note that this interface extends the interface TabEntryProvider.

Version:
$Id: CustomTabTitle.java,v 1.2 2005/09/23 09:51:37 sr Exp $
Author:
srutz

Method Summary
 void createControl(javax.swing.JPanel parent, TabPane tabpane, TabEntry entry)
          Creates the control everytime it is required.
 void hideControl()
          Invoked when the tabentry is closed, made inactive, moved or changes its parent tabpane.
 void nestedFocusGained()
          Invoked when the focus is gained by the tabtitle or any components nested inside the tabview while the associated tabentry is active.
 void nestedFocusLost()
          Invoked when the focus is lost by the tabtitle or any components nested inside the tabview while the associated tabentry is active.
 
Methods inherited from interface com.tensegrity.gui.swing.dock.core.TabEntryProvider
getEntry, getTabPane
 

Method Detail

createControl

public void createControl(javax.swing.JPanel parent,
                          TabPane tabpane,
                          TabEntry entry)
Creates the control everytime it is required. This callback is executed each time the tabentry of the tabtitle is made visible.

Parameters:
parent - an empty jpanel with a borderlayout.
tabpane - the current parent TabPane (may change over time, if the entry is docked/moved by DnD).
entry - the associated TabEntry (constant, doesnt change throughout the lifetime of the custom title).

hideControl

public void hideControl()
Invoked when the tabentry is closed, made inactive, moved or changes its parent tabpane.


nestedFocusGained

public void nestedFocusGained()
Invoked when the focus is gained by the tabtitle or any components nested inside the tabview while the associated tabentry is active. Also invoked when the associated tabentry is activated.


nestedFocusLost

public void nestedFocusLost()
Invoked when the focus is lost by the tabtitle or any components nested inside the tabview while the associated tabentry is active. Also invoked when the associated tabentry is inactivated.



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.