public class PARActionDetailPage extends PMaintenancePage implements BalanceImpactListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.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, mPagesCurrentCurrency
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 |
---|
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, save
clear, 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, viewDataChange
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, 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 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 itemRemoteException
public PModelHandle getModelHandle() throws RemoteException
PIACustomizablePanel
PModelHandle
for this component.getModelHandle
in interface PComponent
getModelHandle
in class PIACustomizablePanel
PModelHandle
associated with this component.RemoteException
- thrown for errorspublic boolean hasUnsavedChanges()
PMaintenancePage
hasUnsavedChanges
in interface PAccountViewPage
hasUnsavedChanges
in class PMaintenancePage
public String getLabel()
PMaintenancePage
getLabel
in interface PCCPage
getLabel
in class PMaintenancePage
public String getControllerClassName() throws RemoteException
PIACustomizablePanel
getControllerClassName
in interface PComponent
getControllerClassName
in class PIACustomizablePanel
String
.RemoteException
- thrown for errorspublic void addNotify()
addNotify
in class JComponent
public void removeNotify()
removeNotify
in class JComponent
public void balanceImpact(BalanceImpactEvent e)
BalanceImpactListener
balanceImpact
in interface BalanceImpactListener
e
- a BalanceImpactEvent encapsulating the event informationpublic void refresh()
PMaintenancePage
refresh
in interface PAccountViewPage
refresh
in class PMaintenancePage
public void setModelHandle(PModelHandle data)
PIACustomizablePanel
PModelHandle
for this component
and all its descendants.setModelHandle
in interface PComponent
setModelHandle
in class PIACustomizablePanel
data
- 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 PAccountViewPage
primaryToSecondary
in class PMaintenancePage
from
- int, primary currencyto
- int, secondary currencypublic void revertToPrimary(int primary)
revertToPrimary
in interface PAccountViewPage
revertToPrimary
in interface PComponentAttribute
revertToPrimary
in class PMaintenancePage
primary
- int primary currencyprotected PCachedContext getContext() throws RemoteException
RemoteException
protected void changeUIForType()
protected void setFieldDesc() throws RemoteException
RemoteException
protected PModelHandle getDetailModel()
protected PARActionDetailBean getDetailBean()
protected boolean needsToUpdate(PModelHandle data)
Copyright © 2003, 2023, Oracle and/or its affiliates.