Package com.portal.bas
Interface PAppContext
- All Known Subinterfaces:
CustomerCenterContext,PAccountCreationWizardContext,PCustomerCenterContext,PPurchaseOfferingWizardContext,PValidatingWizardContext
- All Known Implementing Classes:
PAccountCreationWizard,PCustomerCenterInternals,PPurchaseOfferingWizard,PValidatingWizard
public interface PAppContext
PAppContext is an interface that provides an entry point for specific panels to
request global application services. All application and applet main panels
must implement this interface.- Version:
- 2
- Author:
- Larry Lynch-Freshner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant used to decrease a component's sizestatic final intConstant used to increase a component to its maximum size.static final intConstant used to decrease a component to its minimum size.static final intConstant used to increase a component's sizestatic final intConstant used to return a component to its normal size. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActions(Vector tools) Adds a vector ofPBASActionfrom the application menu, toolbar, or both.voidAdds aPContextChangedListener.voidchangeSize(Component comp, int spaceNeeded) Changes the size of a component to the size specified in the parameter.booleanFires aPContextChangedEvent.voidEnsures that a panel is shown, then gives it focus.Gets the current application name.voidremoveActions(Vector tools) Removes a vector ofPBASActionfrom the application menu, toolbar, or both.voidRemoves aPContextChangedListener.voidsetOverlay(Component comp) Overlays a component on top of the current (primary) application panel.voidSets the string, if any, to display in the status bar.
-
Field Details
-
NORMALIZE
static final int NORMALIZEConstant used to return a component to its normal size.- See Also:
-
MAXIMIZE
static final int MAXIMIZEConstant used to increase a component to its maximum size.- See Also:
-
MINIMIZE
static final int MINIMIZEConstant used to decrease a component to its minimum size.- See Also:
-
MORESPACE
static final int MORESPACEConstant used to increase a component's size- See Also:
-
LESSSPACE
static final int LESSSPACEConstant used to decrease a component's size- See Also:
-
-
Method Details
-
setOverlay
Overlays a component on top of the current (primary) application panel.- Parameters:
comp- the component to add to the application
-
changeSize
Changes the size of a component to the size specified in the parameter.- Parameters:
comp- the component to changespaceNeeded- a constant that describes how to change the component's size
-
setStatus
Sets the string, if any, to display in the status bar.- Parameters:
status- the new status text
-
addActions
Adds a vector ofPBASActionfrom the application menu, toolbar, or both.- Parameters:
tools- aVectorofPBASActionobjects
-
removeActions
Removes a vector ofPBASActionfrom the application menu, toolbar, or both.- Parameters:
tools- aVectorofPBASActionobjects
-
getAppName
String getAppName()Gets the current application name.- Returns:
- A
Stringthat contains the application's name.
-
focusOn
Ensures that a panel is shown, then gives it focus.- Parameters:
comp- the component that gets focus
-
addContextChangedListener
Adds aPContextChangedListener.- Parameters:
l- aPContextChangedListener
-
removeContextChangedListener
Removes aPContextChangedListener.- Parameters:
l- aPContextChangedListener
-
fireContextChangedEvent
Fires aPContextChangedEvent.- Parameters:
event- aPContextChangedEventevent- Returns:
- False for an
okToExitevent, true otherwise.
-