|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.wizards.BaseWizardPage sk.uniba.euromath.editor.wizards.file.FileSelectorWizardPage
public class FileSelectorWizardPage
Wraps the FileSelector
widget.
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 |
---|
protected FileSelector fs
protected final String preferredExtension
null
. Otherwise, warning is signalised when
file name does not end with this string. The string should start with a
dot.
protected final MessageLevelEnum extLevel
preferredExtension
condition is broken.
protected final Map<FileRequirementsEnum,MessageLevelEnum> flags
protected final FileBrowserEnum browser
Constructor Detail |
---|
public FileSelectorWizardPage(String preferredExtension, MessageLevelEnum extLevel, Map<FileRequirementsEnum,MessageLevelEnum> flags, String title, FileBrowserEnum browser)
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 |
---|
public Control handleCreateControl(Composite parent)
BaseWizardPage
Creates the top level control for this dialog page under the given parent composite.
This method is called only once.
handleCreateControl
in class BaseWizardPage
parent
- the parent composite
protected void validatePage()
public void handleDispose()
BaseWizardPage
handleDispose
in class BaseWizardPage
public FileSelector getFileSelector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |