Usage Example:
Thumbnail thumbnail = Thumbnail.create()
.appendChild(someImageElement)
.withTitle(titleHandler)
.withBody(bodyHandler);
See also :
public void Thumbnail()
public static Thumbnail create()
a new Thumbnail instance.
public HTMLElement getAppendTarget()
the main body HTMLElement of the thumbnail.
public Thumbnail setDirection(ThumbnailDirection direction)
direction
the direction the thumbnail should take. This affects its visual appearance.
the current Thumbnail instance for method chaining.
public Thumbnail appendChild(HTMLImageElement img)
img
the image element to be appended.
the current Thumbnail instance for method chaining.
public Thumbnail appendChild(IsElement<?> element)
element
the element to be appended.
the current Thumbnail instance for method chaining.
public Thumbnail appendChild(Node node)
node
the node to be appended.
the current Thumbnail instance for method chaining.
public HTMLDivElement element()
the main HTMLDivElement of the thumbnail.
public Thumbnail withHeader(ChildHandler<Thumbnail, DivElement> handler)
handler
the handler that will be applied to the thumbnail header.
the current Thumbnail instance for method chaining.
public Thumbnail withTitle(ChildHandler<Thumbnail, DivElement> handler)
handler
the handler that will be applied to the thumbnail title.
the current Thumbnail instance for method chaining.
public Thumbnail withTitle()
the current Thumbnail instance for method chaining.
public Thumbnail withTail(ChildHandler<Thumbnail, DivElement> handler)
handler
the handler that will be applied to the thumbnail tail.
the current Thumbnail instance for method chaining.
public Thumbnail withTail()
the current Thumbnail instance for method chaining.
public Thumbnail appendChild(FooterContent<?> footerContent)
footerContent
the footer content to be appended.
the current Thumbnail instance for method chaining.
public Thumbnail appendChild(HeaderContent<?> headerContent)
headerContent
the header content to be appended.
the current Thumbnail instance for method chaining.
public Thumbnail withFooter(ChildHandler<Thumbnail, DivElement> handler)
handler
the handler that will be applied to the thumbnail footer.
the current Thumbnail instance for method chaining.
public Thumbnail withFooter()
the current Thumbnail instance for method chaining.
public Thumbnail withBody(ChildHandler<Thumbnail, DivElement> handler)
handler
the handler that will be applied to the thumbnail body.
the current Thumbnail instance for method chaining.
public DivElement getHeader()
the header div element.
public DivElement getTitle()
the title div element.
public DivElement getBody()
the body div element.
public DivElement getTail()
the tail div element.
public DivElement getFooter()
the footer div element.