Class FontChooser
All Packages Class Hierarchy This Package Previous Next Index
Class FontChooser
public class netscape.application.FontChooser
extends java.lang.Object
implements netscape.application.Target
{
/* Constructors
*/
public FontChooser();
/* Methods
*/
public View contentView();
public Font font();
public void hide();
public void performCommand(String, Object);
public void setFont(Font);
public void setWindow(Window);
public void show();
public Window window();
}
Object subclass creating a View with controls for selecting a Font.
The Set button sends the command ExtendedTarget.SET_FONT to the first
target in the Target Chain that can perform the command. The FontChooser
can be added to the View hierarchy, or given a Window to display itself
in, using the setWindow() method.
- See Also:
- showFontChooser, ExtendedTarget
Constructors
.FontChooser
public FontChooser()
- Constructs a FontChooser.
Methods
public void show()
- If the FontChooser is in a Window, makes the Window visible. You must
have first set the FontChooser's Window using its setWindow()
method.
- See Also:
- setWindow, showFontChooser
public void hide()
- Hides the FontChooser's Window.
- See Also:
- show
public void setFont(Font aFont)
- Makes aFont the FontChooser's current font.
public Font font()
- Returns the FontChooser's current font.
- See Also:
- setFont
public void performCommand(String command,
Object data)
- Performs the commands necessary for the FontChooser to operate. You
should never call this method.
public void setWindow(Window aWindow)
- Places the FontChooser in the Window aWindow. This method sizes
aWindow to the minimum size necessary to display the
FontChooser, as well as makes aWindow closable and sets its
title.
public Window window()
- Returns the FontChooser's Window.
- See Also:
- setWindow
public View contentView()
- Returns the FontChooser's content View.
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 Oct 1997