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

E22562-01

oracle.apps.fnd.applcore.dt.patterns.metadata.creator.popup
Class ApplicationsPopupModel

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.metadata.creator.popup.ApplicationsPopupModel

public class ApplicationsPopupModel
extends java.lang.Object

Model object for the applicationsPopup wizard.

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

Constructor Summary
ApplicationsPopupModel(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element applicationsPopup, oracle.adfdt.model.objects.DataControl dataControl, oracle.binding.meta.NamedDefinition definition)
          Construct a model in a data first mentality.
ApplicationsPopupModel(oracle.bali.xml.gui.jdev.JDevXmlContext context, org.w3c.dom.Element applicationsPopup)
          Construct a model in a component first mentality.
 
Method Summary
 void commit()
          Commit all changes to the applicationsPopup Element.
static org.w3c.dom.Element createPopupElement(org.w3c.dom.Document document)
          Create a floating af:popup Element for attaching generated nodes to.
static ApplicationsPopupModel createPopupModel(oracle.adfdt.ADFDesignTimeContext dtContext, oracle.adfdt.model.objects.DataControl dataControl, oracle.binding.meta.NamedDefinition definition, org.w3c.dom.Document document)
          Create a popup model that is ready to use from another wizard/dialog.
 org.w3c.dom.Element getApplicationsPopup()
          Get the applicationsPopup Element.
 oracle.adfdt.ADFDesignTimeContext getDtContext()
          Get the dt context.
 org.w3c.dom.Element getElement()
          Get the Element.
 boolean getEnableRecordNavigation()
          Is record navigation enabled.
 javax.swing.JComponent getGui()
          Get the gui for the ADF widgets.
 java.lang.String getIteratorId()
          Get the iterator Id, this is only valid after a commit() has been done, and the collection committed is from a dataControl (that is there are pageDef entries).
 int getLayoutColumns()
          Get the number of layout columns.
 java.lang.String getNavigationType()
          Get the Record Navigation Type.
 java.lang.String[] getNavTypeOptions()
          Get the navigation type options.
 java.lang.String[] getNavTypeOptionsTL()
          Get the navigation type options.
 java.lang.String getPopupId()
          Get the popupId.
 java.lang.String[] getSlot1EditableOptionsTL()
          Get the slot2 editable options.
 int getSlot1Index()
          Get the selection in slot1.
 java.lang.String[] getSlot1ViewOnlyOptionsTL()
          Get the slot2 view only options.
 int getSlot2Index()
          Get the selection in slot2.
 java.lang.String[] getSlot2OptionsTL()
          Get the slot2 options.
 int getSlotCancelIndex()
          Get the selection in slot Cancel.
 java.lang.String[] getSlotCancelOptionsTL()
          Get the slot Cancel options.
 java.lang.String getTitleIcon()
          Get the title icon.
 boolean getViewOnlyContent()
          Get view only content status.
 java.lang.String getWindowTitle()
          Get the window title.
 void init(org.w3c.dom.Element node)
          Initialize the model from the node by reading attributes etc.
 boolean isComponentFirst()
          Are we in component first mode.
 boolean isRadiosEnabled()
          Are the radio buttons enabled.
 void newCommit()
           
 void setAndDisableViewOnlyContent()
          Set view only content and disable the wigets.
 void setCommitable(boolean commitable)
          Set the commitable flag.
 void setEnableRecordNavigation(boolean enableRecordNavigation)
          Enable recore navigation.
 void setLayoutColumns(int layoutColumns)
          Set the number of layout columns.
 void setNavigationType(java.lang.String navigationType)
          Set the record navigation Type.
 void setPopupId(java.lang.String popupId)
          Set the popupId.
 void setSlot1Index(int slot1Index)
          Set the selection index in slot1.
 void setSlot2Index(int slot2Index)
          Set the selection index in slot2.
 void setSlotCancelIndex(int slotCancelIndex)
          Set the selection index in slot cancel.
 void setTitleIcon(java.lang.String titleIcon)
          Set the title Icon.
 void setViewOnlyContent(boolean viewOnlyContent)
          Set view only content.
 void setWindowTitle(java.lang.String windowTitle)
          Set the window title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationsPopupModel

public ApplicationsPopupModel(oracle.bali.xml.gui.jdev.JDevXmlContext context,
                              org.w3c.dom.Element applicationsPopup)
Construct a model in a component first mentality.

Parameters:
context - xml context
applicationsPopup - popup Element to configure

ApplicationsPopupModel

public ApplicationsPopupModel(oracle.adfdt.ADFDesignTimeContext dtContext,
                              org.w3c.dom.Element applicationsPopup,
                              oracle.adfdt.model.objects.DataControl dataControl,
                              oracle.binding.meta.NamedDefinition definition)
Construct a model in a data first mentality.

Parameters:
dtContext - context
applicationsPopup - popup Element to configure
dataControl - data contol drop was done from
definition - definition dropped
Method Detail

createPopupModel

public static ApplicationsPopupModel createPopupModel(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                      oracle.adfdt.model.objects.DataControl dataControl,
                                                      oracle.binding.meta.NamedDefinition definition,
                                                      org.w3c.dom.Document document)
Create a popup model that is ready to use from another wizard/dialog.

Parameters:
dtContext - design time context
dataControl - data contol drop was done from
definition - definition dropped
document - Dom document adding to
Returns:
A popupModel

getElement

public org.w3c.dom.Element getElement()
Get the Element.

