|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.magnolia.cms.gui.dialog.DialogControlImpl
info.magnolia.cms.gui.dialog.DialogBox
info.magnolia.cms.gui.dialog.DialogFile
net.sourceforge.openutils.mgnlmedia.media.dialog.DialogFileNoPreview
public class DialogFileNoPreview
Overrides DialogFile and force no preview but the download link.
Renders the list of valid file extensions (specified by "extensions" property) and validates uploaded file against
it.
| Field Summary |
|---|
| Fields inherited from class info.magnolia.cms.gui.dialog.DialogBox |
|---|
BOXTYPE_1COL, BOXTYPE_2COLS |
| Fields inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
|---|
DEFAULT_VALUE_PROPERTY, SESSION_ATTRIBUTENAME_DIALOGOBJECT, SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE, VALIDATION_PATTERN_PROPERTY, value |
| Constructor Summary | |
|---|---|
DialogFileNoPreview()
|
|
| Method Summary | |
|---|---|
void |
drawHtml(Writer out)
|
void |
drawHtmlPre(Writer out)
|
protected String |
getFileURI(info.magnolia.cms.gui.control.File control)
Get the uri of the file (used to show images) |
protected info.magnolia.cms.i18n.Messages |
getMessages()
|
void |
initImageExtensions()
|
boolean |
validate()
|
protected void |
writeInnerHtml(Writer out,
boolean showImage,
info.magnolia.cms.gui.control.File control,
StringBuffer htmlControlFileName,
String link)
|
| Methods inherited from class info.magnolia.cms.gui.dialog.DialogFile |
|---|
getFileControl, getHtmlControlFileName, getImageExtensions, getLink, init, setImageExtensions |
| Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox |
|---|
drawHtmlPost, getBoxType, getHtmlDescription, setBoxType |
| Methods inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
|---|
addOption, addSub, clearWebsiteNode, drawHtmlPostSubs, drawHtmlPreSubs, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialogFileNoPreview()
| Method Detail |
|---|
public void initImageExtensions()
initImageExtensions in class info.magnolia.cms.gui.dialog.DialogFile
public void drawHtml(Writer out)
throws IOException
drawHtml in interface info.magnolia.cms.gui.dialog.DialogControldrawHtml in class info.magnolia.cms.gui.dialog.DialogFileIOException
public void drawHtmlPre(Writer out)
throws IOException
drawHtmlPre in class info.magnolia.cms.gui.dialog.DialogBoxIOExceptionpublic boolean validate()
validate in class info.magnolia.cms.gui.dialog.DialogFileprotected info.magnolia.cms.i18n.Messages getMessages()
getMessages in class info.magnolia.cms.gui.dialog.DialogControlImpl
protected void writeInnerHtml(Writer out,
boolean showImage,
info.magnolia.cms.gui.control.File control,
StringBuffer htmlControlFileName,
String link)
throws IOException
writeInnerHtml in class info.magnolia.cms.gui.dialog.DialogFileIOExceptionprotected String getFileURI(info.magnolia.cms.gui.control.File control)
getFileURI in class info.magnolia.cms.gui.dialog.DialogFilecontrol -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||