    All Packages    This Package    Previous    Next

# Class browser.AppletDisplayItem

    java.lang.Object
       |
       +----browser.Observable
               |
               +----awt.DisplayItem
                       |
                       +----browser.AppletDisplayItem

public class AppletDisplayItem
extends DisplayItem
implements Alignable

Class AppletDisplayItem is created as a place holder for all applets that appear in hotjava-aware html document.

Version:
  1.19, 20 Mar 1995
Author:
  Arthur van Hoff

##

CREATED
DEFAULT_SIZE
DESTROYED
ERROR
INITIALIZING
LOADED
LOADING
STARTED
STOPPED

##

AppletDisplayItem(DisplayItemWindow, URL, TagRef)
  Creates an applet display item, if possible use the width/height attributes to resize to the proper initiali size.

##

destroy()
  Destroy the applet
getAlign()
  Get alignment for formatting.
getStatus()
  Get the status of the applet.
gotFocus()
  Got focus
init()
  Initialize the applet.
keyPressed(int)
  KeyPressed
load()
  Load the applet
lostFocus()
  Lost focus
paint(Window, int, int)
  Paint the applet, after damage.
paint(Graphics)
  Paint the applet, given a graphics context.
start()
  Start the applet
stop()
  Stop the applet
trackEnter(Event)
  Mouse enter
trackExit(Event)
  Mouse exit
trackMotion(Event)
  Mouse move
trackStart(Event)
  Mouse down
trackStop(Event)
  Mouse up
update(Window, int, int)
  Paint the applet, after damage.
update(Graphics)
  Paint the applet, given a graphics context.

##

CREATED

      public final static int CREATED

LOADING

      public final static int LOADING

LOADED

      public final static int LOADED

INITIALIZING

      public final static int INITIALIZING

STARTED

      public final static int STARTED

STOPPED

      public final static int STOPPED

DESTROYED

      public final static int DESTROYED

ERROR

      public final static int ERROR

DEFAULT_SIZE

      public final static int DEFAULT_SIZE

##

AppletDisplayItem

      public AppletDisplayItem(DisplayItemWindow parent,
                               URL documentURL,
                               TagRef tag)

  Creates an applet display item, if possible use the width/height attributes to resize to the proper initiali size.

##

getStatus

      public final int getStatus()

  Get the status of the applet.

getAlign

      public int getAlign()

  Get alignment for formatting.

load

      public void load()

  Load the applet

init

      public void init()

  Initialize the applet. This should be called after the parent of the display item is set. The font will be the default font of the applet.

start

      public void start()

  Start the applet

stop

      public void stop()

  Stop the applet

destroy

      public void destroy()

  Destroy the applet

paint

      public void paint(Window w,
                        int x,
                        int y)

  Paint the applet, after damage.
  Overrides:
    paint in class DisplayItem

update

      public void update(Window w,
                         int x,
                         int y)

  Paint the applet, after damage.
  Overrides:
    update in class DisplayItem

paint

      public void paint(Graphics g)

  Paint the applet, given a graphics context.

update

      public void update(Graphics g)

  Paint the applet, given a graphics context.

trackStart

      public void trackStart(Event e)

  Mouse down
  Overrides:
    trackStart in class DisplayItem

trackMotion

      public void trackMotion(Event e)

  Mouse move
  Overrides:
    trackMotion in class DisplayItem

trackStop

      public void trackStop(Event e)

  Mouse up
  Overrides:
    trackStop in class DisplayItem

trackEnter

      public void trackEnter(Event e)

  Mouse enter
  Overrides:
    trackEnter in class DisplayItem

trackExit

      public void trackExit(Event e)

  Mouse exit
  Overrides:
    trackExit in class DisplayItem

gotFocus

      public void gotFocus()

  Got focus
  Overrides:
    gotFocus in class DisplayItem

lostFocus

      public void lostFocus()

  Lost focus
  Overrides:
    lostFocus in class DisplayItem

keyPressed

      public void keyPressed(int key)

  KeyPressed
  Overrides:
    keyPressed in class DisplayItem

    All Packages    This Package    Previous    Next