info.magnolia.cms.gui.inline
Class BarNew

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

public class BarNew
extends Bar

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_BASE64, ENCODING_NO, ENCODING_UNIX, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
BarNew()
           
BarNew(javax.servlet.http.HttpServletRequest request)
          Deprecated. since 4.0 - use the empty constructor.
 
Method Summary
 void drawHtml(javax.servlet.jsp.JspWriter out)
          Deprecated. use drawHtml(Writer out) instead.
 void drawHtml(java.io.Writer out)
          Draws the main bar (incl.
 Button getButtonNew()
           
 java.lang.String getParagraph()
           
protected  java.lang.String onClickForNewButton(java.lang.String path, java.lang.String nodeCollectionName, java.lang.String nodeName, java.lang.String paragraph, java.lang.String repository, java.lang.String dialogName)
           
 void placeDefaultButtons()
          Places the default buttons to the very right/left position.
 void setButtonNew()
           
 void setButtonNew(Button b)
           
 void setButtonNew(java.lang.String path, java.lang.String nodeCollectionName, java.lang.String nodeName, java.lang.String paragraph)
          Sets the default edit button.
 void setDefaultButtons()
          Sets the default buttons.
 void setParagraph(java.lang.String paragraph)
           
 
Methods inherited from class info.magnolia.cms.gui.control.Bar
getButtonsLeft, getButtonsRight, getHtml, getSmall, setButtonsLeft, setButtonsLeft, setButtonsRight, setButtonsRight, setSmall
 
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, getPath, 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
 

Constructor Detail

BarNew

public BarNew(javax.servlet.http.HttpServletRequest request)
Deprecated. since 4.0 - use the empty constructor.


BarNew

public BarNew()
Method Detail

setDefaultButtons

public void setDefaultButtons()
Sets the default buttons.


placeDefaultButtons

public void placeDefaultButtons()
Places the default buttons to the very right/left position.


getButtonNew

public Button getButtonNew()

setButtonNew

public void setButtonNew(Button b)

setButtonNew

public void setButtonNew()

setButtonNew

public void setButtonNew(java.lang.String path,
                         java.lang.String nodeCollectionName,
                         java.lang.String nodeName,
                         java.lang.String paragraph)
Sets the default edit button.

Parameters:
path - , path of the current page
nodeCollectionName - , i.e. 'MainParagarphs'
nodeName - , i.e. '01'
paragraph - , paragraph type

onClickForNewButton

protected java.lang.String onClickForNewButton(java.lang.String path,
                                               java.lang.String nodeCollectionName,
                                               java.lang.String nodeName,
                                               java.lang.String paragraph,
                                               java.lang.String repository,
                                               java.lang.String dialogName)

drawHtml

public void drawHtml(javax.servlet.jsp.JspWriter out)
              throws java.io.IOException
Deprecated. use drawHtml(Writer out) instead.

Throws:
java.io.IOException

drawHtml

public void drawHtml(java.io.Writer out)
              throws java.io.IOException
Draws the main bar (incl. all magnolia specific js and css sources).

Throws:
java.io.IOException

getParagraph

public java.lang.String getParagraph()

setParagraph

public void setParagraph(java.lang.String paragraph)


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