001package org.nasdanika.html.bootstrap.impl;
002
003import org.nasdanika.html.HTMLElement;
004import org.nasdanika.html.bootstrap.BootstrapElement;
005import org.nasdanika.html.bootstrap.BootstrapFactory;
006
007/**
008 * Bootstrap element which wraps {@link HTMLElement}.
009 * @author Pavel Vlasov
010 *
011 * @param <H>
012 */
013public class WrappingBootstrapElementImpl<H extends HTMLElement<?>, B extends BootstrapElement<H,?>> extends BootstrapElementImpl<H,B> {
014
015        protected H htmlElement;
016
017        public WrappingBootstrapElementImpl(BootstrapFactory factory, H htmlElement) {
018                super(factory);
019                this.htmlElement = htmlElement;
020        }
021
022        @Override
023        public H toHTMLElement() {
024                return htmlElement;
025        }
026
027}