Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.dt.patterns.metadata.creator.masterdetail
Class ApplicationsMasterDetailPageProvider

java.lang.Object
  extended by oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
      extended by oracle.apps.fnd.applcore.dt.patterns.metadata.creator.masterdetail.ApplicationsMasterDetailPageProvider
All Implemented Interfaces:
java.util.EventListener, oracle.bali.ewt.wizard.WizardListener, oracle.bali.ewt.wizard.WizardValidateListener, oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider

public class ApplicationsMasterDetailPageProvider
extends oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter

Class that acts as a provider for the applicationsMasterDetail wizard. It supplies everything needed for the wizard to run.

Author:
David Groves <david.groves@oracle.com>

Field Summary
 
Fields inherited from interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
PROPERTY_CAN_FINISH, PROPERTY_NEXT_ENABLED
 
Constructor Summary
ApplicationsMasterDetailPageProvider()
          Construct this provide.
ApplicationsMasterDetailPageProvider(ApplicationsMasterDetailWizardModel model)
          Construct this creator.
 
Method Summary
protected  BaseApplicationsMasterDetailWizardPage createPage(int i)
          Create our WizardPage for index i.
 void dispose(boolean finished)
          Dispose this wizard.
 java.util.List<oracle.bali.ewt.wizard.WizardPage> getAdditionalDetailPages()
          Get a List of additional Detail Wizard Pages.
 java.util.List<oracle.bali.ewt.wizard.WizardPage> getAdditionalMasterPages()
          Get a List of additional Master Wizard Pages.
 boolean getCanFinish()
          Can the user finish this wizard?
 oracle.bali.xml.model.XmlContext getContext()
          Get the xmlContext.
protected  int getPageCount()
          Get the number of pages to show.
 oracle.bali.ewt.wizard.WizardPage getWizardPage(int i)
          Get the wizard page at index i (0 based).
 int getWizardPageCount()
          Get the wizard page count.
 java.lang.String getWizardTitle()
          Get the wizard title.
 void initializePages()
          Initialize the pages.
 boolean isFinishPageIncluded()
          Is a finish page to be included?
 void reCreateContent(int pageIndex)
          Recreate the content on the page given by pageIndex.
 void wizardCanceled(oracle.bali.ewt.wizard.WizardEvent wizardEvent)
          Callback when wizard is cancelled.
 void wizardFinished(oracle.bali.ewt.wizard.WizardEvent e)
          Perform action on "Finish" of wizard.
 
Methods inherited from class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
addPropertyChangeListener, firePropertyChange, getNode, getWelcomePage, getWizardListener, getWizardValidateListener, getXmlKey, isCreation, isNextEnabled, removePropertyChangeListener, setCanFinish, setContext, setNextEnabled, wizardApplyState, wizardSelectionChanged, wizardValidatePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationsMasterDetailPageProvider

public ApplicationsMasterDetailPageProvider()
Construct this provide. This default constructor will be called by the creator when called from Jdev infrastructure.


ApplicationsMasterDetailPageProvider

public ApplicationsMasterDetailPageProvider(ApplicationsMasterDetailWizardModel model)
Construct this creator. This constructor will be called by the creator when called by other code that wishs to inject a model pre-populated with rules.

Parameters:
model - pre-populated model object.
Method Detail

getWizardPageCount

public int getWizardPageCount()
Get the wizard page count.

Specified by:
getWizardPageCount in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
getWizardPageCount in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Returns:
number of pages in wizard.

getWizardPage

public oracle.bali.ewt.wizard.WizardPage getWizardPage(int i)
Get the wizard page at index i (0 based).

Specified by:
getWizardPage in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
getWizardPage in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Parameters:
i - zero based index [0 - getWizardPageCount() - 1]
Returns:
relevant wizard page.

dispose

public void dispose(boolean finished)
Dispose this wizard.

Specified by:
dispose in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
dispose in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Parameters:
finished - was the wizard finished

wizardFinished

public void wizardFinished(oracle.bali.ewt.wizard.WizardEvent e)
Perform action on "Finish" of wizard.

Specified by:
wizardFinished in interface oracle.bali.ewt.wizard.WizardListener
Overrides:
wizardFinished in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Parameters:
e - wizard event

isFinishPageIncluded

public boolean isFinishPageIncluded()
Is a finish page to be included?

Specified by:
isFinishPageIncluded in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
isFinishPageIncluded in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Returns:
true if finish page is to be included, false otherwise.

getContext

public oracle.bali.xml.model.XmlContext getContext()
Get the xmlContext.

Overrides:
getContext in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Returns:
xmlContext constructed with.

initializePages

public void initializePages()
Initialize the pages.

Overrides:
initializePages in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter

getPageCount

protected int getPageCount()
Get the number of pages to show.

Returns:
number of pages.

createPage

protected BaseApplicationsMasterDetailWizardPage createPage(int i)
Create our WizardPage for index i.

Parameters:
i - index of page, starts at zero and does not include the welcome or finish pages.
Returns:
relevant wizard page

getWizardTitle

public java.lang.String getWizardTitle()
Get the wizard title.

Specified by:
getWizardTitle in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
getWizardTitle in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Returns:
wizard title

getCanFinish

public boolean getCanFinish()
Can the user finish this wizard?

Specified by:
getCanFinish in interface oracle.bali.xml.gui.swing.wizard.NodeWizardPageProvider
Overrides:
getCanFinish in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Returns:
true in call cases, this wizard can be finished at any time.

reCreateContent

public void reCreateContent(int pageIndex)
Recreate the content on the page given by pageIndex.

Parameters:
pageIndex - 0 based index of page to re-create.

wizardCanceled

public void wizardCanceled(oracle.bali.ewt.wizard.WizardEvent wizardEvent)
Callback when wizard is cancelled. We clobber our model to allow clean restart.

Specified by:
wizardCanceled in interface oracle.bali.ewt.wizard.WizardListener
Overrides:
wizardCanceled in class oracle.bali.xml.gui.swing.wizard.NodeWizardPageAdapter
Parameters:
wizardEvent - event.

getAdditionalMasterPages

public java.util.List<oracle.bali.ewt.wizard.WizardPage> getAdditionalMasterPages()
Get a List of additional Master Wizard Pages. Clients can modify this list. These pages will be added after the MASTER_PAGE.

Returns:
List of additional Master Wizard Pages

getAdditionalDetailPages

public java.util.List<oracle.bali.ewt.wizard.WizardPage> getAdditionalDetailPages()
Get a List of additional Detail Wizard Pages. Clients can modify this list. These pages will be added after the DETAIL_PAGE.

Returns:
List of additional Detail Wizard Pages

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.