org.intermine.web.tags.disclosure
Class BaseDisclosureTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.intermine.web.tags.disclosure.BaseDisclosureTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
Direct Known Subclasses:
DisclosureBodyTag, DisclosureDetailsTag, DisclosureHeadTag, DisclosureTag, DisclosureTitleTag

public class BaseDisclosureTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Base tag handler from which are all disclosure tag handlers derived.


Constructor Summary
BaseDisclosureTag()
           
 
Method Summary
protected  java.lang.String getDefaultStyleClass()
          Returns default style class.
 java.lang.String getStyle()
          Returns element style.
 java.lang.String getStyleClass()
          Returns css style class of element.
protected  void printStyleAndClass(javax.servlet.jsp.JspWriter out)
          Prints 'style' and 'class' attributes of element.
 void setStyle(java.lang.String style)
          Sets element style.
 void setStyleClass(java.lang.String styleClass)
          Sets css style class of element.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDisclosureTag

public BaseDisclosureTag()
Method Detail

getStyle

public java.lang.String getStyle()
Returns element style.

Returns:
element style

setStyle

public void setStyle(java.lang.String style)
Sets element style.

Parameters:
style - the style

getStyleClass

public java.lang.String getStyleClass()
Returns css style class of element.

Returns:
css class

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Sets css style class of element.

Parameters:
styleClass - the style class

printStyleAndClass

protected void printStyleAndClass(javax.servlet.jsp.JspWriter out)
                           throws java.io.IOException
Prints 'style' and 'class' attributes of element.

Parameters:
out - output
Throws:
java.io.IOException - if exception occurs during writing to output stream

getDefaultStyleClass

protected java.lang.String getDefaultStyleClass()
Returns default style class. Each of tags has its own default style class. So if you want to set style of disclosure tag, just simply set 'disclosure' class in style sheet file.

Returns:
default style class