Returns:
element

isComponentFirst

public boolean isComponentFirst()
Are we in component first mode.

Returns:
true if in componennt first mode, false otherwise.

getGui

public javax.swing.JComponent getGui()
Get the gui for the ADF widgets. This will be different based on whether it is component first.

Returns:
a JComponent to show in the panel

commit

public void commit()
            throws java.lang.Exception
Commit all changes to the applicationsPopup Element.

Throws:
java.lang.Exception - if any problem

newCommit

public void newCommit()
               throws java.lang.Exception
Throws:
java.lang.Exception

init

public void init(org.w3c.dom.Element node)
Initialize the model from the node by reading attributes etc.

Parameters:
node - xml node

setPopupId

public void setPopupId(java.lang.String popupId)
Set the popupId.

Parameters:
popupId - the popup id

getPopupId

public java.lang.String getPopupId()
Get the popupId.

Returns:
popup Id

setWindowTitle

public void setWindowTitle(java.lang.String windowTitle)
Set the window title.

Parameters:
windowTitle - the window title

getWindowTitle

public java.lang.String getWindowTitle()
Get the window title.

Returns:
window title

setTitleIcon

public void setTitleIcon(java.lang.String titleIcon)
Set the title Icon.

Parameters:
titleIcon - the title icon

getTitleIcon

public java.lang.String getTitleIcon()
Get the title icon.

Returns:
title icon

setLayoutColumns

public void setLayoutColumns(int layoutColumns)
Set the number of layout columns.

Parameters:
layoutColumns - the number of layout columns

getLayoutColumns

public int getLayoutColumns()
Get the number of layout columns.

Returns:
number of layout columns

setEnableRecordNavigation

public void setEnableRecordNavigation(boolean enableRecordNavigation)
Enable recore navigation.

Parameters:
enableRecordNavigation - whether to enable record navigation.

getEnableRecordNavigation

public boolean getEnableRecordNavigation()
Is record navigation enabled.

Returns:
true if record navigation enabled.

setNavigationType

public void setNavigationType(java.lang.String navigationType)
Set the record navigation Type.

Parameters:
navigationType - the navigation type

getNavigationType

public java.lang.String getNavigationType()
Get the Record Navigation Type.

Returns:
Record Navigation Type.

setAndDisableViewOnlyContent

public void setAndDisableViewOnlyContent()
Set view only content and disable the wigets.


setViewOnlyContent

public void setViewOnlyContent(boolean viewOnlyContent)
Set view only content.

Parameters:
viewOnlyContent - whether content is view only

getViewOnlyContent

public boolean getViewOnlyContent()
Get view only content status.

Returns:
view only content status

setSlotCancelIndex

public void setSlotCancelIndex(int slotCancelIndex)
Set the selection index in slot cancel.

Parameters:
slotCancelIndex - index for slot cancel

getSlotCancelIndex

public int getSlotCancelIndex()
Get the selection in slot Cancel.

Returns:
slot cancel index selection

setSlot1Index

public void setSlot1Index(int slot1Index)
Set the selection index in slot1.

Parameters:
slot1Index - index for slot 1

getSlot1Index

public int getSlot1Index()
Get the selection in slot1.

Returns:
slot1 index selection

setSlot2Index

public void setSlot2Index(int slot2Index)
Set the selection index in slot2.

Parameters:
slot2Index - index for slot 2

getSlot2Index

public int getSlot2Index()
Get the selection in slot2.

Returns:
slot2 index selection

getApplicationsPopup

public org.w3c.dom.Element getApplicationsPopup()
Get the applicationsPopup Element.

Returns:
applicationsPopup Element.

createPopupElement

public static org.w3c.dom.Element createPopupElement(org.w3c.dom.Document document)
Create a floating af:popup Element for attaching generated nodes to.

Parameters:
document - Dom document to add to.
Returns:
a af:popup Element.

getNavTypeOptionsTL

public java.lang.String[] getNavTypeOptionsTL()
Get the navigation type options.

Returns:
array of translated Stings to show.

getNavTypeOptions

public java.lang.String[] getNavTypeOptions()
Get the navigation type options.

Returns:
array of untranslated Stings to show.

getSlotCancelOptionsTL

public java.lang.String[] getSlotCancelOptionsTL()
Get the slot Cancel options.

Returns:
array of translated Stings to show.

getSlot1ViewOnlyOptionsTL

public java.lang.String[] getSlot1ViewOnlyOptionsTL()
Get the slot2 view only options.

Returns:
array of translated Stings to show.

getSlot1EditableOptionsTL

public java.lang.String[] getSlot1EditableOptionsTL()
Get the slot2 editable options.

Returns:
array of translated Stings to show.

getSlot2OptionsTL

public java.lang.String[] getSlot2OptionsTL()
Get the slot2 options.

Returns:
array of translated Stings to show.

isRadiosEnabled

public boolean isRadiosEnabled()
Are the radio buttons enabled.

Returns:
true if enabled.

getDtContext

public oracle.adfdt.ADFDesignTimeContext getDtContext()
Get the dt context.

Returns:
dt context.

getIteratorId

public java.lang.String getIteratorId()
Get the iterator Id, this is only valid after a commit() has been done, and the collection committed is from a dataControl (that is there are pageDef entries).

Returns:

setCommitable

public void setCommitable(boolean commitable)
Set the commitable flag.

Parameters:
commitable - can we commit even if commit() is called.

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.