KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lobobrowser > html > HtmlObject


1 package org.lobobrowser.html;
2
3 import java.awt.*;
4
5 /**
6  * This interface should be implemented to provide
7  * OBJECT, EMBED or APPLET functionality.
8  */

9 public interface HtmlObject {
10     public Component getComponent();
11     public void suspend();
12     public void resume();
13     public void destroy();
14     
15     /**
16      * Called as the object is layed out, either
17      * the first time it's layed out or whenever
18      * the DOM changes. This is where the object
19      * should reset its state based on element
20      * children or attributes and possibly change
21      * its preferred size if appropriate.
22      */

23     public void reset(int availableWidth, int availableHeight);
24 }
25
Popular Tags