Class FoundationPanel
All Packages Class Hierarchy This Package Previous Next Index
Class FoundationPanel
public class netscape.application.FoundationPanel
extends java.awt.Panel
{
/* Constructors
*/
public FoundationPanel();
public FoundationPanel(int, int);
/* Methods
*/
public boolean gotFocus(Event, Object);
public boolean keyDown(Event, int);
public boolean keyUp(Event, int);
public synchronized boolean lostFocus(Event, Object);
public boolean mouseDown(Event, int, int);
public boolean mouseDrag(Event, int, int);
public boolean mouseEnter(Event, int, int);
public boolean mouseExit(Event, int, int);
public boolean mouseMove(Event, int, int);
public boolean mouseUp(Event, int, int);
public void paint(Graphics);
public void reshape(int, int, int, int);
public void resize(int, int);
public RootView rootView();
public void setRootView(RootView);
public void update(Graphics);
}
java.awt.Panel subclass that glues the IFC View-based world to the
AWT component-based world. Each Application has at least one
FoundationPanel instance. If you use ExternalWindows, you'll have an
additional instance per Window. You'll rarely access a FoundationPanel
directly - instead you'll work with an Application or RootView.
- See Also:
- Application, RootView
Constructors
FoundationPanel
public FoundationPanel()
- Constructs a FoundationPanel with a RootView.
FoundationPanel
public FoundationPanel(int width,
int height)
- Constructs a FoundationPanel and RootView of a specified size.
Methods
rootView
public RootView rootView()
- Returns the Panel's RootView, the View that sits at the top
of the View hierarchy.
- See Also:
- RootView
setRootView
public void setRootView(RootView rootView)
- Sets the Panel's RootView.
resize
public void resize(int width,
int height)
- Overridden to resize the RootView when the FoundationPanel changes
size.
- Overrides:
- resize in class Component
reshape
public void reshape(int x,
int y,
int width,
int height)
- Overridden to resize the RootView when the FoundationPanel changes
size.
- Overrides:
- reshape in class Component
update
public void update(Graphics g)
- Updates the Panel. Calls paint().
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Paints the Panel by eventually calling redraw() on the RootView.
- Overrides:
- paint in class Component
mouseDown
public boolean mouseDown(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type MouseEvent.MOUSE_DOWN
to the Application's EventLoop.
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type
MouseEvent.MOUSE_DRAGGED to the Application's EventLoop.
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type MouseEvent.MOUSE_UP to
the Application's EventLoop.
- Overrides:
- mouseUp in class Component
mouseEnter
public boolean mouseEnter(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type
MouseEvent.MOUSE_ENTERED to the Application's EventLoop.
- Overrides:
- mouseEnter in class Component
mouseMove
public boolean mouseMove(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type MouseEvent.MOUSE_MOVED
to the Application's EventLoop.
- Overrides:
- mouseMove in class Component
mouseExit
public boolean mouseExit(Event evt,
int x,
int y)
- Overridden to add a MouseEvent of type MouseEvent.MOUSE_EXITED
to the Application's EventLoop.
- Overrides:
- mouseExit in class Component
keyDown
public boolean keyDown(Event evt,
int key)
- Overridden to add a KeyEvent of type KeyEvent.KEY_DOWN to
the Application's EventLoop.
- Overrides:
- keyDown in class Component
keyUp
public boolean keyUp(Event evt,
int key)
- Overridden to add a KeyEvent of type KeyEvent.KEY_UP to
the Application's EventLoop.
- Overrides:
- keyUp in class Component
lostFocus
public synchronized boolean lostFocus(Event evt,
Object what)
- Overridden to force the focused View to stop editing.
- Overrides:
- lostFocus in class Component
gotFocus
public boolean gotFocus(Event evt,
Object what)
- Overridden to force the focused View to start editing.
- Overrides:
- gotFocus in class Component
All Packages Class Hierarchy This Package Previous Next Index