public class PARActionDetailPage extends PMaintenancePage implements BalanceImpactListener
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected static int |
AMOUNT_COLUMN_INDEX |
protected int[] |
appliedToColumnIndices |
protected String[] |
appliedToColumnTags |
protected PModelHandle |
currentModel |
protected static int |
DATE_COLUMN_INDEX |
protected static int |
DESCRIPTION_COLUMN_INDEX
User could change the values of the four constants if necessary, for
example, make
DESCRIPTION_COLUMN_INDEX to 3 and
DATE_COLUMN_INDEX to 0; other code doesn't need to be
changed. |
protected PARActionDetailBean |
detailBean |
protected PModelHandle |
detailModel |
protected static int |
ITEMS_AFFECTED_COLUMN_INDEX |
protected boolean |
mbNeedsRefresh |
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 |
|---|
PARActionDetailPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify() |
void |
balanceImpact(BalanceImpactEvent e)
Called when an event is sent out that impacts the balance
|
protected void |
changeUIForType()
Sets label text according to the A/R action type.
|
protected PCachedContext |
getContext() |
String |
getControllerClassName()
Retrieves the class name of this component's controller, in this case, null.
|
protected PARActionDetailBean |
getDetailBean() |
protected PModelHandle |
getDetailModel() |
String |
getLabel()
Retrieves the localizable tag that can be displayed in a breadcrumb
trail to represent this component.
This implementation returns an empty string by default. This is a no-op in this class. |
PModelHandle |
getModelHandle()
Retrieves the
PModelHandle for this component. |
protected String |
getResourceString(String name) |
boolean |
hasUnsavedChanges()
Determines if the user has made changes to the data on this page
and not committed them to Portal yet.
This implementation defaults to calling isDirty() in the base class. |
protected boolean |
needsToUpdate(PModelHandle data) |
void |
primaryToSecondary(int from,
int to)
converts the table data from primary currency to secondary currency
|
void |
refresh()
Called when the page should be immediately refreshed - typically
as a result of the Reset action being invoked by the user.
|
void |
removeNotify() |
void |
revertToPrimary(int primary)
converts the data from secondary currency to primary currency
|
protected void |
setFieldDesc() |
void |
setModelHandle(PModelHandle data)
Establishes the
PModelHandle for this component
and all its descendants. |
protected void |
setRealModelHandle(PModelHandle data)
Given the A/R action item, calls the controller to get the real model.
|
static void |
switchTo(PModelHandle data)
Static method for other pages to show the A/R action details.
|
dataNeedsRefresh, enteringPage, getDisplayedCurrency, isValidContext, recycle, resetUnsavedChanges, saveclear, collectData, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, 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 PModelHandle currentModel
protected static final int DESCRIPTION_COLUMN_INDEX
DESCRIPTION_COLUMN_INDEX to 3 and
DATE_COLUMN_INDEX to 0; other code doesn't need to be
changed.protected static final int ITEMS_AFFECTED_COLUMN_INDEX
protected static final int AMOUNT_COLUMN_INDEX
protected static final int DATE_COLUMN_INDEX
protected final int[] appliedToColumnIndices
protected final String[] appliedToColumnTags
protected PModelHandle detailModel
protected PARActionDetailBean detailBean
protected boolean mbNeedsRefresh
public static void switchTo(PModelHandle data) throws RemoteException
data - a PModelHandle value specifying the A/R action itemRemoteExceptionpublic PModelHandle getModelHandle() throws RemoteException
PIACustomizablePanelPModelHandle for this component.getModelHandle in interface PComponentgetModelHandle in class PIACustomizablePanelPModelHandle
associated with this component.RemoteException - thrown for errorspublic boolean hasUnsavedChanges()
PMaintenancePagehasUnsavedChanges in interface PAccountViewPagehasUnsavedChanges in class PMaintenancePagepublic String getLabel()
PMaintenancePagegetLabel in interface PCCPagegetLabel in class PMaintenancePagepublic String getControllerClassName() throws RemoteException
PIACustomizablePanelgetControllerClassName in interface PComponentgetControllerClassName in class PIACustomizablePanelString.RemoteException - thrown for errorspublic void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void balanceImpact(BalanceImpactEvent e)
BalanceImpactListenerbalanceImpact in interface BalanceImpactListenere - a BalanceImpactEvent encapsulating the event informationpublic void refresh()
PMaintenancePagerefresh in interface PAccountViewPagerefresh in class PMaintenancePagepublic void setModelHandle(PModelHandle data)
PIACustomizablePanelPModelHandle for this component
and all its descendants.setModelHandle in interface PComponentsetModelHandle in class PIACustomizablePaneldata - the new PModelHandle
from which to extract informationprotected void setRealModelHandle(PModelHandle data)
appliedToSheet will be different
since the model is complex for the PIASpecSpreadSheet component to show,
a Vector will be extracted from the model for the component.data - a PModelHandle value specifying the A/R action
itempublic void primaryToSecondary(int from,
int to)
primaryToSecondary in interface PAccountViewPageprimaryToSecondary in class PMaintenancePagefrom - int, primary currencyto - int, secondary currencypublic void revertToPrimary(int primary)
revertToPrimary in interface PAccountViewPagerevertToPrimary in interface PComponentAttributerevertToPrimary in class PMaintenancePageprimary - int primary currencyprotected PCachedContext getContext() throws RemoteException
RemoteExceptionprotected void changeUIForType()
protected void setFieldDesc()
throws RemoteException
RemoteExceptionprotected PModelHandle getDetailModel()
protected PARActionDetailBean getDetailBean()
protected boolean needsToUpdate(PModelHandle data)
Copyright © 2003, 2023, Oracle and/or its affiliates.