All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.as400.ui.framework.java.SplitPaneManager
SplitPaneManager
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 SplitPaneManager
s
directly. Instead, a reference to the SplitPaneManager
for a particular subpanel is obtained by calling getDelegateManager
on the PaneManager
for the containing panel.
SplitPaneManager
performs the following processing on behalf
of the application:
PanelManager
for each of the panels
specified in the PDML, and attaches them to the split pane.
DataBean
accessor methods
identified in the PDML.
EventHandler
s
specified in the PDML with the appropriate UI components.
The total size of the split pane is a function of the size of the largest panel.
SplitPaneManager
object for the specified split pane,
and then serializes the split pane definition.
SplitPaneManager
for the specified split pane,
using the specified container.
SplitPaneManager
for the specified split 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.
SplitPaneManager
.
DataBean
s which manage data for the
panel to verify that their data is in a consistent state.
PaneManager
for the receiver.
public SplitPaneManager(String baseName, String splitPaneName, DataBean dataBeans[], Container container) throws DisplayManagerException
SplitPaneManager
for the specified split pane,
using the specified container.
The default locale will be used to load the split pane definition.
SPLITPANE
tag in the PDML
DataBean
s which supply data to the split pane (may be null)
public SplitPaneManager(String baseName, Locale locale, String splitPaneName, DataBean dataBeans[], Container container) throws DisplayManagerException
SplitPaneManager
for the specified split pane,
using the specified container.
SPLITPANE
tag in the PDML
DataBean
s which supply data to the split pane (may be null)
public SplitPaneManager(String baseName, Locale locale, String splitPaneName) throws DisplayManagerException
SplitPaneManager
object for the specified split pane,
and then serializes the split pane definition.
This constructor cannot be used to display the split pane.
If a null locale is specified, the default locale will be used to load the split pane definition. If resources for the default locale cannot be found, an attempt will be made to use the base resources for the split pane.
SPLITPANE
tag in the PDML
public static void main(String args[])
SplitPaneManager
. See the class description.
public void serialize() throws IOException
<split pane name>_<locale string>.pdml.serwhere
<split pane name>
is the name of the split pane as specified on the SPLITPANE
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)
SplitPaneManager
's
panes are always visible.
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 SplitPaneManager
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