info.magnolia.cms.gui.control
Class ControlImpl

java.lang.Object
  extended by 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 Object
implements Control

Version:
2.0
Author:
Vinzenz Wyser

Field Summary
static int BUTTONSTATE_DISABLED
           
static int BUTTONSTATE_MOUSEDOWN
           
static int BUTTONSTATE_MOUSEOVER
           
static int BUTTONSTATE_NORMAL
           
static int BUTTONSTATE_PUSHED
           
static int BUTTONTYPE_CHECKBOX
           
static int BUTTONTYPE_PUSHBUTTON
           
static int BUTTONTYPE_RADIO
           
static String CSSCLASS_CONTROLBAR
           
static String CSSCLASS_CONTROLBARSMALL
           
static String CSSCLASS_CONTROLBUTTON
           
static String CSSCLASS_CONTROLBUTTONSMALL
           
static int ENCODING_BASE64
           
static int ENCODING_NO
           
static int ENCODING_UNIX
           
static int RICHEDIT_FCK
           
static int RICHEDIT_KUPU
           
static int RICHEDIT_NONE
           
static int VALUETYPE_MULTIPLE
           
static int VALUETYPE_SINGLE
           
 
Constructor Summary
ControlImpl()
           
ControlImpl(String name, info.magnolia.cms.core.Content websiteNode)
           
ControlImpl(String name, List values)
           
ControlImpl(String name, String value)
           
 
Method Summary
static String escapeHTML(String str)
           
 String getCssClass()
           
 Map getCssStyles()
           
 String getCssStyles(String key)
           
 String getCssStyles(String key, String nullValue)
           
 int getEncoding()
           
 Map getEvents()
           
 String getHtml()
          Returns an empty string.
 String getHtmlCssClass()
           
 String getHtmlCssStyles()
           
 String getHtmlEvents()
           
 String getHtmlId()
           
 String getHtmlInter()
           
 String getHtmlInter(String nullValue)
           
 String getHtmlPost()
           
 String getHtmlPost(String nullValue)
           
 String getHtmlPre()
           
 String getHtmlPre(String nullValue)
           
 String getHtmlSaveInfo()
           
 String getId()
           
 int getIsRichEditValue()
           
 String getLabel()
           
 String getName()
           
 String getNodeCollectionName()
           
 String getNodeCollectionName(String nullOrEmptyValue)
           
 String getNodeName()
           
 String getNodeName(String nullOrEmptyValue)
           
 String getPath()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 boolean getSaveInfo()
           
 int getType()
           
 String getValue()
           
 List getValues()
           
 int getValueType()
           
 info.magnolia.cms.core.Content getWebsiteNode()
           
protected  void println(Writer out, String s)
           
 void setCssClass(String s)
           
 void setCssStyles(Map h)
           
 void setCssStyles(String key, String value)
           
 void setEncoding(int i)
           
 void setEvent(String event, String action)
           
 void setEvent(String event, String action, boolean removeExisting)
           
 void setEvents(Map h)
           
 void setHtmlInter(String s)
           
 void setHtmlPost(String s)
           
 void setHtmlPre(String s)
           
 void setId(String s)
           
 void setIsRichEditValue(int i)
           
 void setLabel(String label)
           
 void setName(String s)
           
 void setNodeCollectionName(String nodeCollectionName)
           
 void setNodeName(String nodeName)
           
 void setPath(String path)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
 void setSaveInfo(boolean b)
           
 void setType(int i)
           
 void setType(String s)
           
 void setValue(String value)
           
 void setValues(List values)
           
 void setValueType(int i)
           
 void setWebsiteNode(info.magnolia.cms.core.Content c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 String CSSCLASS_CONTROLBUTTON
See Also:
Constant Field Values

CSSCLASS_CONTROLBUTTONSMALL

public static final String CSSCLASS_CONTROLBUTTONSMALL
See Also:
Constant Field Values

CSSCLASS_CONTROLBAR

public static final String CSSCLASS_CONTROLBAR
See Also:
Constant Field Values

CSSCLASS_CONTROLBARSMALL

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

ControlImpl

public ControlImpl()

ControlImpl

public ControlImpl(String name,
                   String value)

ControlImpl

public ControlImpl(String name,
                   List values)

ControlImpl

public ControlImpl(String name,
                   info.magnolia.cms.core.Content websiteNode)
Method Detail

setPath

public void setPath(String path)

getPath

public String getPath()

setNodeCollectionName

public void setNodeCollectionName(String nodeCollectionName)

getNodeCollectionName

public String getNodeCollectionName()

getNodeCollectionName

public String getNodeCollectionName(String nullOrEmptyValue)

setNodeName

public void setNodeName(String nodeName)

getNodeName

public String getNodeName()

getNodeName

public String getNodeName(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(String s)

getName

public String getName()

setId

public void setId(String s)

getId

public String getId()

getHtmlId

public String getHtmlId()

setValue

public void setValue(String value)

getValue

public String getValue()

setValues

public void setValues(List values)

getValues

public List getValues()

setWebsiteNode

public void setWebsiteNode(info.magnolia.cms.core.Content c)

getWebsiteNode

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

setLabel

public void setLabel(String label)

getLabel

public String getLabel()

setEvent

public void setEvent(String event,
                     String action)

setEvent

public void setEvent(String event,
                     String action,
                     boolean removeExisting)

setEvents

public void setEvents(Map h)

getEvents

public Map getEvents()

getHtmlEvents

public String getHtmlEvents()

getHtml

public String getHtml()
Returns an empty string.

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

setHtmlPre

public void setHtmlPre(String s)

getHtmlPre

public String getHtmlPre()

getHtmlPre

public String getHtmlPre(String nullValue)

setHtmlInter

public void setHtmlInter(String s)

getHtmlInter

public String getHtmlInter()

getHtmlInter

public String getHtmlInter(String nullValue)

setHtmlPost

public void setHtmlPost(String s)

getHtmlPost

public String getHtmlPost()

getHtmlPost

public String getHtmlPost(String nullValue)

setType

public void setType(int i)

setType

public void setType(String s)

getType

public int getType()

setSaveInfo

public void setSaveInfo(boolean b)

getSaveInfo

public boolean getSaveInfo()

setCssClass

public void setCssClass(String s)

getCssClass

public String getCssClass()

getHtmlCssClass

public String getHtmlCssClass()

getHtmlSaveInfo

public String getHtmlSaveInfo()

setCssStyles

public void setCssStyles(Map h)

setCssStyles

public void setCssStyles(String key,
                         String value)

getCssStyles

public Map getCssStyles()

getCssStyles

public String getCssStyles(String key,
                           String nullValue)

getCssStyles

public String getCssStyles(String key)

getHtmlCssStyles

public 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 String escapeHTML(String str)

println

protected void println(Writer out,
                       String s)
                throws IOException
Throws:
IOException


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