info.magnolia.cms.gui.inline
Class BarMain

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.BarMain
All Implemented Interfaces:
Control

public class BarMain
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
BarMain()
           
BarMain(javax.servlet.http.HttpServletRequest request)
          Deprecated. since 4.0 - use the empty constructor.
BarMain(javax.servlet.http.HttpServletRequest request, java.lang.String path, java.lang.String nodeCollectionName, java.lang.String nodeName, java.lang.String paragraph)
          Deprecated. since 4.0
BarMain(java.lang.String path, java.lang.String nodeCollectionName, java.lang.String nodeName, java.lang.String dialog)
           
 
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.
 void drawHtmlLinks(javax.servlet.jsp.JspWriter out)
          Deprecated. use drawHtmlLinks(Writer out) instead.
 void drawHtmlLinks(java.io.Writer out)
          Draws the magnolia specific js and css links).
 Button getButtonEditView()
           
 Button getButtonPreview()
           
 Button getButtonProperties()
           
 Button getButtonSiteAdmin()
           
 java.lang.String getDialog()
           
 Control getLanguageChooser()
           
 int getLeft()
           
 boolean getOverlay()
           
 int getTop()
           
 java.lang.String getWidth()
           
 boolean isAdminButtonVisible()
           
 void placeDefaultButtons()
          Places the default buttons to the very right/left position.
 void setAdminButtonVisible(boolean adminButtonVisible)
           
 void setButtonEditView()
          Sets the default edit view button (to switch form preview to edit view mode).
 void setButtonEditView(Button b)
           
 void setButtonPreview()
          Sets the default preview button (to switch from edit to preview mode).
 void setButtonPreview(Button b)
           
 void setButtonProperties()
           
 void setButtonProperties(Button b)
           
 void setButtonProperties(java.lang.String path, java.lang.String dialog)
          Sets the default page properties button.
 void setButtonSiteAdmin()
           
 void setButtonSiteAdmin(Button b)
           
 void setButtonSiteAdmin(java.lang.String path)
          Sets the default site admin button.
 void setDefaultButtons()
          Sets the default buttons.
 void setDialog(java.lang.String dialog)
           
protected  void setLanguageChooser()
           
 void setLanguageChooser(Control languageChooser)
           
 void setLeft(int i)
           
 void setOverlay(boolean b)
          Sets if the main bar overlays the content (true, default) or if it is moving it downward (false).
 void setTop(int i)
           
 void setWidth(java.lang.String s)
           
 
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

BarMain

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


BarMain

public BarMain(javax.servlet.http.HttpServletRequest request,
               java.lang.String path,
               java.lang.String nodeCollectionName,
               java.lang.String nodeName,
               java.lang.String paragraph)
Deprecated. since 4.0


BarMain

public BarMain(java.lang.String path,
               java.lang.String nodeCollectionName,
               java.lang.String nodeName,
               java.lang.String dialog)

BarMain

public BarMain()
Method Detail

setDefaultButtons

public void setDefaultButtons()
Sets the default buttons.


placeDefaultButtons

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


getButtonProperties

public Button getButtonProperties()

setButtonProperties

public void setButtonProperties(Button b)

setButtonProperties

public void setButtonProperties()

setButtonProperties

public void setButtonProperties(java.lang.String path,
                                java.lang.String dialog)
Sets the default page properties button.

Parameters:
path - , path of the current page
dialog - , paragraph type

getButtonPreview

public Button getButtonPreview()

setButtonPreview

public void setButtonPreview(Button b)

setButtonPreview

public void setButtonPreview()
Sets the default preview button (to switch from edit to preview mode).


getButtonEditView

public Button getButtonEditView()

setButtonEditView

public void setButtonEditView(Button b)

setButtonEditView

public void setButtonEditView()
Sets the default edit view button (to switch form preview to edit view mode).


getButtonSiteAdmin

public Button getButtonSiteAdmin()

setButtonSiteAdmin

public void setButtonSiteAdmin(Button b)

setButtonSiteAdmin

public void setButtonSiteAdmin()

setButtonSiteAdmin

public void setButtonSiteAdmin(java.lang.String path)
Sets the default site admin button.

Parameters:
path - , path of the current page (will show up in site admin)

setLanguageChooser

protected void setLanguageChooser()

getLanguageChooser

public Control getLanguageChooser()

setLanguageChooser

public void setLanguageChooser(Control languageChooser)

setTop

public void setTop(int i)

getTop

public int getTop()

setLeft

public void setLeft(int i)

getLeft

public int getLeft()

setWidth

public void setWidth(java.lang.String s)

getWidth

public java.lang.String getWidth()

setOverlay

public void setOverlay(boolean b)
Sets if the main bar overlays the content (true, default) or if it is moving it downward (false).


getOverlay

public boolean getOverlay()

getDialog

public java.lang.String getDialog()

setDialog

public void setDialog(java.lang.String dialog)

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 links).

Throws:
java.io.IOException

drawHtmlLinks

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

Throws:
java.io.IOException

drawHtmlLinks

public void drawHtmlLinks(java.io.Writer out)
                   throws java.io.IOException
Draws the magnolia specific js and css links).

Throws:
java.io.IOException

isAdminButtonVisible

public boolean isAdminButtonVisible()

setAdminButtonVisible

public void setAdminButtonVisible(boolean adminButtonVisible)


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