Dashboard Builder UI Panels 6.0.0.Beta3

org.jboss.dashboard.ui.panel.navigation.treeMenu
Class TreeMenuFormatter

java.lang.Object
  extended by org.jboss.dashboard.factory.BasicFactoryElement
      extended by org.jboss.dashboard.ui.taglib.formatter.Formatter
          extended by org.jboss.dashboard.ui.panel.navigation.treeMenu.TreeMenuFormatter
All Implemented Interfaces:
Serializable, org.jboss.dashboard.factory.FactoryLifecycle

public class TreeMenuFormatter
extends org.jboss.dashboard.ui.taglib.formatter.Formatter

See Also:
Serialized Form

Field Summary
protected  boolean allSectionsOpen
           
protected  boolean isEditMode
           
 
Constructor Summary
TreeMenuFormatter()
           
 
Method Summary
 boolean areAllChecked()
           
protected  List calculateOpenSections()
           
 boolean hasVisibleChildren(org.jboss.dashboard.workspace.Section section)
          Determine if a page has visible children
 boolean isChecked(org.jboss.dashboard.workspace.Section section)
          Determines if a page is checked.
 boolean isCurrent(org.jboss.dashboard.workspace.Section section)
          Determines if a page is current.
 boolean isShowable(org.jboss.dashboard.workspace.Section section)
          Determines if a page is showable.
protected  void printSection(org.jboss.dashboard.workspace.Section section, int level)
           
protected  void renderSection(org.jboss.dashboard.workspace.Section section, int level)
           
protected  void renderSectionEditionMode(org.jboss.dashboard.workspace.Section section, int level)
           
protected  void renderTabulation()
           
 void service(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 
Methods inherited from class org.jboss.dashboard.ui.taglib.formatter.Formatter
afterRendering, formatObject, getDefaultLang, getDriver, getEncoding, getLang, getLocale, getLocaleManager, getLocalizedValue, getPanel, getParameter, getProvider, getSection, getWorkspace, includePage, renderFragment, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeInterpreter, setTag, writeToOut
 
Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isEditMode

protected boolean isEditMode

allSectionsOpen

protected boolean allSectionsOpen
Constructor Detail

TreeMenuFormatter

public TreeMenuFormatter()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest httpServletRequest,
                    javax.servlet.http.HttpServletResponse httpServletResponse)
             throws org.jboss.dashboard.ui.taglib.formatter.FormatterException
Specified by:
service in class org.jboss.dashboard.ui.taglib.formatter.Formatter
Throws:
org.jboss.dashboard.ui.taglib.formatter.FormatterException

renderSectionEditionMode

protected void renderSectionEditionMode(org.jboss.dashboard.workspace.Section section,
                                        int level)

renderSection

protected void renderSection(org.jboss.dashboard.workspace.Section section,
                             int level)

renderTabulation

protected void renderTabulation()

printSection

protected void printSection(org.jboss.dashboard.workspace.Section section,
                            int level)

hasVisibleChildren

public boolean hasVisibleChildren(org.jboss.dashboard.workspace.Section section)
Determine if a page has visible children

Parameters:
section - page to be considered
Returns:
true if the page has visible children

isShowable

public boolean isShowable(org.jboss.dashboard.workspace.Section section)
Determines if a page is showable.

Parameters:
section - page to be considered
Returns:
true if the page is showable

isCurrent

public boolean isCurrent(org.jboss.dashboard.workspace.Section section)
Determines if a page is current.

Parameters:
section - page to be considered
Returns:
true if the page is current

isChecked

public boolean isChecked(org.jboss.dashboard.workspace.Section section)
Determines if a page is checked.

Parameters:
section - page to be considered
Returns:
true if the page is checked

areAllChecked

public boolean areAllChecked()

calculateOpenSections

protected List calculateOpenSections()

Dashboard Builder UI Panels 6.0.0.Beta3

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.