info.magnolia.cms.gui.control
Class File

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.File
All Implemented Interfaces:
Control

public class File
extends ControlImpl

Version:
2.0
Author:
Vinzenz Wyser

Field Summary
static String REMOVE
           
 
Fields inherited from class info.magnolia.cms.gui.control.ControlImpl
BUTTONSTATE_DISABLED, BUTTONSTATE_MOUSEDOWN, BUTTONSTATE_MOUSEOVER, BUTTONSTATE_NORMAL, BUTTONSTATE_PUSHED, BUTTONTYPE_CHECKBOX, BUTTONTYPE_PUSHBUTTON, BUTTONTYPE_RADIO, CSSCLASS_CONTROLBAR, CSSCLASS_CONTROLBARSMALL, CSSCLASS_CONTROLBUTTON, CSSCLASS_CONTROLBUTTONSMALL, ENCODING_BASE64, ENCODING_NO, ENCODING_UNIX, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
File(String name, Content content)
           
File(String name, String value)
           
 
Method Summary
 String getCssClassFileName()
           
 String getExtension()
           
 String getFileName()
           
 String getHandle()
           
 String getHtml()
          Returns an empty string.
 String getHtmlBrowse()
           
 String getHtmlCssClassFileName()
           
 String getHtmlFileName()
           
 String getHtmlNodeDataTemplate()
           
 String getHtmlRemove()
           
 String getHtmlRemove(String additionalOnclick)
           
 String getImageHeight()
           
 String getImageWidth()
           
 String getNodeDataTemplate()
           
 String getPath()
           
protected  NodeData getPropertyNode()
           
protected  String getPropertyString(String propertyName)
          Read a property from content node, check nulls.
 void setCssClassFileName(String s)
           
 void setNodeDataTemplate(String s)
           
 
Methods inherited from class info.magnolia.cms.gui.control.ControlImpl
escapeHTML, getCssClass, getCssStyles, getCssStyles, getCssStyles, getEncoding, getEvents, getHtmlCssClass, getHtmlCssStyles, getHtmlEvents, getHtmlId, getHtmlInter, getHtmlInter, getHtmlPost, getHtmlPost, getHtmlPre, getHtmlPre, getHtmlSaveInfo, getId, getIsRichEditValue, getLabel, getName, getNodeCollectionName, getNodeCollectionName, getNodeName, getNodeName, getRequest, getSaveInfo, getType, getValue, getValues, getValueType, getWebsiteNode, println, setCssClass, setCssStyles, setCssStyles, setEncoding, setEvent, setEvent, setEvents, setHtmlInter, setHtmlPost, setHtmlPre, setId, setIsRichEditValue, setLabel, setName, setNodeCollectionName, setNodeName, setPath, setRequest, setSaveInfo, setType, setType, setValue, setValues, setValueType, setWebsiteNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE

public static final String REMOVE
See Also:
Constant Field Values
Constructor Detail

File

public File(String name,
            String value)
Parameters:
name -
value -

File

public File(String name,
            Content content)
Parameters:
name -
content -
Method Detail

setCssClassFileName

public void setCssClassFileName(String s)

getCssClassFileName

public String getCssClassFileName()

getHtmlCssClassFileName

public String getHtmlCssClassFileName()

getHtml

public String getHtml()
Description copied from class: ControlImpl
Returns an empty string.

Specified by:
getHtml in interface Control
Overrides:
getHtml in class ControlImpl
Returns:
html
See Also:
Control.getHtml()

getHtmlBrowse

public String getHtmlBrowse()

getFileName

public String getFileName()

getImageWidth

public String getImageWidth()

getImageHeight

public String getImageHeight()

setNodeDataTemplate

public void setNodeDataTemplate(String s)

getNodeDataTemplate

public String getNodeDataTemplate()

getExtension

public String getExtension()

getHtmlFileName

public String getHtmlFileName()

getHtmlNodeDataTemplate

public String getHtmlNodeDataTemplate()

getHtmlRemove

public String getHtmlRemove()

getHtmlRemove

public String getHtmlRemove(String additionalOnclick)

getHandle

public String getHandle()

getPath

public String getPath()
Overrides:
getPath in class ControlImpl

getPropertyString

protected String getPropertyString(String propertyName)
Read a property from content node, check nulls.

Parameters:
propertyName - node data name
Returns:
property string, "" if not found
Throws:
javax.jcr.RepositoryException

getPropertyNode

protected NodeData getPropertyNode()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.