|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport net.sf.basedb.clients.web.taglib.PropertyValue
public class PropertyValue
This tag is used to display the property of a BasicItem
.
Example:
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> <base:propertyvalue item="<%=user%>" property="name" />
Syntax:
<base:propertyvalue item=... property=... href=... tooltip=... >
Attribute | Default value | Required | Description |
item | - | yes |
The BasicItem object to get the property from.
|
property | - | yes | The name of the property. See [@link Metadata#getPropertyValue(BasicItem,String)} for a description. |
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different buttons.
|
href | - | no | If supplied, the text will be linked to the specified URL. |
tooltip | no | A short explanation that will show up as a tooltip. |
Field Summary | |
---|---|
private DbControl |
dc
A DbControl object. |
private boolean |
enableDownloadLink
Use for files only, if the view/download link should be enabled or not. |
private boolean |
enableEditLink
Possible to open an edit popup or not with the linked property |
private boolean |
enablePropertyLink
A link to the property item or not. |
private Object |
item
The item. |
private String |
nullText
What to show if the value is null. |
private String |
property
The name of the property. |
private String |
ROOT
|
private static long |
serialVersionUID
|
private String |
tooltip
An optional tooltip. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 | |
---|---|
PropertyValue()
|
Method Summary | |
---|---|
int |
doStartTag()
|
DbControl |
getDbcontrol()
|
boolean |
getEnableDownloadLink()
|
boolean |
getEnableEditLink()
|
boolean |
getEnablePropertyLink()
|
Object |
getItem()
|
String |
getNulltext()
|
String |
getProperty()
|
private Metadata.PropertyPath |
getPropertyPath(Object item,
String path)
|
String |
getRoot()
|
String |
getTooltip()
|
void |
setDbcontrol(DbControl dc)
|
void |
setEnableDownloadLink(boolean enabled)
|
void |
setEnableEditLink(boolean enableEditLink)
|
void |
setEnablePropertyLink(boolean enabled)
|
void |
setItem(Object item)
|
void |
setNulltext(String nullText)
|
void |
setProperty(String property)
|
void |
setTooltip(String tooltip)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private transient Object item
private transient DbControl dc
private String property
private boolean enablePropertyLink
private boolean enableDownloadLink
private String tooltip
private boolean enableEditLink
private String nullText
private String ROOT
Constructor Detail |
---|
public PropertyValue()
Method Detail |
---|
public void setDbcontrol(DbControl dc)
public DbControl getDbcontrol()
public void setItem(Object item)
public Object getItem()
public void setProperty(String property)
public String getProperty()
public void setEnablePropertyLink(boolean enabled)
public boolean getEnablePropertyLink()
public void setEnableDownloadLink(boolean enabled)
public boolean getEnableDownloadLink()
public void setTooltip(String tooltip)
public String getTooltip()
public void setNulltext(String nullText)
public String getNulltext()
public void setEnableEditLink(boolean enableEditLink)
public boolean getEnableEditLink()
public String getRoot()
private Metadata.PropertyPath getPropertyPath(Object item, String path)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |