Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.config.ui.wiz
Class SDSurrogatePanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by oracle.jbo.ui.wizard.JboWizardPanel
                      extended by oracle.jbo.dt.ui.main.dlg.DtuWizardPanel
                          extended by oracle.apps.fnd.applseed.config.ui.wiz.SDTreePanel
                              extended by oracle.apps.fnd.applseed.config.ui.wiz.SDSurrogatePanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ListSelectionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener, oracle.jbo.dt.ui.main.tree.TreeDoubleClickListener

public class SDSurrogatePanel
extends SDTreePanel
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener

Class provides the UI and the logic to handle Seed data configuration surrogate attribute requirements. Surrogate attribute for the Views are identified. Sequence Name for the View Objects that have surrogates are identified.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class oracle.jbo.dt.ui.main.dlg.DtuWizardPanel
parentDlg
 
Fields inherited from class oracle.jbo.ui.wizard.JboWizardPanel
accessibleDescription, bCallLeaveOnBack, bEntered, bLeft, helpUrl, panelImage, panelImageIcon, theWizard, wizardPage
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SDSurrogatePanel(SDWizard theWizard)
          Wizard based constructor for surrogate panel.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method handles the Action events.
protected  void addAttribute(oracle.jbo.dt.ui.main.DtuList viewList, oracle.jbo.dt.objects.JboViewAttr qAttr, oracle.jbo.dt.objects.JboEntityUsage usage, int paramIndex, java.util.List attrs, oracle.jbo.dt.objects.JboViewReference voRef)
           
protected  void addButtonAction(SDViewTreeList viewTree, oracle.jbo.dt.ui.main.DtuList attrList)
           
protected  void addEntityAttribute(SDViewTreeList viewTree, int index, boolean allowDuplicates, java.util.List attrs, oracle.jbo.dt.ui.main.DtuList attrList)
           
protected  void addSummaryTreeInfo(oracle.jbo.dt.ui.main.tree.DtuBaseTree summaryTree, javax.swing.tree.MutableTreeNode pageNode)
          Method is used to display summary information in summary panel.
protected  void clearAttrListHighlight()
           
 javax.swing.tree.MutableTreeNode createSummaryTreeNodeOld(oracle.jbo.dt.ui.main.tree.DtuBaseTree st, javax.swing.tree.MutableTreeNode top)
          Method creates node that will be displayed on the summary panel.
protected  void delEntityAttribute(oracle.jbo.dt.ui.main.DtuList attrList, int index, oracle.jbo.dt.objects.JboViewAttr qAttr)
           
protected  void deleteAllButtonAction()
           
protected  void deleteButtonAction(oracle.jbo.dt.ui.main.DtuList attrList)
           
protected  java.lang.String getExtractFieldLabel()
           
 java.lang.String getPanelName()
          Method returns panel name.
protected  java.util.List getSuperUsagesSelected()
           
protected  oracle.jbo.dt.objects.JboViewAttr getViewAttribute(int index)
           
protected  void highlightItems(javax.swing.JList toList, oracle.jbo.dt.ui.main.DtuListModel toModel, java.lang.Object[] selValues)
           
protected  boolean isAttributeTransient(oracle.jbo.dt.objects.JboViewAttr qAttr)
           
protected static boolean isSuperAttr(oracle.jbo.dt.objects.JboAppModule am, oracle.jbo.dt.objects.JboViewAttr attr)
           
protected static boolean isSuperAttr(oracle.jbo.dt.objects.JboView vo, oracle.jbo.dt.objects.JboViewAttr attr)
           
protected  boolean isUsageContained(oracle.jbo.dt.objects.JboEntityUsage usage, java.util.List usages, oracle.jbo.dt.objects.JboView superEO)
           
 void jbInit()
          Initialization of the GUI of the panel done in this method.
 boolean leave(int fromWhere)
          Method handles panel leave event.
 void setListPanel(oracle.jbo.dt.objects.JboAppModule am)
          Sets the values and the attributes of the panel that contains surrogate attribute.
