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_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
BarMain()
           
BarMain(javax.servlet.http.HttpServletRequest request)
          Deprecated. since 4.0 - use the empty constructor.
BarMain(javax.servlet.http.HttpServletRequest request, String path, String nodeCollectionName, String nodeName, String paragraph)
          Deprecated. since 4.0
BarMain(String path, String nodeCollectionName, String nodeName, String dialog)
           
 
Method Summary
 void drawHtml(javax.servlet.jsp.JspWriter out)
          Deprecated. use drawHtml(Writer out) instead.
 void drawHtml(Writer out)
          Draws the main bar (incl. all magnolia specific js and css links).
 void drawHtmlLinks(javax.servlet.jsp.JspWriter out)
          Deprecated. use drawHtmlLinks(Writer out) instead.
 void drawHtmlLinks(Writer out)
          Draws the magnolia specific js and css links).
 Button getButtonEditView()
           
 Button getButtonPreview()
           
 Button getButtonProperties()
           
 Button getButtonSiteAdmin()
           
 String getDialog()
           
 Control getLanguageChooser()
           
 int getLeft()
           
 boolean getOverlay()
           
 int getTop()
           
 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(String path, String dialog)
          Sets the default page properties button.
 void setButtonSiteAdmin()
           
 void setButtonSiteAdmin(Button b)
           
 void setButtonSiteAdmin(String path)
          Sets the default site admin button.
 void setDefaultButtons()
          Sets the default buttons.
 void setDialog(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(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

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


BarMain

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


BarMain

public BarMain(String path,
               String nodeCollectionName,
               String nodeName,
               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(String path,
                                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(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(String s)

getWidth

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

setDialog

public void setDialog(String dialog)

drawHtml

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

Throws:
IOException

drawHtml

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

Throws:
IOException

drawHtmlLinks

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

Throws:
IOException

drawHtmlLinks

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

Throws:
IOException

isAdminButtonVisible

public boolean isAdminButtonVisible()

setAdminButtonVisible

public void setAdminButtonVisible(boolean adminButtonVisible)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.