/*
 * #%L
 * GwtMaterial
 * %%
 * Copyright (C) 2015 - 2016 GwtMaterialDesign
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package gwt.material.design.client.ui;

import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.ui.HasText;
import gwt.material.design.client.base.HasHref;
import gwt.material.design.client.base.HasPosition;
import gwt.material.design.client.base.MaterialWidget;
import gwt.material.design.client.base.mixin.CssNameMixin;
import gwt.material.design.client.constants.Color;
import gwt.material.design.client.constants.CssName;
import gwt.material.design.client.constants.Position;
import gwt.material.design.client.ui.html.Div;

//@formatter:off

/**
 * <p>Material NavBrand is a child of MaterialNavBar that will contain text or image logo
 * <h3>UiBinder Usage:</h3>
 * <p>
 * <pre>
 * {@code
 * <m:MaterialNavBrand href="#Test" position="LEFT">Title</m:MaterialNavBrand>
 * }
 * </pre>
 * </p>
 *
 * @author kevzlou7979
 * @author Ben Dol
 * @see <a href="http://gwtmaterialdesign.github.io/gwt-material-demo/#navbar">Material NavBrand</a>
 */
//@formatter:on
public class MaterialNavBrand extends MaterialWidget implements HasText, HasHref, HasPosition {

    private Div div = new Div();

    private final CssNameMixin<MaterialNavBrand, Position> posMixin = new CssNameMixin<>(this);

    /**
     * Material NavBrand is a component wherein you can pass a text / logo branding of your app
     */
    public MaterialNavBrand() {
        super(Document.get().createAnchorElement(), CssName.BRAND_LOGO);
    }

    public MaterialNavBrand(String text) {
        this();
        setText(text);
    }

    public MaterialNavBrand(String text, Color textColor) {
        this(text);
        setTextColor(textColor);
    }

    @Override
    public void setText(String text) {
        add(div);
        div.getElement().setInnerText(text);
    }

    @Override
    public String getText() {
        return div.getElement().getInnerText();
    }

    @Override
    public String getHref() {
        return getElement().getAttribute("href");
    }

    @Override
    public void setHref(String href) {
        getElement().setAttribute("href", href);
    }

    @Override
    public String getTarget() {
        return getElement().getAttribute("target");
    }

    @Override
    public void setTarget(String target) {
        getElement().setAttribute("target", target);
    }

    @Override
    public Position getPosition() {
        return posMixin.getCssName();
    }

    @Override
    public void setPosition(Position position) {
        posMixin.setCssName(position);
    }
}

@@ -1696,17 +1696,8 @@
 ents
- HasText,
  Has
@@ -2277,38 +2277,24 @@
 or);%0A    %7D%0A%0A
-    @Override%0A
     public v
@@ -2386,38 +2386,24 @@
 xt);%0A    %7D%0A%0A
-    @Override%0A
     public S

Fix an issue with MaterialNavBrand.