public class PProductAttributesPanel extends PIACustomizablePanel implements ActionListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
isTracking, mIAList, mImpl, unregList
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PProductAttributesPanel()
constructs the PProductAttributesPanel
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
actionPerformed
|
protected boolean |
areDateFieldsDirty()
This method returns true if any of the validity period section has modified
|
void |
collectDateFieldsData(PCollectDataEvent event)
collects the modified data and updates the model handle
|
protected static Object[] |
decodeDate(int encodedModeUnitOffset)
this method will decode the start_details/end_details to unit and offset
|
protected void |
disableOrEnableAll(JPanel wPanel,
boolean status) |
protected void |
doCycleDiscountInits(boolean hasAmount) |
protected void |
doCycleOverrideInits(boolean override) |
protected void |
doPurchaseDiscountInits(boolean hasAmount) |
protected void |
doPurchaseOverrideInits(boolean override) |
PIADateField |
getCycleStartDateField() |
PIADateField |
getPurchaseStartDateField() |
PIADateField |
getUsageStartDateField() |
protected void |
handleCBoxAction(Object source) |
protected void |
handleRButtonAction(Object source) |
void |
initializeDateValues(PModelHandle pModelHandle) |
protected void |
initProductPurchaseDetailsObjects() |
boolean |
isEndDateConfirmed()
Ask for the confirmation before saving if default end dates are not changed
|
boolean |
isFirstUsage(String wFieldName) |
protected boolean |
isInWizard()
isInWizard
|
protected void |
resizefields() |
void |
setAmountFieldsVisible(boolean b) |
void |
setBackdateData(boolean flag,
Date date)
called by PCustomizeProductsPanel to let this panel know that backdate option is selected/deselected
and the selected back date
|
protected void |
setCurrentTimeToDateCtrl(PCollectDataEvent event) |
void |
setCyclePanelEnabled(boolean b) |
void |
setDealCustomizedFlag(int dealCustomizeFlag) |
void |
setEnabled(boolean isEnabled)
This overriden method checks the following permissions
/customercenter/plans/productdetails/purchase
/customercenter/plans/productdetails/cycle
/customercenter/plans/productdetails/usage
if isEnabled is passed as true and if it is during account maintenance.
|
void |
setIsCustomizableDuringDealPurchase(boolean wIsCustomizableDuringDealPurchase) |
void |
setIsCustomizedProductValidity(boolean b) |
void |
setMultiMonthPanelEnabled(boolean b) |
void |
setMultiMonthPanelVisible(boolean b) |
protected void |
setPurchasePanelEnabled(boolean b) |
void |
setRateFieldsVisible(boolean b) |
void |
setUsageEnabled(boolean b) |
protected void |
updateValidityDatesUI(boolean status) |
void |
validateDates()
Validates dates.
|
void |
validateDiscountOverrideAmounts()
Validates Discount and Override Amounts
|
void |
validateOffsetUnit()
Validates status.
|
void |
validateRangeInProductCustomizationsPanel()
Check if the amount fields of 'Purchase','Cycle' sections of 'Product customizations'
panel exceeds its respective min-max range.
|
protected int |
whichMode(String wFieldName,
PModelHandle wModelHandle) |
clear, collectData, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getControllerClassName, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setModelHandle, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChange
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, 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, 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
add, 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, validateTree
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, 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, transferFocusUpCycle
protected long mCurrentTime
protected PIACustomizablePanel mPurchaseDiscountPanel
protected JRadioButton mRdbPurchaseFU
protected JRadioButton mRdbPurchaseStartRelative
protected JRadioButton mRdbPurchaseEndRelative
protected PIAIntegerField mIntPurReltveStartCycle
protected PIAIntegerField mIntPurchaseRelativeEndOffset
protected PIADefaultChoiceEnumField mCmbPurchaseEndRelativeUnit
protected PIADefaultChoiceEnumField mCmbPurReltveStartUnit
protected JRadioButton mRdbCycleFU
protected JRadioButton mRdbCycleStartRelative
protected JRadioButton mRdbCycleEndRelative
protected PIAIntegerField mIntCylReltveStartCycle
protected PIAIntegerField mIntCycleRelativeEndOffset
protected PIADefaultChoiceEnumField mCmbCycleEndRelativeUnit
protected PIADefaultChoiceEnumField mCmbCylReltveStartUnit
protected JRadioButton mRdbUsageFU
protected JRadioButton mRdbUsageStartRelative
protected JRadioButton mRdbUsageEndRelative
protected PIAIntegerField mIntUsgReltveStartCycle
protected PIAIntegerField mIntUsageRelativeEndOffset
protected PIADefaultChoiceEnumField mCmbUsageEndRelativeUnit
protected PIADefaultChoiceEnumField mCmbUsgReltveStartUnit
protected PIACurrencyField mPurchaseDiscountAmount
protected PIAPercentField mPurchaseDiscountPercent
protected PIACustomizablePanel mPurchaseOverridePanel
protected PIACurrencyField mPurchaseOverrideAmount
protected JCheckBox mPurchaseCBoxNeverCheckBox
protected PIADateField mPurchaseEndDate
protected PIADateField mPurchaseStartDate
protected PIADateField mUsageEndDate
protected JCheckBox mUsageCBoxNeverCheckBox
protected PIADateField mUsageStartDate
protected PIAPercentField mUsageDiscountPercent
protected PIACustomizablePanel mUsageDiscountPanel
protected PIACurrencyField mCycleDiscountAmount
protected PIACurrencyField mCycleOverrideAmount
protected PIADateField mCycleEndDate
protected PIACustomizablePanel mCycleOverridePanel
protected PIAPercentField mCycleDiscountPercent
protected PIACustomizablePanel mCycleDiscountPanel
protected PIADateField mCycleStartDate
protected JCheckBox mCycleCBoxNeverCheckBox
public static final int VALIDITY_FIRST_USAGE
public static final int VALIDITY_RELATIVE
public PProductAttributesPanel()
protected void resizefields()
protected void doPurchaseDiscountInits(boolean hasAmount)
protected void doCycleDiscountInits(boolean hasAmount)
protected void doPurchaseOverrideInits(boolean override)
protected void doCycleOverrideInits(boolean override)
public void setCyclePanelEnabled(boolean b)
public void setUsageEnabled(boolean b)
public void setMultiMonthPanelEnabled(boolean b)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- ActionEventprotected boolean isInWizard()
protected void setCurrentTimeToDateCtrl(PCollectDataEvent event)
public void validateOffsetUnit() throws Exception
Exception
- with error message if failed.public void validateDiscountOverrideAmounts()
public void validateDates() throws Exception
Exception
- with error message if failed.public boolean isEndDateConfirmed()
public void setBackdateData(boolean flag, Date date)
flag
- true if backdate option is selected, false otherwisedate
- selected backdate if backdate option is selected, current date otherwiseprotected void handleRButtonAction(Object source)
protected void handleCBoxAction(Object source)
protected void initProductPurchaseDetailsObjects()
public void setRateFieldsVisible(boolean b)
public void setAmountFieldsVisible(boolean b)
protected void setPurchasePanelEnabled(boolean b)
public void setMultiMonthPanelVisible(boolean b)
public PIADateField getPurchaseStartDateField()
public PIADateField getCycleStartDateField()
public PIADateField getUsageStartDateField()
protected boolean areDateFieldsDirty()
public void collectDateFieldsData(PCollectDataEvent event)
event
- PCollectDataEvent
In case of Absolute and Never Ends date, Unit and Offset should be 0.
In case of First Usage, Unit should be -1 and Offset should be 0
In case of Relative date, Unit and Offset will be same as the user selection.protected static Object[] decodeDate(int encodedModeUnitOffset)
encodedUnitOffset
- Object, encoded relative datepublic void initializeDateValues(PModelHandle pModelHandle) throws RemoteException
RemoteException
protected void updateValidityDatesUI(boolean status)
protected void disableOrEnableAll(JPanel wPanel, boolean status)
public void setIsCustomizedProductValidity(boolean b)
public void setIsCustomizableDuringDealPurchase(boolean wIsCustomizableDuringDealPurchase)
public void setDealCustomizedFlag(int dealCustomizeFlag)
public boolean isFirstUsage(String wFieldName)
protected int whichMode(String wFieldName, PModelHandle wModelHandle)
public void setEnabled(boolean isEnabled)
setEnabled
in class JComponent
boolean
- isEnabled pass true to enable the product attributes, If true passed then
permissions also will be considered.Copyright © 2003, 2023, Oracle and/or its affiliates.