Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


Class UIFontDialog

public class UIFontDialog extends UIDialog
{
  // Constructors
  public UIFontDialog(UIFrame parent);
  public UIFontDialog(UIFrame parent, String[] fontStringList);

  // Methods
  public FxFont getFxFont();
  public boolean handleEvent(Event event);
  public void setFxFont(FxFont font);
}

This class displays a dialog window from which the user can select a font. It is a modal dialog window, engaged by calling the show method. The application blocks until the user has chosen a font.

Also see com.ms.ui.UIDialog.show

UIComponent
  |
  +--UIContainer
    |
    +--UIStateContainer
      |
      +--UIPanel
        |
        +--UIRoot
          |
          +--UIWindow
            |
            +--UIDialog
              |
              +--UIFontDialog

Constructors

UIFontDialog

public UIFontDialog(UIFrame parent);

Creates a font dialog box for selecting a font.

ParameterDescription
parent The owner of the dialog box.

UIFontDialog

public UIFontDialog(UIFrame parent, String[] fontStringList);

Creates a font dialog box for choosing a font.

ParameterDescription
parent The owner of the dialog box.
fontStringList A string array of fonts to be displayed.

Methods

getFxFont

public FxFont getFxFont();

Gets the selected font of this font dialog box.

Return Value:

Returns the currently selected FxFont of this font dialog; returns null if no font is selected.

See Also: setFxFont

handleEvent

public boolean handleEvent(Event event);

Responds to events occurring within the control.

Return Value:

Returns true if the event was handled; otherwise, returns false.

ParameterDescription
event The event.

Overrides:

handleEvent(Event) in UIDialog.

setFxFont

public void setFxFont(FxFont font);

Sets the initial default font for this font dialog to be the FxFont.

Comments:
If no font is specified, the default initial font will be 12-point Dialog.

Return Value:

No return value.

ParameterDescription
font The FxFont being set.

See Also: getFxFont

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.