info.magnolia.module.cropui
Class CropAndResizeControl

java.lang.Object
  extended by info.magnolia.cms.gui.dialog.DialogControlImpl
      extended by info.magnolia.cms.gui.dialog.DialogBox
          extended by info.magnolia.module.cropui.CropAndResizeControl
All Implemented Interfaces:
info.magnolia.cms.gui.dialog.DialogControl

public class CropAndResizeControl
extends info.magnolia.cms.gui.dialog.DialogBox

A control that's related to another control (named with fileControlName) and opens an edit window.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

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
CropAndResizeControl()
           
 
Method Summary
 void drawHtml(Writer out)
           
 info.magnolia.cms.core.Content getConfigNode()
           
static String getCropperInfoPropertyName(String fileControlName)
           
static String getTargetBinaryPropertyName(String fileControlName)
           
 void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content websiteNode, info.magnolia.cms.core.Content configNode)
           
 
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, getMessages, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropAndResizeControl

public CropAndResizeControl()
Method Detail

init

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
Specified by:
init in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
init in class info.magnolia.cms.gui.dialog.DialogControlImpl
Throws:
javax.jcr.RepositoryException

getConfigNode

public info.magnolia.cms.core.Content getConfigNode()

drawHtml

public void drawHtml(Writer out)
              throws IOException
Specified by:
drawHtml in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
drawHtml in class info.magnolia.cms.gui.dialog.DialogControlImpl
Throws:
IOException

getCropperInfoPropertyName

public static String getCropperInfoPropertyName(String fileControlName)

getTargetBinaryPropertyName

public static String getTargetBinaryPropertyName(String fileControlName)


Copyright © 2015 Magnolia International Ltd.. All rights reserved.