protected  void setOtherValues(oracle.jbo.dt.objects.JboAppModule am)
          Values of the panel other than the tree are set.
protected  void setTree(oracle.jbo.dt.objects.JboAppModule am)
          Values of the panel related to the tree are set.
 void setTreePanel(oracle.jbo.dt.objects.JboAppModule am)
          Sets the values and the attributes of the panel that contains available attributes.
protected  void setView()
          Values of the panel set in this method.
protected  boolean superUsageCheck()
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          List Selection Changed event handler method.
 void valueChanged(javax.swing.event.TreeSelectionEvent treeEvent)
          Method handles tree selection events that happen on the model tree.
protected  void valueChangedAttrListBox()
           
protected  void valueChangedViewAttrTree()
           
 
Methods inherited from class oracle.apps.fnd.applseed.config.ui.wiz.SDTreePanel
doubleClick, enter, expandNodes, getChoiceWidth, getControlPanel, getQueryTree, getxWidth, initTree, setAMSelected, setChoiceWidth, setEntryValues, setInitialValues, setQueryTree, setxWidth, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged
 
Methods inherited from class oracle.jbo.dt.ui.main.dlg.DtuWizardPanel
add, addEnterListener, addSummaryTreeChildStructureNodes, addSummaryTreeList, addSummaryTreeList, createComponentBorder, createComponentBorder, createSummaryTreeNode, enableContainer, getHelpUrl, getLeftPanelImageName, getPanelDialog, getParentDialog, getParentWindow, getParentWindow, getWizard, onClose, setAccessibilityDesc
 
Methods inherited from class oracle.jbo.ui.wizard.JboWizardPanel
addSummaryTreeInfo, createSummaryTreeNode, disable, getAccessibilityDesc, getDefaultFocusControl, getLeftPanelImageObject, getPanelImageLogo, getSimilarWizardClass, getSummaryTreeLabel, getWizard, getWizardPage, help, isBranching, isCallLeaveOnBack, isEntered, isLeft, onCancel, onFinish, setAccessibilityDesc, setEnabled, setHelpUrl, setIsLeft, setWizardPage
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDSurrogatePanel

public SDSurrogatePanel(SDWizard theWizard)
Wizard based constructor for surrogate panel.

Parameters:
theWizard - The wizard that will containe the panel
Method Detail

jbInit

public void jbInit()
            throws java.lang.Exception
Initialization of the GUI of the panel done in this method.

Overrides:
jbInit in class SDTreePanel
Throws:
java.lang.Exception - throws exceptions that occur during panel construction

setView

protected void setView()
Description copied from class: SDTreePanel
Values of the panel set in this method. This gets called everytime the user enters the panel.

Overrides:
setView in class SDTreePanel

leave

public boolean leave(int fromWhere)
Method handles panel leave event.

Overrides:
leave in class oracle.jbo.ui.wizard.JboWizardPanel
Parameters:
fromWhere - identifies the source of the call
Returns:
returns true if the leave method is successful

isUsageContained

protected boolean isUsageContained(oracle.jbo.dt.objects.JboEntityUsage usage,
                                   java.util.List usages,
                                   oracle.jbo.dt.objects.JboView superEO)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method handles the Action events.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - Action event to be handled

isSuperAttr

protected static boolean isSuperAttr(oracle.jbo.dt.objects.JboView vo,
                                     oracle.jbo.dt.objects.JboViewAttr attr)

isSuperAttr

protected static boolean isSuperAttr(oracle.jbo.dt.objects.JboAppModule am,
                                     oracle.jbo.dt.objects.JboViewAttr attr)

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
List Selection Changed event handler method.

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
e - List Selection Event that needs to be handled

valueChangedAttrListBox

protected void valueChangedAttrListBox()

valueChangedViewAttrTree

protected void valueChangedViewAttrTree()

addButtonAction

protected void addButtonAction(SDViewTreeList viewTree,
                               oracle.jbo.dt.ui.main.DtuList attrList)

