|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.file.FileFieldView
public class FileFieldView
Presentation helper for file fields.
| Constructor Summary | |
|---|---|
FileFieldView(AbstractFileField field,
Prompt prompt)
Constructs an FileFieldView. |
|
| Method Summary | |
|---|---|
protected void |
emptyPathMessage()
Displays a warning message if the path is empty. |
protected void |
error(String title,
String message)
Displays an error message. |
AbstractFileField |
getField()
Returns the field. |
protected String |
getMessage(String id)
Returns a localised message for the supplied message identifier. |
protected Prompt |
getPrompt()
Returns the prompt. |
protected boolean |
validate(File value)
Validates a value. |
boolean |
validate(String path)
Validates a path. |
protected void |
warn(String title,
String message)
Displays a warning message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileFieldView(AbstractFileField field,
Prompt prompt)
FileFieldView.
field - the fieldprompt - the prompt| Method Detail |
|---|
public AbstractFileField getField()
public boolean validate(String path)
path - the path to validate
true if the path is valid, false if it is invalidprotected Prompt getPrompt()
protected String getMessage(String id)
id - the message identifier
id if the message does not existprotected boolean validate(File value)
value - the value to validate
true if the value is valid, false if it is invalidprotected void emptyPathMessage()
protected void warn(String title,
String message)
title - the warning titlemessage - the warning message
protected void error(String title,
String message)
title - the error titlemessage - the error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||