Class WindowContentView
All Packages Class Hierarchy This Package Previous Next Index
Class WindowContentView
public class netscape.application.WindowContentView
extends netscape.application.View
{
/* Constructors
*/
public WindowContentView();
public WindowContentView(Rect);
public WindowContentView(int, int, int, int);
/* Methods
*/
public Color backgroundColor(); *Beta API*
public void decode(Decoder);
public void describeClassInfo(ClassInfo);
public void drawView(Graphics);
public void encode(Encoder);
public boolean isTransparent();
public void setBackgroundColor(Color); *Beta API*
public void setTransparent(boolean);
}
View subclass used by an InternalWindow to hold its contents.
Constructors
WindowContentView
public WindowContentView()
- Constructs a WindowContentView with origin (0, 0) and zero width and
height.
WindowContentView
public WindowContentView(Rect rect)
- Convenience constructor for instantiating a WindowContentView with
bounds rect.
WindowContentView
public WindowContentView(int x,
int y,
int width,
int height)
- Convenience constructor for instantiating a WindowContentView with
bounds (x, y, width, height).
Methods
setBackgroundColor
public void setBackgroundColor(Color aColor) *Beta API*
- Sets the background color displayed by the WindowContentView. By
default, this color is Color.lightGray.
backgroundColor
public Color backgroundColor() *Beta API*
- Returns the background color displayed by the WindowContentView.
setTransparent
public void setTransparent(boolean flag)
- Sets the WindowContentView to be transparent or opaque.
isTransparent
public boolean isTransparent()
- Overridden to return true if the WindowContentView is
transparent.
- Overrides:
- isTransparent in class View
- See Also:
- setTransparent
drawView
public void drawView(Graphics g)
- Fills the WindowContentView with its color, unless it or its
InternalWindow is transparent.
- Overrides:
- drawView in class View
describeClassInfo
public void describeClassInfo(ClassInfo info)
- Describes the WindowContentView class' coding information.
- Overrides:
- describeClassInfo in class View
- See Also:
- describeClassInfo
encode
public void encode(Encoder encoder) throws CodingException
- Encodes the WindowContentView.
- Overrides:
- encode in class View
- See Also:
- encode
decode
public void decode(Decoder decoder) throws CodingException
- Decodes the WindowContentView.
- Overrides:
- decode in class View
- See Also:
- decode
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Apr 1997