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 java.lang.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 java.lang.String CSSCLASS_CONTROLBAR
           
static java.lang.String CSSCLASS_CONTROLBARSMALL
           
static java.lang.String CSSCLASS_CONTROLBUTTON
           
static java.lang.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(java.lang.String name, Content websiteNode)
           
ControlImpl(java.lang.String name, java.util.List values)
           
ControlImpl(java.lang.String name, java.lang.String value)
           
 
Method Summary
static java.lang.String escapeHTML(java.lang.String str)
           
 java.lang.String getCssClass()
           
 java.util.Map getCssStyles()
           
 java.lang.String getCssStyles(java.lang.String key)
           
 java.lang.String getCssStyles(java.lang.String key, java.lang.String nullValue)
           
 int getEncoding()
           
 java.util.Map getEvents()
           
 java.lang.String getHtml()
          Returns an empty string.
 java.lang.String getHtmlCssClass()
           
 java.lang.String getHtmlCssStyles()
           
 java.lang.String getHtmlEvents()
           
 java.lang.String getHtmlId()
           
 java.lang.String getHtmlInter()
           
 java.lang.String getHtmlInter(java.lang.String nullValue)
           
 java.lang.String getHtmlPost()
           
 java.lang.String getHtmlPost(java.lang.String nullValue)
           
 java.lang.String getHtmlPre()
           
 java.lang.String getHtmlPre(java.lang.String nullValue)
           
 java.lang.String getHtmlSaveInfo()
           
 java.lang.String getId()
           
 int getIsRichEditValue()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 java.lang.String getNodeCollectionName()
           
 java.lang.String getNodeCollectionName(java.lang.String nullOrEmptyValue)
           
 java.lang.String getNodeName()
           
 java.lang.String getNodeName(java.lang.String nullOrEmptyValue)
           
 java.lang.String getPath()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 boolean getSaveInfo()
           
 int getType()
           
 java.lang.String getValue()
           
 java.util.List getValues()
           
 int getValueType()
           
 Content getWebsiteNode()
           
protected  void println(java.io.Writer out, java.lang.String s)
           
 void setCssClass(java.lang.String s)
           
 void setCssStyles(java.util.Map h)
           
 void setCssStyles(java.lang.String key, java.lang.String value)
           
 void setEncoding(int i)
           
 void setEvent(java.lang.String event, java.lang.String action)
           
 void setEvent(java.lang.String event, java.lang.String action, boolean removeExisting)
           
 void setEvents(java.util.Map h)
           
 void setHtmlInter(java.lang.String s)
           
 void setHtmlPost(java.lang.String s)
           
 void setHtmlPre(java.lang.String s)
           
 void setId(java.lang.String s)
           
 void setIsRichEditValue(int i)
           
 void setLabel(java.lang.String label)
           
 void setName(java.lang.String s)
           
 void setNodeCollectionName(java.lang.String nodeCollectionName)
           
 void setNodeName(java.lang.String nodeName)
           
 void setPath(java.lang.String path)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
 void setSaveInfo(boolean b)
           
 void setType(int i)
           
 void setType(java.lang.String s)
           
 void setValue(java.lang.String value)
           
 void setValues(java.util.List values)
           
 void setValueType(int i)
           
 void setWebsiteNode(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 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
Constructor Detail

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,
                   Content websiteNode)
Method Detail

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

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(Content c)

getWebsiteNode

public 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.