Package org.wicketstuff.html5.shape
Class ShapeBuilder
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.wicketstuff.html5.shape.ShapeBuilder
- All Implemented Interfaces:
Serializable,Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IMetadataContext<Serializable,,Component> IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
Creates a shape. The initial with / height is set to 100%, margin is set to 0
- Author:
- Tobias Soloschenko
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS -
Constructor Summary
ConstructorsConstructorDescriptionShapeBuilder(String id) Creates a shape at the position of the given idShapeBuilder(String id, IModel<?> model) Creates a shape at the position of the given id -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the dimension of the shape as string - height and widthGets the height of the shapeGets the maring of the shapeThe orientation the shape is positionedgetShape()Gets the shape type the shape is usingGets the transition shapegetWidth()Gets the with of the shapeprotected voidorientation(ShapeBuilder.Orientation orientation) Uses the given orientationvoidrenderHead(IHeaderResponse response) Uses the given shapetransition(Shape transition) Uses the given transition shapeUses the given height for the shapeUses the given width for the shapewithMargin(String margin) Uses the given margin for the shapeMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, getMarkupTag, 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, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ShapeBuilder
Creates a shape at the position of the given id- Parameters:
id- the it to position the shape
-
ShapeBuilder
Creates a shape at the position of the given id- Parameters:
id- the it to position the shapemodel- the model this shape contains
-
-
Method Details
-
onComponentTag
- Overrides:
onComponentTagin classComponent
-
renderHead
- Specified by:
renderHeadin interfaceIHeaderContributor- Overrides:
renderHeadin classComponent
-
getDimension
Gets the dimension of the shape as string - height and width- Returns:
- the dimension settings as string
-
getWidth
Gets the with of the shape- Returns:
- the with of the shape
-
useWidth
Uses the given width for the shape- Parameters:
width- the width to use- Returns:
- the shape
-
getHeight
Gets the height of the shape- Returns:
- the height of the shape
-
useHeight
Uses the given height for the shape- Parameters:
height- the height to use- Returns:
- the shape
-
getMargin
Gets the maring of the shape- Returns:
- the margin of the shape
-
withMargin
Uses the given margin for the shape- Parameters:
margin- the margin to use- Returns:
- the shape
-
getShape
Gets the shape type the shape is using- Returns:
- the shape type
-
shape
Uses the given shape- Parameters:
shape- the shape- Returns:
- the shape
-
getTransition
Gets the transition shape- Returns:
- the transition shape
-
transition
Uses the given transition shape- Parameters:
transition- the transition shape- Returns:
- the shape
-
getOrientation
The orientation the shape is positioned- Returns:
- the orientation
-
orientation
Uses the given orientation- Parameters:
orientation- the orientation to use- Returns:
- the shape
-