public class PProductDetailsPanel extends PMaintenancePage implements ActionListener, PropertyChangeListener, StatusChangeListener, ServiceChangeListener
public class MyBillPanel extends PProductDetailsPanel {
public MyBillPanel() {
PIACustomizablePanel p = new PIACustomizablePanel();
p.setLayout(new GridBagLayout());
p.add(new JLabel("One"), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
new Insets(10, 5, 0, 0), 0, 0));
p.add(new JLabel("Two"), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
new Insets(10, 5, 0, 0), 0, 0));
p.add(new JTextField(10), new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
new Insets(10, 5, 0, 0), 0, 0));
p.add(new JTextField(10), new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
new Insets(10, 5, 0, 0), 0, 0));
setCustomData(p);
}
}
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected PDropDown |
mAdvancedCustomizationMenu |
protected PIACustomizablePanel |
mChangeStatusPanel |
protected PIATextAreaField |
mComments |
protected JLabel |
mCommentsLabel |
protected PIAScrollPane |
mCommentsScrollPane |
protected PIACustomizablePanel |
mDetailsPanel |
protected JLabel |
mInactiveStatusLabel |
protected PProductAttributesPanel |
mProductAttributePanel |
protected PIANumberField |
mQuantity |
protected JLabel |
mQuantityLabel |
mNeedsRefresh, mPagesCurrentCurrencyisTracking, mIAList, mImpl, unregListIMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImagelistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PProductDetailsPanel()
Creates a new product details display panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event) |
void |
addElementToFlist(FList parent,
ArrayField field,
FList value,
int index)
Adding element to parent FList.
|
void |
addNotify()
Overridden to apply the font style to the header label, and the correct
look and feel color to the components in the header Also, it retrieves
currency value which has just became available
|
void |
collectData(PCollectDataEvent event)
Overrides
PCollectDataListener. |
void |
enteringPage()
This frame work method will be called right after a page is made visible
via a drilldown.
|
PProductAttributesPanel |
getAttributesPanel() |
String |
getControllerClassName()
Gets the class name for this class's controller
|
FList |
getPurchaseDealInputFlist()
Return the FList for the base products which has customized products.
|
boolean |
isDirty()
Determines if any descendant is marked DIRTY in its current context.
|
boolean |
isSwitchable()
Checks for valid data entries.
|
protected void |
leavingPage()
This is used during deal purchase.
|
void |
localCollectData(PCollectDataEvent event)
collects current product changes
This implementation calls super.collectData() and also
collects data about Status, Dates, Discount and override fields
|
protected void |
preCommit(PModelHandle pm)
Affords subclasses the opportunity to inspect the data that is about to
be committed to Portal.
|
void |
propertyChange(PropertyChangeEvent event) |
void |
recycle()
Used to make this page available for reuse.
|
void |
refresh()
When we have customized products, the refresh should happen with the base product
not with any customized product as the base product is the prime model for this panel.
|
void |
removeNotify() |
void |
resetPurchaseDealCustomized()
This gets called if the wizard operation is cancelled during deal purchase or wizard operation is finished.
|
void |
save()
This is crucial method for saving base product+customized product.
|
protected void |
selectPreviousSelectedRow()
This is introduced during deal purchase.
|
void |
serviceChange(ServiceChangeEvent e)
Event handler for ServiceChangeEvent.
|
void |
setAdvancedCustomizationDuringDealPurchase(boolean wIsAdvancedCustomization)
This gets called during deal purchase.
|
protected void |
setCustomData(PIACustomizablePanel p) |
void |
setDealPermissionFlag(int flag)
Accepts an int value for deal level customizability permission associated
with this product
|
void |
setDealsPurchaseProduct(int wRealIndex,
PModelHandle pModelHandle)
Applicable during deal purchase.
|
void |
setEnabled(boolean b)
Overrides super class' method.
|
void |
setIsCustomizeProductsPageVisited(boolean isVisited)
This method is used to set whether 'Customize Products' page is visited or not.
|
void |
setModelHandle(PModelHandle pm)
Accepts a PModelHandle of a product to be displayed May be followed by a
setDealPermissionFlag(int) call to further indicate whether the product
has deal level permission for editing
|
protected void |
setProductStatus(boolean enable)
Use this method to enable/disable the product_status_combo(mProductStatus) and
inactive_flags_panel(mChangeStatusFlagsPanel).
|
void |
setProductStatusEnabled(boolean b) |
void |
setSponsorshipData(SponsorshipData[] sData,
ArrayList sProd)
Sets the sponsorship information for the panel.
|
void |
setVisible(boolean wFlag) |
void |
statusChange(StatusChangeEvent e)
Event handler for StatusChagneEvent.
|
dataNeedsRefresh, getDisplayedCurrency, getLabel, hasUnsavedChanges, isValidContext, primaryToSecondary, resetUnsavedChanges, revertToPrimaryclear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChangegetBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcongetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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, unregisterKeyboardAction, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, 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, transferFocusBackward, transferFocusUpCycleprotected PIACustomizablePanel mDetailsPanel
protected JLabel mQuantityLabel
protected PIANumberField mQuantity
protected PIACustomizablePanel mChangeStatusPanel
protected JLabel mInactiveStatusLabel
protected JLabel mCommentsLabel
protected PIAScrollPane mCommentsScrollPane
protected PIATextAreaField mComments
protected PProductAttributesPanel mProductAttributePanel
protected PDropDown mAdvancedCustomizationMenu
public PProductDetailsPanel()
public void setSponsorshipData(SponsorshipData[] sData, ArrayList sProd)
sData - an array of sponsor group informationsProd - a list of sponsored productspublic boolean isDirty()
PIACustomizablePanelisDirty in interface PComponentAttributeisDirty in class PIACustomizablePanelpublic void recycle()
PMaintenancePagerecycle in interface PCCPagerecycle in class PMaintenancePagepublic void collectData(PCollectDataEvent event)
PIACustomizablePanelPCollectDataListener. Forwarded to all
contained GUIComponents that are also PCollectDataListeners.collectData in interface PCollectDataListenercollectData in class PIACustomizablePanelevent - the PCollectDataEvent eventpublic void setAdvancedCustomizationDuringDealPurchase(boolean wIsAdvancedCustomization)
wIsAdvancedCustomization - public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void statusChange(StatusChangeEvent e)
statusChange in interface StatusChangeListenere - a StatusChangeEventpublic void serviceChange(ServiceChangeEvent e)
serviceChange in interface ServiceChangeListenere - a StatusChangeEventpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle in interface PComponentsetModelHandle in class PIACustomizablePanelpm - Model handle for the productRemoteException - thrown for errorspublic void setDealPermissionFlag(int flag)
throws RemoteException
flag - int value for Optional, Required or Prohibited permission
levelRemoteExceptionpublic boolean isSwitchable()
public void refresh()
refresh in interface PAccountViewPagerefresh in class PMaintenancePagepublic void save()
throws PSaveException
save in interface PAccountViewPagesave in class PMaintenancePagePSaveExceptionpublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentgetControllerClassName in class PIACustomizablePanelRemoteException - thrown for errorspublic void setEnabled(boolean b)
setEnabled in class JComponentpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void setProductStatusEnabled(boolean b)
protected void preCommit(PModelHandle pm) throws PSaveException
PSaveExceptionpublic void enteringPage()
enteringPage in interface PCCPageenteringPage in class PMaintenancePageprotected void selectPreviousSelectedRow()
public void setIsCustomizeProductsPageVisited(boolean isVisited)
isVisited - protected void leavingPage()
protected void setCustomData(PIACustomizablePanel p)
public void localCollectData(PCollectDataEvent event) throws RemoteException
The - collect data eventRemoteExceptionprotected void setProductStatus(boolean enable)
public PProductAttributesPanel getAttributesPanel()
public void setDealsPurchaseProduct(int wRealIndex,
PModelHandle pModelHandle)
wRealIndex - pModelHandle - public void resetPurchaseDealCustomized()
public FList getPurchaseDealInputFlist()
public void addElementToFlist(FList parent, ArrayField field, FList value, int index)
parent - field - value - index - public void setVisible(boolean wFlag)
setVisible in class JComponentCopyright © 2003, 2023, Oracle and/or its affiliates.