info.magnolia.cms.gui.control
Class Button

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.Button
All Implemented Interfaces:
Control
Direct Known Subclasses:
ButtonEdit

public class Button
extends ControlImpl

Version:
2.0
Author:
Vinzenz Wyser

Field Summary
 
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_NO, ENCRYPTION_HASH_BCRYPT, ENCRYPTION_HASH_SHA, ENCRYPTION_NO, ENCRYPTION_NO_ENCODING_BASE64, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
Button()
           
Button(String name, String value)
           
 
Method Summary
 int getButtonType()
           
 String getHtml()
          Returns an empty string.
 String getHtmlDividedbutton()
           
 String getHtmlPushbutton()
           
 String getIconSrc()
           
 String getLabel()
           
 String getOnclick()
           
 String getPushButtonTag()
           
 boolean getSmall()
           
 int getState()
           
 void setButtonType(int i)
           
 void setHtmlInter()
           
 void setHtmlPost()
           
 void setHtmlPre()
           
 void setIconSrc(String s)
          Sets the source path for the image.
 void setLabel(String s)
           
 void setOnclick(String s)
           
 void setPushButtonTag(String s)
           
 void setSmall(boolean b)
           
 void setState(int i)
           
 
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, getName, getNodeCollectionName, getNodeCollectionName, getNodeName, getNodeName, getPath, getRequest, getSaveInfo, getType, getValue, getValues, getValueType, getWebsiteNode, println, setCssClass, setCssStyles, setCssStyles, setEncoding, setEvent, setEvent, setEvents, setHtmlInter, setHtmlPost, setHtmlPre, setId, setIsRichEditValue, 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
 

Constructor Detail

Button

public Button()

Button

public Button(String name,
              String value)
Method Detail

setLabel

public void setLabel(String s)
Overrides:
setLabel in class ControlImpl

getLabel

public String getLabel()
Overrides:
getLabel in class ControlImpl

setIconSrc

public void setIconSrc(String s)
Sets the source path for the image. URI must contain the context path.

Parameters:
s - image source, with context path

getIconSrc

public String getIconSrc()

setOnclick

public void setOnclick(String s)

getOnclick

public String getOnclick()

setHtmlPre

public void setHtmlPre()

setHtmlInter

public void setHtmlInter()

setHtmlPost

public void setHtmlPost()

setSmall

public void setSmall(boolean b)

getSmall

public boolean getSmall()

setPushButtonTag

public void setPushButtonTag(String s)

getPushButtonTag

public String getPushButtonTag()

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

getHtmlDividedbutton

public String getHtmlDividedbutton()

getHtmlPushbutton

public String getHtmlPushbutton()

setState

public void setState(int i)

getState

public int getState()

setButtonType

public void setButtonType(int i)

getButtonType

public int getButtonType()


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