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.| Modifier and Type | Field and Description |
|---|---|
static int |
LESSSPACE
Constant used to decrease a component's size
|
static int |
MAXIMIZE
Constant used to increase a component to its maximum size.
|
static int |
MINIMIZE
Constant used to decrease a component to its minimum size.
|
static int |
MORESPACE
Constant used to increase a component's size
|
static int |
NORMALIZE
Constant used to return a component to its normal size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActions(Vector tools)
Adds a vector of
PBASAction from the application menu, toolbar, or both. |
void |
addContextChangedListener(PContextChangedListener l)
Adds a
PContextChangedListener. |
void |
changeSize(Component comp,
int spaceNeeded)
Changes the size of a component to the size specified in the parameter.
|
boolean |
fireContextChangedEvent(PContextChangedEvent event)
Fires a
PContextChangedEvent. |
void |
focusOn(Component comp)
Ensures that a panel is shown, then gives it focus.
|
String |
getAppName()
Gets the current application name.
|
void |
removeActions(Vector tools)
Removes a vector of
PBASAction from the application menu, toolbar, or both. |
void |
removeContextChangedListener(PContextChangedListener l)
Removes a
PContextChangedListener. |
void |
setOverlay(Component comp)
Overlays a component on top of the current (primary) application panel.
|
void |
setStatus(String status)
Sets the string, if any, to display in the status bar.
|
static final int NORMALIZE
static final int MAXIMIZE
static final int MINIMIZE
static final int MORESPACE
static final int LESSSPACE
void setOverlay(Component comp)
comp - the component to add to the applicationvoid changeSize(Component comp, int spaceNeeded)
comp - the component to changespaceNeeded - a constant that describes how to change the
component's sizevoid setStatus(String status)
status - the new status textvoid addActions(Vector tools)
PBASAction from the application menu, toolbar, or both.tools - a Vector of PBASAction objectsvoid removeActions(Vector tools)
PBASAction from the application menu, toolbar, or both.tools - a Vector of PBASAction objectsString getAppName()
String that contains the application's name.void focusOn(Component comp)
comp - the component that gets focusvoid addContextChangedListener(PContextChangedListener l)
PContextChangedListener.l - a PContextChangedListenervoid removeContextChangedListener(PContextChangedListener l)
PContextChangedListener.l - a PContextChangedListenerboolean fireContextChangedEvent(PContextChangedEvent event)
PContextChangedEvent.event - a PContextChangedEvent eventokToExit event, true otherwise.Copyright © 2003, 2023, Oracle and/or its affiliates.