|
||||||||||
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
com.pow2.webgui.Widget
public abstract class Widget
Abstract Widget class.
Extends also BodyTagSupport - in this manner every widget tag
subclassing this class can access the basic widget properties.
Field Summary | |
---|---|
protected static org.apache.log4j.Category |
cat
Log4j category |
protected String |
color
widget color (#rrggbb format) |
protected StringBuffer |
content
widget content |
protected BaseContentProvider |
contentProvider
content provider class |
protected String |
contentProviderName
content provider name |
protected String |
drawer
widget drawer key |
protected String |
followUp
widget URI link |
protected String |
height
widget height |
protected String |
id
widget identifier |
protected String |
name
widget name |
protected Widget |
parentW
parent Widget. |
protected String |
title
widget title |
protected String |
titleType
title type; it can be: "text" (default) or "image". |
protected WidgetDrawer |
widgetDrawer
widgetDrawer strategy instance |
protected WidgetInfo |
widgetInfo
widgetInfo instance |
protected String |
width
widget width |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
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 | |
---|---|
protected |
Widget()
Default protected Constructor. |
Method Summary | |
---|---|
StringBuffer |
draw()
Gets the string representation of this widget. |
String |
getColor()
Gets the color attribute of the Widget object |
StringBuffer |
getContent()
Gets the content attribute of the Widget object |
BaseContentProvider |
getContentProvider()
Gets the contentProvider attribute of the Widget object |
String |
getContentProviderName()
Gets the contentProviderName attribute of the Widget object. |
String |
getDrawer()
Gets the drawer attribute of the Widget object |
String |
getFollowUp()
Gets the followUp attribute of the Widget object. |
String |
getHeight()
Gets the height attribute of the Widget object |
String |
getId()
Gets the id attribute of the Widget object |
String |
getName()
Gets the name attribute of the Widget object |
Widget |
getParentW()
Gets the parentW attribute of the Widget object |
String |
getTitle()
Gets the title attribute of the Widget object |
String |
getTitleType()
Gets the titleType attribute of the Window object |
WidgetDrawer |
getWidgetDrawer()
Gets the widgetDrawer attribute of the Widget object |
WidgetInfo |
getWidgetInfo()
Gets the widgetInfo attribute of the Widget object |
String |
getWidth()
Gets the width attribute of the Widget object |
void |
setColor(String newColor)
Sets the color attribute of the Widget object. |
void |
setContent(StringBuffer newContent)
Sets the content attribute of the Widget object |
void |
setContentProvider(String contentProviderName)
Sets the default contentProvider attribute. |
void |
setContentProviderName(String contentProviderName)
Sets the contentProviderName attribute. |
void |
setDrawer(String newDrawer)
Sets the drawer attribute of the Widget object |
void |
setFollowUp(String newFollowUp)
Sets the followUp attribute of the Widget object. |
void |
setHeight(String height)
Sets the height attribute of the Widget object |
void |
setId(String newId)
Sets the id attribute of the Widget object |
void |
setName(String newName)
Sets the name attribute of the Widget object |
void |
setParentW(Widget newParentW)
Sets the parentW attribute of the Widget object |
void |
setTitle(String newTitle)
Sets the title attribute of the Widget object |
void |
setTitleType(String newTitleType)
Sets the titleType attribute of the Widget object Supported types are: text image |
void |
setWidgetDrawer(String drawer)
Sets the default widgetDrawer attribute, using the input drawer
parameter value. |
void |
setWidgetInfo(WidgetInfo widgetInfo)
Sets the widgetInfo attribute of the Widget object. |
void |
setWidth(String width)
Sets the width attribute of the Widget object |
void |
updateAttributes(Widget w)
Update this class attributes using the input Widget attributes values. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, doStartTag, 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 static org.apache.log4j.Category cat
protected String color
protected StringBuffer content
protected BaseContentProvider contentProvider
protected String contentProviderName
protected String drawer
protected String followUp
protected String height
protected String id
protected String name
protected Widget parentW
parentW
and not parent
?
parent
attribute overrides the
homonymous tag class attribute, generating an erroneous behaviour.
protected String title
protected String titleType
protected WidgetDrawer widgetDrawer
protected WidgetInfo widgetInfo
protected String width
Constructor Detail |
---|
protected Widget()
Method Detail |
---|
public void setColor(String newColor)
rrggbb
where:rr
is the red component (0-ff)gg
is the green component (0-ff)bb
is the blue component (0-ff)
newColor
- The new color valuepublic void setContent(StringBuffer newContent)
newContent
- The new content value.public void setContentProvider(String contentProviderName) throws Exception
contentProviderName
- the contentProvider name
Exception
- if any error occurspublic void setContentProviderName(String contentProviderName)
contentProviderName
- the contentProvider namepublic void setDrawer(String newDrawer)
newDrawer
- The new drawer valuepublic void setFollowUp(String newFollowUp)
newFollowUp
- The new followUp valuepublic void setHeight(String height)
height
- The new height valuepublic void setId(String newId)
setId
in class javax.servlet.jsp.tagext.TagSupport
newId
- The new id valuepublic void setName(String newName)
newName
- The new name valuepublic void setParentW(Widget newParentW)
newParentW
- The new parentW valuepublic void setTitle(String newTitle)
newTitle
- The new title value.public void setTitleType(String newTitleType)
newTitleType
- The new titleType value.public void setWidgetDrawer(String drawer) throws Exception
drawer
parameter value.
drawer
- the drawer name
Exception
- if any error occurspublic final void setWidgetInfo(WidgetInfo widgetInfo)
widgetInfo
- The new widgetInfo valuepublic void setWidth(String width)
width
- The new width valuepublic String getColor()
public StringBuffer getContent()
public BaseContentProvider getContentProvider()
public String getContentProviderName()
public String getDrawer()
public String getFollowUp()
public String getHeight()
public String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public String getName()
public Widget getParentW()
public String getTitle()
public String getTitleType()
public WidgetDrawer getWidgetDrawer()
public WidgetInfo getWidgetInfo()
public String getWidth()
public StringBuffer draw() throws Exception
Exception
- if any error occurspublic void updateAttributes(Widget w)
w
- the input widget subclass; must be a tag library class
that extends the Widget class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |