info.magnolia.cms.gui.control
Class ControlImpl
java.lang.Object
info.magnolia.cms.gui.control.ControlImpl
- All Implemented Interfaces:
- Control
- Direct Known Subclasses:
- Bar, Button, ButtonSet, ContextMenu, ContextMenuItem, Edit, File, FreemarkerControl, Hidden, Password, Radio, Select, SelectOption, Tree, TreeColumn
public class ControlImpl
- extends java.lang.Object
- implements Control
- Version:
- 2.0
- Author:
- Vinzenz Wyser
Constructor Summary |
ControlImpl()
|
ControlImpl(java.lang.String name,
info.magnolia.cms.core.Content websiteNode)
|
ControlImpl(java.lang.String name,
java.util.List values)
|
ControlImpl(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUTTONTYPE_PUSHBUTTON
public static final int BUTTONTYPE_PUSHBUTTON
- See Also:
- Constant Field Values
BUTTONTYPE_CHECKBOX
public static final int BUTTONTYPE_CHECKBOX
- See Also:
- Constant Field Values
BUTTONTYPE_RADIO
public static final int BUTTONTYPE_RADIO
- See Also:
- Constant Field Values
BUTTONSTATE_NORMAL
public static final int BUTTONSTATE_NORMAL
- See Also:
- Constant Field Values
BUTTONSTATE_MOUSEOVER
public static final int BUTTONSTATE_MOUSEOVER
- See Also:
- Constant Field Values
BUTTONSTATE_MOUSEDOWN
public static final int BUTTONSTATE_MOUSEDOWN
- See Also:
- Constant Field Values
BUTTONSTATE_PUSHED
public static final int BUTTONSTATE_PUSHED
- See Also:
- Constant Field Values
BUTTONSTATE_DISABLED
public static final int BUTTONSTATE_DISABLED
- See Also:
- Constant Field Values
VALUETYPE_SINGLE
public static final int VALUETYPE_SINGLE
- See Also:
- Constant Field Values
VALUETYPE_MULTIPLE
public static final int VALUETYPE_MULTIPLE
- See Also:
- Constant Field Values
ENCODING_NO
public static final int ENCODING_NO
- See Also:
- Constant Field Values
ENCODING_BASE64
public static final int ENCODING_BASE64
- See Also:
- Constant Field Values
ENCODING_UNIX
public static final int ENCODING_UNIX
- See Also:
- Constant Field Values
RICHEDIT_NONE
public static final int RICHEDIT_NONE
- See Also:
- Constant Field Values
RICHEDIT_KUPU
public static final int RICHEDIT_KUPU
- See Also:
- Constant Field Values
RICHEDIT_FCK
public static final int RICHEDIT_FCK
- See Also:
- Constant Field Values
CSSCLASS_CONTROLBUTTON
public static final java.lang.String CSSCLASS_CONTROLBUTTON
- See Also:
- Constant Field Values
CSSCLASS_CONTROLBUTTONSMALL
public static final java.lang.String CSSCLASS_CONTROLBUTTONSMALL
- See Also:
- Constant Field Values
CSSCLASS_CONTROLBAR
public static final java.lang.String CSSCLASS_CONTROLBAR
- See Also:
- Constant Field Values
CSSCLASS_CONTROLBARSMALL
public static final java.lang.String CSSCLASS_CONTROLBARSMALL
- See Also:
- Constant Field Values
ControlImpl
public ControlImpl()
ControlImpl
public ControlImpl(java.lang.String name,
java.lang.String value)
ControlImpl
public ControlImpl(java.lang.String name,
java.util.List values)
ControlImpl
public ControlImpl(java.lang.String name,
info.magnolia.cms.core.Content websiteNode)
setPath
public void setPath(java.lang.String path)
getPath
public java.lang.String getPath()
setNodeCollectionName
public void setNodeCollectionName(java.lang.String nodeCollectionName)
getNodeCollectionName
public java.lang.String getNodeCollectionName()
getNodeCollectionName
public java.lang.String getNodeCollectionName(java.lang.String nullOrEmptyValue)
setNodeName
public void setNodeName(java.lang.String nodeName)
getNodeName
public java.lang.String getNodeName()
getNodeName
public java.lang.String getNodeName(java.lang.String nullOrEmptyValue)
setRequest
@Deprecated
public void setRequest(javax.servlet.http.HttpServletRequest request)
- Deprecated.
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
- Returns:
setName
public void setName(java.lang.String s)
getName
public java.lang.String getName()
setId
public void setId(java.lang.String s)
getId
public java.lang.String getId()
getHtmlId
public java.lang.String getHtmlId()
setValue
public void setValue(java.lang.String value)
getValue
public java.lang.String getValue()
setValues
public void setValues(java.util.List values)
getValues
public java.util.List getValues()
setWebsiteNode
public void setWebsiteNode(info.magnolia.cms.core.Content c)
getWebsiteNode
public info.magnolia.cms.core.Content getWebsiteNode()
setLabel
public void setLabel(java.lang.String label)
getLabel
public java.lang.String getLabel()
setEvent
public void setEvent(java.lang.String event,
java.lang.String action)
setEvent
public void setEvent(java.lang.String event,
java.lang.String action,
boolean removeExisting)
setEvents
public void setEvents(java.util.Map h)
getEvents
public java.util.Map getEvents()
getHtmlEvents
public java.lang.String getHtmlEvents()
getHtml
public java.lang.String getHtml()
- Returns an empty string.
- Specified by:
getHtml
in interface Control
- Returns:
- html
- See Also:
Control.getHtml()
setHtmlPre
public void setHtmlPre(java.lang.String s)
getHtmlPre
public java.lang.String getHtmlPre()
getHtmlPre
public java.lang.String getHtmlPre(java.lang.String nullValue)
setHtmlInter
public void setHtmlInter(java.lang.String s)
getHtmlInter
public java.lang.String getHtmlInter()
getHtmlInter
public java.lang.String getHtmlInter(java.lang.String nullValue)
setHtmlPost
public void setHtmlPost(java.lang.String s)
getHtmlPost
public java.lang.String getHtmlPost()
getHtmlPost
public java.lang.String getHtmlPost(java.lang.String nullValue)
setType
public void setType(int i)
setType
public void setType(java.lang.String s)
getType
public int getType()
setSaveInfo
public void setSaveInfo(boolean b)
getSaveInfo
public boolean getSaveInfo()
setCssClass
public void setCssClass(java.lang.String s)
getCssClass
public java.lang.String getCssClass()
getHtmlCssClass
public java.lang.String getHtmlCssClass()
getHtmlSaveInfo
public java.lang.String getHtmlSaveInfo()
setCssStyles
public void setCssStyles(java.util.Map h)
setCssStyles
public void setCssStyles(java.lang.String key,
java.lang.String value)
getCssStyles
public java.util.Map getCssStyles()
getCssStyles
public java.lang.String getCssStyles(java.lang.String key,
java.lang.String nullValue)
getCssStyles
public java.lang.String getCssStyles(java.lang.String key)
getHtmlCssStyles
public java.lang.String getHtmlCssStyles()
setValueType
public void setValueType(int i)
getValueType
public int getValueType()
setEncoding
public void setEncoding(int i)
getEncoding
public int getEncoding()
setIsRichEditValue
public void setIsRichEditValue(int i)
getIsRichEditValue
public int getIsRichEditValue()
escapeHTML
public static java.lang.String escapeHTML(java.lang.String str)
println
protected void println(java.io.Writer out,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.