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