superUsageCheck

protected boolean superUsageCheck()

getSuperUsagesSelected

protected java.util.List getSuperUsagesSelected()

addEntityAttribute

protected void addEntityAttribute(SDViewTreeList viewTree,
                                  int index,
                                  boolean allowDuplicates,
                                  java.util.List attrs,
                                  oracle.jbo.dt.ui.main.DtuList attrList)

addAttribute

protected void addAttribute(oracle.jbo.dt.ui.main.DtuList viewList,
                            oracle.jbo.dt.objects.JboViewAttr qAttr,
                            oracle.jbo.dt.objects.JboEntityUsage usage,
                            int paramIndex,
                            java.util.List attrs,
                            oracle.jbo.dt.objects.JboViewReference voRef)

clearAttrListHighlight

protected void clearAttrListHighlight()

delEntityAttribute

protected void delEntityAttribute(oracle.jbo.dt.ui.main.DtuList attrList,
                                  int index,
                                  oracle.jbo.dt.objects.JboViewAttr qAttr)

isAttributeTransient

protected boolean isAttributeTransient(oracle.jbo.dt.objects.JboViewAttr qAttr)

getViewAttribute

protected oracle.jbo.dt.objects.JboViewAttr getViewAttribute(int index)

deleteButtonAction

protected void deleteButtonAction(oracle.jbo.dt.ui.main.DtuList attrList)

deleteAllButtonAction

protected void deleteAllButtonAction()

highlightItems

protected void highlightItems(javax.swing.JList toList,
                              oracle.jbo.dt.ui.main.DtuListModel toModel,
                              java.lang.Object[] selValues)

getPanelName

public java.lang.String getPanelName()
Method returns panel name.

Overrides:
getPanelName in class oracle.jbo.ui.wizard.JboWizardPanel
Returns:
name of the panel

setOtherValues

protected void setOtherValues(oracle.jbo.dt.objects.JboAppModule am)
Description copied from class: SDTreePanel
Values of the panel other than the tree are set. This gets called everytime the user enters the panel.

Overrides:
setOtherValues in class SDTreePanel
Parameters:
am - the Application Module that is being edited.

setTree

protected void setTree(oracle.jbo.dt.objects.JboAppModule am)
Description copied from class: SDTreePanel
Values of the panel related to the tree are set. This gets called everytime the user enters the panel.

Specified by:
setTree in class SDTreePanel
Parameters:
am - the Application Module that is being edited.

setTreePanel

public void setTreePanel(oracle.jbo.dt.objects.JboAppModule am)
Sets the values and the attributes of the panel that contains available attributes.

Parameters:
am - Application Module that is being edited

setListPanel

public void setListPanel(oracle.jbo.dt.objects.JboAppModule am)
Sets the values and the attributes of the panel that contains surrogate attribute.

Parameters:
am - Application Module that is being edited

createSummaryTreeNodeOld

public javax.swing.tree.MutableTreeNode createSummaryTreeNodeOld(oracle.jbo.dt.ui.main.tree.DtuBaseTree st,
                                                                 javax.swing.tree.MutableTreeNode top)
Method creates node that will be displayed on the summary panel.

Parameters:
st - summary tree
top - top node of the summary
Returns:
returns node that contains the summary

addSummaryTreeInfo

protected void addSummaryTreeInfo(oracle.jbo.dt.ui.main.tree.DtuBaseTree summaryTree,
                                  javax.swing.tree.MutableTreeNode pageNode)
Method is used to display summary information in summary panel.

Overrides:
addSummaryTreeInfo in class oracle.jbo.dt.ui.main.dlg.DtuWizardPanel
Parameters:
summaryTree - tree summary
pageNode - page node

getExtractFieldLabel

protected java.lang.String getExtractFieldLabel()

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent treeEvent)
Method handles tree selection events that happen on the model tree.

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Overrides:
valueChanged in class SDTreePanel
Parameters:
treeEvent - TreeSelection event that should be handled

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.