|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opensubsystems.core.www.PageElementCacheTag
org.opensubsystems.patterns.dialoglayout.www.ImageButtonControlTag
public class ImageButtonControlTag
Custom tag to generate all HTML code necessary to display image button control, that is button with image and text, displayed int the dialog row.
| Field Summary | |
|---|---|
protected java.lang.String |
m_strAccessKey
Accesskey that will be used for mnemonics (using ALT+letter) |
protected java.lang.String |
m_strCssclass
Css class or combination of classes for this image button that should contain background image that will be displayed within the button created by this tag. |
protected java.lang.String |
m_strDisabled
Flag which will tells us if the button is disabled. |
protected java.lang.String |
m_strFake
Flag which will tells us if to create a fake button using a DIV tag or a real button using a button tag. |
protected java.lang.String |
m_strFakecssclass
Css class or combination of classes for this fake image button. |
protected java.lang.String |
m_strFocus
Does this control have focus when it is displayed on the page or not. |
protected java.lang.String |
m_strOnclick
Javascript to execute when user clicks on the button. |
protected java.lang.String |
m_strTitle
Tooltip that will be displayed for particular button control when user hovers with mouse over it. |
protected java.lang.String |
m_strType
Type of the button control (button/reset/submit) |
| Fields inherited from class org.opensubsystems.core.www.PageElementCacheTag |
|---|
CACHE_INDICATOR, CSS_ELEMENT, JS_ELEMENT, m_strCacheas, m_strId, PAGE_ELEMENTS_CACHE, SCRIPT_ELEMENT |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ImageButtonControlTag()
Constructor for custom tag. |
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
void |
doEndTag(java.lang.StringBuffer sbHtml,
java.lang.String strContent)
Generate content of the buffer within the end tag. |
int |
doStartTag()
|
protected void |
formatButtonText(java.lang.StringBuffer sbHtml,
java.lang.String strContent)
Format the text of the button underlining the access key if one was defined. |
java.lang.String |
getAccesskey()
|
java.lang.String |
getCssclass()
|
java.lang.String |
getDisabled()
|
java.lang.String |
getFake()
|
java.lang.String |
getFakecssclass()
|
java.lang.String |
getFocus()
|
java.lang.String |
getOnclick()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
boolean |
isDisabledButton()
|
boolean |
isFakeButton()
|
boolean |
isFocusedControl()
|
void |
setAccesskey(java.lang.String strAccessKey)
|
void |
setCssclass(java.lang.String strCssclass)
|
void |
setDisabled(boolean bDisabled)
|
void |
setDisabled(java.lang.String strDisabled)
|
void |
setFake(boolean bFake)
|
void |
setFake(java.lang.String strFake)
|
void |
setFakecssclass(java.lang.String strFakecssclass)
|
void |
setFocus(boolean bFocus)
|
void |
setFocus(java.lang.String strFocus)
|
void |
setOnclick(java.lang.String strOnclick)
|
void |
setTitle(java.lang.String strTitle)
|
void |
setType(java.lang.String strType)
|
| Methods inherited from class org.opensubsystems.core.www.PageElementCacheTag |
|---|
cache, getCacheas, getCachedContent, getCachedContent, getCachedContent, getCachedContentElements, getId, setCacheas, setId |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| 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 |
|---|
getParent, setPageContext, setParent |
| Field Detail |
|---|
protected java.lang.String m_strCssclass
protected java.lang.String m_strFakecssclass
protected java.lang.String m_strTitle
protected java.lang.String m_strType
protected java.lang.String m_strAccessKey
protected java.lang.String m_strOnclick
protected java.lang.String m_strDisabled
protected java.lang.String m_strFake
protected java.lang.String m_strFocus
| Constructor Detail |
|---|
public ImageButtonControlTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class org.opensubsystems.core.www.PageElementCacheTagjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class org.opensubsystems.core.www.PageElementCacheTagjavax.servlet.jsp.JspException
public void doEndTag(java.lang.StringBuffer sbHtml,
java.lang.String strContent)
sbHtml - - generated string bufferstrContent - - content which was specified between start and the end
tag, which would be the name of the buttonpublic java.lang.String getCssclass()
public void setCssclass(java.lang.String strCssclass)
strCssclass - - Class for the button controlpublic java.lang.String getFakecssclass()
public void setFakecssclass(java.lang.String strFakecssclass)
strFakecssclass - - Class for the hyperlink within the fake button
controlpublic java.lang.String getType()
public void setType(java.lang.String strType)
strType - - Type of the button tag used to specify button
control type (button/reset/submit).public java.lang.String getTitle()
public void setTitle(java.lang.String strTitle)
strTitle - - Ttitle (tooltip) that will be shown for particular button.public java.lang.String getAccesskey()
public void setAccesskey(java.lang.String strAccessKey)
strAccessKey - - AccessKey that will be used for mnemonics
(using ALT+letter)public java.lang.String getOnclick()
public void setOnclick(java.lang.String strOnclick)
strOnclick - - javascript to execute when user clicks on the buttonpublic java.lang.String getDisabled()
public void setDisabled(java.lang.String strDisabled)
strDisabled - - If this button should be disabled then this attribute
should say true or 1.public void setDisabled(boolean bDisabled)
bDisabled - - If this button should be disabled then this attribute
should say true or 1.public boolean isDisabledButton()
public java.lang.String getFake()
public void setFake(java.lang.String strFake)
strFake - - If this should be fake button constructed using a DIV tag
rather than a real button created using a button tag then
this attribute should say true or 1.public void setFake(boolean bFake)
bFake - - If this should be fake button constructed using a DIV tag
rather than a real button created using a button tag then
this attribute should say true or 1.public boolean isFakeButton()
public java.lang.String getFocus()
public void setFocus(java.lang.String strFocus)
strFocus - - If this control have focus when it si displayed on the
page say true or 1.public void setFocus(boolean bFocus)
bFocus - - Does this control have focus when it si displayed on the
page or tab.public boolean isFocusedControl()
protected void formatButtonText(java.lang.StringBuffer sbHtml,
java.lang.String strContent)
sbHtml - - buffer where to insert the formated textstrContent - - the text to display in the button
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||