home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- import netscape.util.ClassInfo;
- import netscape.util.Codable;
- import netscape.util.CodingException;
- import netscape.util.Decoder;
- import netscape.util.Encoder;
-
- public abstract class TextAttachment implements Codable {
- private TextView _owner;
- private int _width;
- private int _height;
- private boolean _visible = false;
- static final String OWNER_KEY = "owner";
- static final String WIDTH_KEY = "width";
- static final String HEIGHT_KEY = "height";
-
- public void TextAttachment() {
- this._owner = null;
- this._width = this._height = 0;
- }
-
- public void setOwner(TextView var1) {
- this._owner = var1;
- }
-
- public TextView owner() {
- return this._owner;
- }
-
- public void setWidth(int var1) {
- this._width = var1;
- }
-
- public int width() {
- return this._width;
- }
-
- public void setHeight(int var1) {
- this._height = var1;
- }
-
- public int height() {
- return this._height;
- }
-
- public void drawInRect(Graphics var1, Rect var2) {
- }
-
- public boolean mouseDown(MouseEvent var1) {
- return false;
- }
-
- public void mouseDragged(MouseEvent var1) {
- }
-
- public void mouseUp(MouseEvent var1) {
- }
-
- public void willBecomeVisibleWithBounds(Rect var1) {
- }
-
- public void boundsDidChange(Rect var1) {
- }
-
- public void willBecomeInvisible() {
- }
-
- public void describeClassInfo(ClassInfo var1) {
- var1.addClass("netscape.application.TextAttachment", 1);
- var1.addField("owner", (byte)18);
- var1.addField("width", (byte)8);
- var1.addField("height", (byte)8);
- }
-
- public void encode(Encoder var1) throws CodingException {
- var1.encodeObject("owner", this._owner);
- var1.encodeInt("width", this._width);
- var1.encodeInt("height", this._height);
- }
-
- public void decode(Decoder var1) throws CodingException {
- this._owner = (TextView)var1.decodeObject("owner");
- this._width = var1.decodeInt("width");
- this._height = var1.decodeInt("height");
- }
-
- public void finishDecoding() throws CodingException {
- }
-
- void _willShowWithBounds(Rect var1) {
- if (this._visible) {
- this.boundsDidChange(var1);
- } else {
- this.willBecomeVisibleWithBounds(var1);
- this._visible = true;
- }
- }
-
- void _willHide() {
- this.willBecomeInvisible();
- this._visible = false;
- }
- }
-