All Implemented Interfaces:
PAccountViewPage
, PCCPage
, BalanceImpactListener
, PAppComponent
, PClientComponent
, PCollectDataListener
, PComponent
, PComponentAttribute
, PViewDataChangeListener
, ContainerListener
, ImageObserver
, MenuContainer
, Serializable
, EventListener
, Accessible
Direct Known Subclasses:
PARActionAdjustDetailPage
, PARActionRefundDetailPage
, PARActionWriteoffDetailPage
, PARPaymentDetailPage
A/R action (adjustment/writeoff/refund) detail page. This class has three
subclasses for each action type: PARActionAdjustDetailPage for adjustment,
PARActionWriteoffDetailPage for writoeff, and PARActionRefundDetailPage for
refund.
Version:
%version: 20 % %date_modified: Wed Nov 21 10:02:17 2001 %
Author:
simonw
See Also:
Field Summary
Fields
protected static final int
protected final int[]
protected static final int
protected static final int
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 static final int
protected boolean
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
void
void
Called when an event is sent out that impacts the balance
protected void
Sets label text according to the A/R action type.
Retrieves the class name of this component's controller, in this case, null.
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.
boolean
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
void
converts the table data from primary currency to secondary currency
void
Called when the page should be immediately refreshed - typically
as a result of the Reset action being invoked by the user.
void
void
converts the data from secondary currency to primary currency
protected void
void
Establishes the
PModelHandle
for this component
and all its descendants.
protected void
Given the A/R action item, calls the controller to get the real model.
static void
Static method for other pages to show the A/R action details.
Methods inherited from class com.portal.bas.comp.PIACustomizablePanel
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
Methods inherited from class javax.swing.JComponent
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
Methods inherited from class java.awt.Container
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
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 , 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 , requestFocus , requestFocus , requestFocusInWindow , resize , resize , setBounds , setBounds , setComponentOrientation , setCursor , setDropTarget , setFocusable , setFocusTraversalKeysEnabled , setIgnoreRepaint , setLocale , setLocation , setLocation , setMixingCutoutShape , setName , setSize , setSize , show , show , size , toString , transferFocus , transferFocusBackward , transferFocusUpCycle
Field Details
DESCRIPTION_COLUMN_INDEX
protected static final 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.
See Also:
ITEMS_AFFECTED_COLUMN_INDEX
protected static final int ITEMS_AFFECTED_COLUMN_INDEX
See Also:
AMOUNT_COLUMN_INDEX
protected static final int AMOUNT_COLUMN_INDEX
See Also:
DATE_COLUMN_INDEX
protected static final int DATE_COLUMN_INDEX
See Also:
appliedToColumnIndices
protected final int[] appliedToColumnIndices
mbNeedsRefresh
protected boolean mbNeedsRefresh
Constructor Details
PARActionDetailPage
public PARActionDetailPage ()
Method Details
switchTo
Static method for other pages to show the A/R action details.
Parameters:
data
- a PModelHandle
value specifying the A/R action item
Throws:
RemoteException
hasUnsavedChanges
public 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.
Specified by:
hasUnsavedChanges
in interface PAccountViewPage
Overrides:
hasUnsavedChanges
in class PMaintenancePage
Returns:
true if this page contains unsaved changes; false otherwise
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. Subclasses should override this
Specified by:
getLabel
in interface PCCPage
Overrides:
getLabel
in class PMaintenancePage
Returns:
The tag that will be displayed in the breadcrumb trail to
reference this component.
balanceImpact
Called when an event is sent out that impacts the balance
Specified by:
balanceImpact
in interface BalanceImpactListener
Parameters:
e
- a BalanceImpactEvent encapsulating the event information
refresh
public void refresh ()
Called when the page should be immediately refreshed - typically
as a result of the Reset action being invoked by the user.
Specified by:
refresh
in interface PAccountViewPage
Overrides:
refresh
in class PMaintenancePage
setRealModelHandle
Given the A/R action item, calls the controller to get the real model.
Setting data for 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.
Parameters:
data
- a PModelHandle
value specifying the A/R action
item
getContext
Throws:
RemoteException
changeUIForType
protected void changeUIForType ()
Sets label text according to the A/R action type.