|
||||||||||
| 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
net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog
net.sourceforge.openutils.mgnlmedia.media.dialog.DialogSelectMedia
public class DialogSelectMedia
This dialogs draws the control that allows to select a media from repository and store its uuid
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog |
|---|
configuration, uuid |
| 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 | |
|---|---|
DialogSelectMedia()
|
|
| Method Summary | |
|---|---|
protected void |
addToParameters(Map<String,Object> parameters)
|
String |
getFilename(info.magnolia.cms.core.Content media,
info.magnolia.cms.core.NodeData nd)
Filename |
Long |
getHeight()
|
protected info.magnolia.cms.core.Content |
getMedia()
return current media content |
protected info.magnolia.cms.i18n.Messages |
getMessages()
|
protected String |
getPath()
|
String |
getThumbnailUrl(info.magnolia.cms.core.Content media,
info.magnolia.cms.core.NodeData nd)
get thumbnail url |
String |
getValue()
|
Long |
getWidth()
|
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content websiteNode,
info.magnolia.cms.core.Content configNode)
|
protected List<Object> |
readValues()
|
| Methods inherited from class net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog |
|---|
drawHtml, getSubNodes |
| Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox |
|---|
drawHtmlPost, drawHtmlPre, 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, getValues, getWebsiteNode, isRequired, readValue, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialogSelectMedia()
| Method Detail |
|---|
protected List<Object> readValues()
readValues in class info.magnolia.cms.gui.dialog.DialogControlImpl
public void init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content websiteNode,
info.magnolia.cms.core.Content configNode)
throws javax.jcr.RepositoryException
init in interface info.magnolia.cms.gui.dialog.DialogControlinit in class net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialogjavax.jcr.RepositoryExceptionprotected void addToParameters(Map<String,Object> parameters)
addToParameters in class net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialogprotected info.magnolia.cms.i18n.Messages getMessages()
getMessages in class info.magnolia.cms.gui.dialog.DialogControlImplprotected String getPath()
getPath in class net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog
protected info.magnolia.cms.core.Content getMedia()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - exception retrieving media
public String getThumbnailUrl(info.magnolia.cms.core.Content media,
info.magnolia.cms.core.NodeData nd)
media - nd -
public String getValue()
getValue in class info.magnolia.cms.gui.dialog.DialogControlImpl
public String getFilename(info.magnolia.cms.core.Content media,
info.magnolia.cms.core.NodeData nd)
nd - media2 -
public Long getWidth()
public Long getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||