issrg.pba.management.manager.gui
Interface TabbedPaneSpecifier


public interface TabbedPaneSpecifier

A tab pane specifier for JTabbedPane.
Any object that implements this interface agrees to supply the component that will be placed, as a tab, in a JTabbedPane.
The object that uses this interface will place the Component returned form getTabbedComponent () in as a tab, then call initialiseTabbedComponent () with the JTabbedPane and the index position of the tab. It may also be an idea to synchronise code block.
this allows the tab to set it self up inside initialiseTabbedComponent

Version:
0.1.2008.01.25
Author:
mfb4@kent.ac.uk

Method Summary
 java.awt.Component getTabbedComponent()
          Get the component that will be a tab in the a JTabbedPane.
 void initialiseTabbedComponent(javax.swing.JTabbedPane tabbedPane, int index)
          Control is handed to this method in order that specific display aspects can be assigned.
 

Method Detail

getTabbedComponent

java.awt.Component getTabbedComponent()
Get the component that will be a tab in the a JTabbedPane.

Returns:
the "component panel" to be placed in a tab

initialiseTabbedComponent

void initialiseTabbedComponent(javax.swing.JTabbedPane tabbedPane,
                               int index)
Control is handed to this method in order that specific display aspects can be assigned.

Parameters:
tabbedPane - The JTabbedPane that contains the "component panel"
index - The index within the JTabbedPane of where the "component panel" resides.