@Component(tag="snippet", widgetClass="MetaWidget", parentTag={"template","snippet"}, childTag=@Component.ChildTag(value="snippet"), description="A Fujion resource that can be inserted into a template.") public class Snippet extends BaseCompositeComponent implements INamespace
TemplateBaseComponent.SubComponentIComposite.CompositePositionlog| Constructor and Description |
|---|
Snippet() |
Snippet(String src,
String anchor,
IComposite.CompositePosition position) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCompositeAnchor()
Returns the name of the anchor component within the parent namespace.
|
IComposite.CompositePosition |
getCompositePosition()
Returns the insertion point of the composite relative to its anchor.
|
protected void |
setCompositeAnchor(String anchor)
Sets the name of the anchor component within the parent namespace.
|
protected void |
setCompositeSource(String src)
Sets the URL of the source FSP for this composite.
|
protected void |
setCompositionPosition(IComposite.CompositePosition position) |
addChild, getCompositeRoot, setCompositePosition_attach, _initProps, addChild, addChild, addChildren, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterRemoveChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, detachChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getLastController, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, onDestroyTracked, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, swapTrackedComponents, sync, toString, trackComponent, trimify, untrackComponent, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientgetAttribute, hasAttribute, removeAttribute, setAttributepublic Snippet()
public Snippet(String src, String anchor, IComposite.CompositePosition position)
@Component.PropertySetter(value="src", bindable=false, description="The URL of the source FSP for this snippet.") protected void setCompositeSource(String src)
BaseCompositeComponentsetCompositeSource in class BaseCompositeComponentsrc - The URL of the source FSP for this composite.@Component.PropertyGetter(value="anchor", bindable=false, description="The name of the anchor component within the template.") public String getCompositeAnchor()
ICompositegetCompositeAnchor in interface ICompositegetCompositeAnchor in class BaseCompositeComponent@Component.PropertySetter(value="anchor", bindable=false, description="The name of the anchor component within the template.") protected void setCompositeAnchor(String anchor)
BaseCompositeComponentsetCompositeAnchor in class BaseCompositeComponentanchor - The name of the anchor component within the parent namespace.@Component.PropertyGetter(value="position", bindable=false, description="The insertion point of the snippet relative to its anchor.") public IComposite.CompositePosition getCompositePosition()
ICompositegetCompositePosition in interface ICompositegetCompositePosition in class BaseCompositeComponent@Component.PropertySetter(value="position", defaultValue="last", bindable=false, description="The insertion point of the snippet relative to its anchor.") protected void setCompositionPosition(IComposite.CompositePosition position)
Copyright © 2018 Fujion Framework. All rights reserved.