|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.comp.AbstractBComponent | +--org.enhydra.barracuda.core.comp.BComponent | +--org.enhydra.barracuda.core.comp.BAction | +--org.enhydra.barracuda.core.comp.BLink
BLink is used to manipulate any element in a DOM template that is capable of generating a URL request. In the case of HTML, this would typically include <a>, <input>, and <button> elements.
In most cases you will not actually need to bind the component to a view in order to use it--if you return it from a model, this will be done for you automatically. If however, you intend to use the component standalone (ie. manually attaching it to a specific node in the DOM) or inline (ie. in a toString()), then you MUST BIND IT TO A VIEW before rendering, or an error will be generated.
Because BLink may often be used for inling, it includes constructors that conveniently allow you to specify the a ViewContext (ie. instead of an actual View)
Field Summary | |
protected boolean |
allowMarkupInText
|
protected static org.apache.log4j.Logger |
logger
|
protected java.lang.String |
target
|
protected java.lang.String |
text
|
Fields inherited from class org.enhydra.barracuda.core.comp.BAction |
actionEvent, actionUrl, disableBackButton, listeners |
Fields inherited from class org.enhydra.barracuda.core.comp.BComponent |
attrs, CACHING_MARKER, enabled, name, rs, VISIBILITY_MARKER, visible |
Fields inherited from class org.enhydra.barracuda.core.comp.AbstractBComponent |
children, dvc, isStepChild, parent, preventCaching, statemap, stepChildren, tempViews, validated, views |
Constructor Summary | |
BLink()
Public noargs constructor |
|
BLink(java.lang.String itext)
Public constructor which creates the component and sets the text, and target values. |
|
BLink(java.lang.String itext,
ControlEvent iactionEvent)
Public constructor which creates the component and sets the text and action values. |
|
BLink(java.lang.String itext,
ControlEvent iactionEvent,
ViewContext idvc)
Public constructor which creates the component and sets the text and action values. |
|
BLink(java.lang.String itext,
java.lang.String iactionUrl)
Public constructor which creates the component and sets the text and action values. |
|
BLink(java.lang.String itext,
java.lang.String iactionUrl,
ViewContext idvc)
Public constructor which creates the component and sets the text and action values. |
Method Summary | |
boolean |
allowMarkupInText()
See if we allow markup in the text |
java.lang.String |
getTarget()
Get the target for this particular component |
java.lang.String |
getText()
Get the text for this particular component |
void |
setAllowMarkupInText(boolean val)
Do we wish to allow markup in this text (defaults to false) |
void |
setTarget(java.lang.String itarget)
Set the target for this particular component |
void |
setText(java.lang.String itext)
Set the text for this particular component |
Methods inherited from class org.enhydra.barracuda.core.comp.BAction |
addEventListener, getAction, getAction, getDisableBackButton, getParams, removeEventListener, setAction, setAction, setDisableBackButton, setParam, setParam |
Methods inherited from class org.enhydra.barracuda.core.comp.BComponent |
addView, getAttr, getAttrMap, getFirstView, getName, getRenderStrategy, getViews, isEnabled, isVisible, postRender, preRender, removeAllViews, removeView, render, render, renderView, renderView, setAttr, setEnabled, setEnabled, setName, setRenderStrategy, setView, setVisible, setVisible, supports |
Methods inherited from class org.enhydra.barracuda.core.comp.AbstractBComponent |
addChild, addStepChild, addStepChild, addTempView, destroyCycle, findComponentMap, findRendererFactory, getChild, getChildren, getDefaultViewContext, getParent, getPreventCaching, getRenderer, getRenderer, getRootComponent, getState, getStateKeys, getStateValues, hasChildren, hasViews, initCycle, installRendererFactory, invalidate, isStepChild, printStackTrace, printStackTrace, printStackTrace, putState, removeAll, removeAllStepChildren, removeChild, removeChild, removeState, setDefaultViewContext, setParent, setPreventCaching, toRef, toString, toString, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected java.lang.String text
protected java.lang.String target
protected boolean allowMarkupInText
Constructor Detail |
public BLink()
public BLink(java.lang.String itext)
public BLink(java.lang.String itext, java.lang.String iactionUrl)
public BLink(java.lang.String itext, java.lang.String iactionUrl, ViewContext idvc)
public BLink(java.lang.String itext, ControlEvent iactionEvent)
public BLink(java.lang.String itext, ControlEvent iactionEvent, ViewContext idvc)
Method Detail |
public void setText(java.lang.String itext)
public java.lang.String getText()
public void setTarget(java.lang.String itarget)
public java.lang.String getTarget()
public void setAllowMarkupInText(boolean val)
val
- true if we wish to allow markup in the textpublic boolean allowMarkupInText()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |