All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.as400.ui.framework.java.TabbedPaneManager
TabbedPaneManager
does not implement the WindowManager
interface, and thus
cannot be used to create a standalone window or dialog. It is designed
to be incorporated in the definition of an existing panel, property sheet
or wizard. Applications normally do not construct TabbedPaneManager
s
directly. Instead, a reference to the TabbedPaneManager
for a particular subpanel is obtained by calling getDelegateManager
on the PaneManager
for the containing panel.
TabbedPaneManager
performs the following processing on behalf
of the application:
PanelManager
instance for each of the panels
specified in the PDML, and attaches them to the tabbed pane.
DataBean
accessor methods
identified in the PDML.
EventHandler
s
specified in the PDML with the appropriate UI components.
The total size of the tabbed pane is a function of the size of the largest panel.
TabbedPaneManager
object for the specified tabbed pane,
and then serializes the tabbed pane definition.
TabbedPaneManager
for the specified tabbed pane,
using the specified container.
TabbedPaneManager
for the specified tabbed pane,
using the specified container.
DataBean
s
which manage the data.
PaneManager
for the receiver.
JavaComponentDescriptor
for the specified user interface component.
PaneManager
to which the receiver is delegating
management of the specified subpane.
PaneManager
for the receiver.
TabbedPaneManager
.
DataBean
s which manage data for the
panel to verify that their data is in a consistent state.
PaneManager
for the receiver.
public TabbedPaneManager(String baseName, String tabbedPaneName, DataBean dataBeans[], Container container) throws DisplayManagerException
TabbedPaneManager
for the specified tabbed pane,
using the specified container.
The default locale will be used to load the tabbed pane definition.
TABBEDPANE
tag in the PDML
DataBean
s which supply data to the tabbed pane (may be null)
public TabbedPaneManager(String baseName, Locale locale, String tabbedPaneName, DataBean dataBeans[], Container container) throws DisplayManagerException
TabbedPaneManager
for the specified tabbed pane,
using the specified container.
TABBEDPANE
tag in the PDML
DataBean
s which supply data to the tabbed pane (may be null)
public TabbedPaneManager(String baseName, Locale locale, String tabbedPaneName) throws DisplayManagerException
TabbedPaneManager
object for the specified tabbed pane,
and then serializes the tabbed pane definition.
This constructor cannot be used to display the tabbed pane.
If a null locale is specified, the default locale will be used to load the tabbed pane definition. If resources for the default locale cannot be found, an attempt will be made to use the base resources for the tabbed pane.
TABBEDPANE
tag in the PDML
public static void main(String args[])
TabbedPaneManager
. See the class description.
public void serialize() throws IOException
<tabbed pane name>_<locale string>.pdml.serwhere
<tabbed pane name>
is the name of the tabbed pane as specified on the TABBEDPANE
tag in the PDML, and <locale string>
consists of the ISO Language Code,
ISO Country Code, and optional variant codes, each delimited by an underscore ("_") character.
public Dimension getPreferredSize()
public String getTitle()
public void loadData()
public void activatePanel()
public void showPane(String paneName)
public Component getComponent(String componentName)
<panel_name>.<component_name>
where panel_name
is the name of the panel containing
the desired component, and component_name
is the
name of the component, as defined in the PDML for the panel definition.
Component
, or null
if the component cannot be found
public JavaComponentDescriptor getComponentDescriptor(String componentName)
JavaComponentDescriptor
for the specified user interface component.
The name of the component must be of the form
<panel_name>.<component_name>
where panel_name
is the name of the panel containing
the desired component, and component_name
is the
name of the component, as defined in the PDML for the panel definition.
JavaComponentDescriptor
, or null
if the descriptor cannot be found
public PaneManager getDelegateManager(String paneName)
PaneManager
to which the receiver is delegating
management of the specified subpane.
PaneManager
, or null
if the object cannot be found
public void setAggregateManager(PaneManager mgr)
PaneManager
for the receiver.
The specified object identifies the PaneManager
to which certain requests should be delegated when this TabbedPaneManager
is participating in an aggregate user interface.
PaneManager
with which the receiver is to be associated
public PaneManager getAggregateManager()
PaneManager
for the receiver.
PaneManager
with which the receiver is associated
when this object is participating in an aggregate user interface, or null
if this PaneManager
is not part of an aggregate.
public PaneManager getRootManager()
PaneManager
for the receiver.
PaneManager
for the main panel that is
managing the aggregate user interface, or null if this PaneManager
is not part of an aggregate.
public void applyChanges() throws IllegalUserDataException
DataBean
s
which manage the data.
Calls the settor methods for all UI components that have
accessor methods associated with them.
This method is called when the pane is about to be closed.
public void prepareToCommit(Vector preparedDataBeans)
DataBean
s which manage data for the
panel to verify that their data is in a consistent state.
Calls the verifyChanges
method for all DataBean
s
associated with the pane.
This method is called when the pane is about to be closed.
DataBean
s which have already
been prepared on the current commit operation
public void commit(Vector committedDataBeans)
commit
method on all DataBean
s
which manage data for the pane.
This method is called when the user indicates a desire to permanently save changes to the data, by clicking an OK button for example.
DataBean
s which have already
been saved on the current commit operation
public void setFormatter(String componentName, DataFormatter formatter, boolean required)
<panel_name>.<component_name>
where panel_name
is the name of the panel containing
the desired component, and component_name
is the
name of the component, as defined in the PDML for the panel definition.
public DataFormatter getFormatter(String componentName)
<panel_name>.<component_name>
where panel_name
is the name of the panel containing
the desired component, and component_name
is the
name of the component, as defined in the PDML for the panel definition.
DataFormatter
, or null
if the component cannot be found
public void setHelpPath(String path)
All Packages Class Hierarchy This Package Previous Next Index