org.rhq.enterprise.gui.legacy.taglib.display
Class QuicknavDecorator

java.lang.Object
  extended by org.rhq.enterprise.gui.legacy.taglib.display.Decorator
      extended by org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
          extended by org.rhq.enterprise.gui.legacy.taglib.display.QuicknavDecorator
All Implemented Interfaces:
Cloneable, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
GroupQuicknavDecorator, ResourceQuicknavDecorator

public abstract class QuicknavDecorator
extends ColumnDecorator
implements javax.servlet.jsp.tagext.Tag

This class is a two-in-one decorator/tag for use within the TableTag; it is a ColumnDecorator tag that that creates a row of quicknav icons (i.e. [M][I][C][A] etc.) for the resource hub.

Author:
Ian Springer

Nested Class Summary
protected static class QuicknavDecorator.IconInfo
           
 
Field Summary
protected static String DATA_TABLE_STYLE_CLASS
           
protected static org.apache.commons.logging.Log LOG
           
protected static String QUICKNAV_BLOCK_STYLE_CLASS
           
protected static String QUICKNAV_CELL_STYLE_CLASS
           
 
Fields inherited from class org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
columnTag
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
QuicknavDecorator()
           
 
Method Summary
protected  void appendLinkedIcon(StringBuilder stringBuilder, String url, QuicknavDecorator.IconInfo iconInfo)
           
protected  void appendLockedIcon(StringBuilder stringBuilder)
           
 int doEndTag()
           
 int doStartTag()
           
protected  Object evalAttr(String name, String value, Class<?> type)
           
protected abstract  String getAlertURL()
           
protected abstract  String getConfigureURL()
           
protected abstract  String getContentURL()
           
protected abstract  String getEventsURL()
           
protected abstract  String getFullURL(String relativeTargetURL)
           
protected abstract  String getInventoryURL()
           
protected abstract  String getMonitorURL()
           
protected  String getNA()
           
protected abstract  String getOperationsURL()
           
protected  String getOutput()
           
 javax.servlet.jsp.tagext.Tag getParent()
           
protected abstract  String getTagName()
           
protected abstract  boolean isAlertAllowed()
           
protected abstract  boolean isAlertSupported()
           
protected abstract  boolean isConfigureAllowed()
           
protected abstract  boolean isConfigureSupported()
           
protected abstract  boolean isContentAllowed()
           
protected abstract  boolean isContentSupported()
           
protected abstract  boolean isEventsAllowed()
           
protected abstract  boolean isEventsSupported()
           
protected abstract  boolean isInventoryAllowed()
           
protected abstract  boolean isInventorySupported()
           
protected abstract  boolean isMonitorAllowed()
           
protected abstract  boolean isMonitorSupported()
           
protected abstract  boolean isOperationsAllowed()
           
protected abstract  boolean isOperationsSupported()
           
 void release()
           
 void setParent(javax.servlet.jsp.tagext.Tag tag)
           
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
decorate, getColumnTag, setColumnTag
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.display.Decorator
finish, finishRow, getList, getListIndex, getObject, getPageContext, getViewIndex, init, initRow, setPageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
setPageContext
 

Field Detail

DATA_TABLE_STYLE_CLASS

protected static final String DATA_TABLE_STYLE_CLASS
See Also:
Constant Field Values

QUICKNAV_CELL_STYLE_CLASS

protected static final String QUICKNAV_CELL_STYLE_CLASS
See Also:
Constant Field Values

QUICKNAV_BLOCK_STYLE_CLASS

protected static final String QUICKNAV_BLOCK_STYLE_CLASS
See Also:
Constant Field Values

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

QuicknavDecorator

public QuicknavDecorator()
Method Detail

getOutput

protected String getOutput()

getNA

protected String getNA()

appendLockedIcon

protected void appendLockedIcon(StringBuilder stringBuilder)

appendLinkedIcon

protected void appendLinkedIcon(StringBuilder stringBuilder,
                                String url,
                                QuicknavDecorator.IconInfo iconInfo)

getFullURL

protected abstract String getFullURL(String relativeTargetURL)

setParent

public void setParent(javax.servlet.jsp.tagext.Tag tag)
Specified by:
setParent in interface javax.servlet.jsp.tagext.Tag

getParent

public javax.servlet.jsp.tagext.Tag getParent()
Specified by:
getParent in interface javax.servlet.jsp.tagext.Tag

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class Decorator

getTagName

protected abstract String getTagName()

evalAttr

protected Object evalAttr(String name,
                          String value,
                          Class<?> type)
                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

isMonitorSupported

protected abstract boolean isMonitorSupported()

isEventsSupported

protected abstract boolean isEventsSupported()

isInventorySupported

protected abstract boolean isInventorySupported()

isConfigureSupported

protected abstract boolean isConfigureSupported()

isOperationsSupported

protected abstract boolean isOperationsSupported()

isAlertSupported

protected abstract boolean isAlertSupported()

isContentSupported

protected abstract boolean isContentSupported()

isMonitorAllowed

protected abstract boolean isMonitorAllowed()

isEventsAllowed

protected abstract boolean isEventsAllowed()

isInventoryAllowed

protected abstract boolean isInventoryAllowed()

isConfigureAllowed

protected abstract boolean isConfigureAllowed()

isOperationsAllowed

protected abstract boolean isOperationsAllowed()

isAlertAllowed

protected abstract boolean isAlertAllowed()

isContentAllowed

protected abstract boolean isContentAllowed()

getMonitorURL

protected abstract String getMonitorURL()

getEventsURL

protected abstract String getEventsURL()

getInventoryURL

protected abstract String getInventoryURL()

getConfigureURL

protected abstract String getConfigureURL()

getOperationsURL

protected abstract String getOperationsURL()

getAlertURL

protected abstract String getAlertURL()

getContentURL

protected abstract String getContentURL()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.