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

show

  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

hide

  public void hide()
Hides the FontChooser's Window.
See Also:
show

setFont

  public void setFont(Font aFont)
Makes aFont the FontChooser's current font.

font

  public Font font()
Returns the FontChooser's current font.
See Also:
setFont

performCommand

  public void performCommand(String command,
                             Object data)
Performs the commands necessary for the FontChooser to operate. You should never call this method.

setWindow

  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.

window

  public Window window()
Returns the FontChooser's Window.
See Also:
setWindow

contentView

  public View contentView()
Returns the FontChooser's content View.

All Packages  Class Hierarchy  This Package  Previous  Next  Index