sk.uniba.euromath.editor.wizards.file
Class FileSelectorWizardPage

java.lang.Object
  extended by sk.uniba.euromath.editor.wizards.BaseWizardPage
      extended by sk.uniba.euromath.editor.wizards.file.FileSelectorWizardPage

public class FileSelectorWizardPage
extends BaseWizardPage

Wraps the FileSelector widget.

Author:
Martin Vysny

Field Summary
protected  FileBrowserEnum browser
          A kind of browser that is displayed when the 'browse' button is clicked.
protected  MessageLevelEnum extLevel
          what kind of validity to signalise when preferredExtension condition is broken.
protected  Map<FileRequirementsEnum,MessageLevelEnum> flags
          maps flags to their message level.
protected  FileSelector fs
          The fileselector.
protected  String preferredExtension
          ignored if null.
 
Fields inherited from class sk.uniba.euromath.editor.wizards.BaseWizardPage
name
 
Constructor Summary
FileSelectorWizardPage(String preferredExtension, MessageLevelEnum extLevel, Map<FileRequirementsEnum,MessageLevelEnum> flags, String title, FileBrowserEnum browser)
          Creates new instance of the page.
 
Method Summary
 FileSelector getFileSelector()
          Returns the file selector widget.
 Control handleCreateControl(Composite parent)
           Creates the top level control for this dialog page under the given parent composite.
 void handleDispose()
          Disposes the resources allocated by this dialog page.
protected  void validatePage()
          Validates the page and shows appropriate error message if necessary.
 
Methods inherited from class sk.uniba.euromath.editor.wizards.BaseWizardPage
getContext, hasErrors, setMessages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fs

protected FileSelector fs
The fileselector.


preferredExtension

protected final String preferredExtension
ignored if null. Otherwise, warning is signalised when file name does not end with this string. The string should start with a dot.


extLevel

protected final MessageLevelEnum extLevel
what kind of validity to signalise when preferredExtension condition is broken.


flags

protected final Map<FileRequirementsEnum,MessageLevelEnum> flags
maps flags to their message level.


browser

protected final FileBrowserEnum browser
A kind of browser that is displayed when the 'browse' button is clicked.

Constructor Detail

FileSelectorWizardPage

public FileSelectorWizardPage(String preferredExtension,
                              MessageLevelEnum extLevel,
                              Map<FileRequirementsEnum,MessageLevelEnum> flags,
                              String title,
                              FileBrowserEnum browser)
Creates new instance of the page.

Parameters:
preferredExtension - ignored if null. Otherwise, warning is signalised when file name does not end with this string. The string should start with a dot.
extLevel - what kind of validity to signalise when preferredExtension condition is broken. If null then no extension check is performed.
flags - maps flags to their message level.
title - the page description, if null then default is used.
browser - a kind of browser that is displayed when the 'browse' button is clicked.
Method Detail

handleCreateControl

public Control handleCreateControl(Composite parent)
Description copied from class: BaseWizardPage

Creates the top level control for this dialog page under the given parent composite.

This method is called only once.

Specified by:
handleCreateControl in class BaseWizardPage
Parameters:
parent - the parent composite
Returns:
the control.

validatePage

protected void validatePage()
Validates the page and shows appropriate error message if necessary.


handleDispose

public void handleDispose()
Description copied from class: BaseWizardPage
Disposes the resources allocated by this dialog page. The control is disposed automatically when this method ends.

Specified by:
handleDispose in class BaseWizardPage

getFileSelector

public FileSelector getFileSelector()
Returns the file selector widget.

Returns:
Returns the fs.


Copyright © 2003-2006 null. All Rights Reserved.