public class ShapeBuilder
extends org.apache.wicket.markup.html.WebMarkupContainer
Modifier and Type | Class and Description |
---|---|
static class |
ShapeBuilder.Orientation |
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
ShapeBuilder(String id)
Creates a shape at the position of the given id
|
ShapeBuilder(String id,
org.apache.wicket.model.IModel<?> model)
Creates a shape at the position of the given id
|
Modifier and Type | Method and Description |
---|---|
protected String |
getDimension()
Gets the dimension of the shape as string - height and width
|
String |
getHeight()
Gets the height of the shape
|
String |
getMargin()
Gets the maring of the shape
|
ShapeBuilder.Orientation |
getOrientation()
The orientation the shape is positioned
|
Shape |
getShape()
Gets the shape type the shape is using
|
Shape |
getTransition()
Gets the transition shape
|
String |
getWidth()
Gets the with of the shape
|
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag) |
ShapeBuilder |
orientation(ShapeBuilder.Orientation orientation)
Uses the given orientation
|
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
ShapeBuilder |
shape(Shape shape)
Uses the given shape
|
ShapeBuilder |
transition(Shape transition)
Uses the given transition shape
|
ShapeBuilder |
useHeight(String height)
Uses the given height for the shape
|
ShapeBuilder |
useWidth(String width)
Uses the given width for the shape
|
ShapeBuilder |
withMargin(String margin)
Uses the given margin for the shape
|
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public ShapeBuilder(String id)
id
- the it to position the shapepublic ShapeBuilder(String id, org.apache.wicket.model.IModel<?> model)
id
- the it to position the shapemodel
- the model this shape containsprotected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.Component
public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.Component
protected String getDimension()
public String getWidth()
public ShapeBuilder useWidth(String width)
width
- the width to usepublic String getHeight()
public ShapeBuilder useHeight(String height)
height
- the height to usepublic String getMargin()
public ShapeBuilder withMargin(String margin)
margin
- the margin to usepublic Shape getShape()
public ShapeBuilder shape(Shape shape)
shape
- the shapepublic Shape getTransition()
public ShapeBuilder transition(Shape transition)
transition
- the transition shapepublic ShapeBuilder.Orientation getOrientation()
public ShapeBuilder orientation(ShapeBuilder.Orientation orientation)
orientation
- the orientation to useCopyright © 2015. All rights reserved.