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 int
Constant used to decrease a component's sizestatic final int
Constant used to increase a component to its maximum size.static final int
Constant used to decrease a component to its minimum size.static final int
Constant used to increase a component's sizestatic final int
Constant used to return a component to its normal size. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActions
(Vector tools) Adds a vector ofPBASAction
from the application menu, toolbar, or both.void
Adds aPContextChangedListener
.void
changeSize
(Component comp, int spaceNeeded) Changes the size of a component to the size specified in the parameter.boolean
Fires aPContextChangedEvent
.void
Ensures that a panel is shown, then gives it focus.Gets the current application name.void
removeActions
(Vector tools) Removes a vector ofPBASAction
from the application menu, toolbar, or both.void
Removes aPContextChangedListener
.void
setOverlay
(Component comp) Overlays a component on top of the current (primary) application panel.void
Sets 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 ofPBASAction
from the application menu, toolbar, or both.- Parameters:
tools
- aVector
ofPBASAction
objects
-
removeActions
Removes a vector ofPBASAction
from the application menu, toolbar, or both.- Parameters:
tools
- aVector
ofPBASAction
objects
-
getAppName
String getAppName()Gets the current application name.- Returns:
- A
String
that 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
- aPContextChangedEvent
event- Returns:
- False for an
okToExit
event, true otherwise.
-