|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.AbstractBComponent
org.barracudamvc.core.comp.BComponent
org.barracudamvc.core.comp.BImage
public class BImage
Field Summary | |
---|---|
protected String |
alt
|
protected String |
height
|
protected static org.apache.log4j.Logger |
log
|
protected String |
src
|
protected String |
title
|
protected String |
width
|
Fields inherited from class org.barracudamvc.core.comp.BComponent |
---|
DEFAULT_ENCODING, enabled, enc, logger, name, rs, VISIBILITY_MARKER, visible |
Fields inherited from class org.barracudamvc.core.comp.AbstractBComponent |
---|
attrs, children, dvc, isStepChild, parent, statemap, stepChildren, tempViews, validated, views |
Constructor Summary | |
---|---|
BImage()
Public noargs constructor |
|
BImage(String ialt,
String isrc)
Public constructor which creates the component and sets it's alt text and image file source (src). |
|
BImage(String ialt,
String ititle,
String isrc)
Public constructor which creates the component and sets it's alt text, the title and image file source (src). |
|
BImage(String ialt,
String isrc,
String iheight,
String iwidth)
Public constructor which creates the component and sets it's alt text and image file source (src), along with the desired width and height of the image. |
|
BImage(String ialt,
String ititle,
String iurl,
String iheight,
String iwidth)
Public constructor which creates the component and sets it's alt text, title and image file source (src), along with the desired width and height of the image. |
Method Summary | |
---|---|
String |
getAlt()
Get the alt text for this particular component |
String |
getHeight()
Get the height for this particular component |
String |
getSrc()
Get the source for this particular component |
String |
getTitle()
Get the title for this particular component |
String |
getWidth()
Get the width for this particular component |
BImage |
setAlt(String ialt)
Set the alt text for this particular component |
BImage |
setHeight(String iheight)
Set the height for this particular component |
BImage |
setSrc(String isrc)
Set the source for this particular component |
BImage |
setTitle(String ititle)
Set the title for this particular component |
BImage |
setWidth(String iwidth)
Set the width for this particular component |
String |
toString(ViewContext vc)
if has vc, but no views: render as an <a> link, otherwise use super.toString(ViewContext) |
Methods inherited from class org.barracudamvc.core.comp.BComponent |
---|
addView, decodeStr, encodeStr, getEncoding, getFirstView, getName, getRenderStrategy, getViews, isEnabled, isVisible, postRender, preRender, removeAllViews, removeView, render, render, renderView, renderView, setEnabled, setEnabled, setEncoding, setName, setRenderStrategy, setView, setVisible, setVisible, supports |
Methods inherited from class org.barracudamvc.core.comp.AbstractBComponent |
---|
addChild, addStepChild, addStepChild, addTempView, clearState, destroyCycle, findComponentMap, findRendererFactory, getAttr, getAttrMap, getChild, getChildren, getDefaultViewContext, getParent, getRenderer, getRenderer, getRendererFactory, getRootComponent, getState, getStateKeys, getStateStore, hasChildren, hasViews, initCycle, installRendererFactory, invalidate, isStepChild, printStackTrace, printStackTrace, printStackTrace, putState, removeAll, removeAllStepChildren, removeChild, removeChild, removeState, setAttr, setDefaultViewContext, setParent, toRef, toString, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
protected String alt
protected String title
protected String src
protected String width
protected String height
Constructor Detail |
---|
public BImage()
public BImage(String ialt, String isrc)
ialt
- the alt text string of this imageisrc
- the src string of this imagepublic BImage(String ialt, String ititle, String isrc)
ialt
- the alt text string of this imageititle
- the title text string of this imageisrc
- the src string of this imagepublic BImage(String ialt, String isrc, String iheight, String iwidth)
ialt
- the alt text string of this imageisrc
- the src string of this imageiheight
- the height string of the image (might contain %)iwidth
- the width string of the image (might contain %)public BImage(String ialt, String ititle, String iurl, String iheight, String iwidth)
ialt
- the alt text string of this imageititle
- the title text string of this imageisrc
- the src string of this imageiheight
- the height string of the image (might contain %)iwidth
- the width string of the image (might contain %)Method Detail |
---|
public BImage setAlt(String ialt)
ialt
- the alt text of this imagepublic String getAlt()
public BImage setTitle(String ititle)
ititle
- the title of this componentpublic String getTitle()
public BImage setSrc(String isrc)
isrc
- the src file stringpublic String getSrc()
public BImage setHeight(String iheight)
iheight
- the height og the imagepublic String getHeight()
public BImage setWidth(String iwidth)
iwidth
- the width of the imagepublic String getWidth()
public String toString(ViewContext vc)
toString
in class AbstractBComponent
super#toString(ViewContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |