All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.faces.portal.component.navbar.NavBarBase Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2000-2022 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
package com.liferay.faces.portal.component.navbar;
//J-

import javax.annotation.Generated;
import javax.faces.component.UIPanel;

import com.liferay.faces.util.component.Styleable;


/**
 * @author	Neil Griffin
 */
@Generated(value = "com.liferay.alloy.tools.builder.FacesBuilder")
public abstract class NavBarBase extends UIPanel implements Styleable {

	// Public Constants
	public static final String COMPONENT_TYPE = "com.liferay.faces.portal.component.navbar.NavBar";
	public static final String RENDERER_TYPE = "com.liferay.faces.portal.component.navbar.NavBarRenderer";

	// Protected Enumerations
	protected enum NavBarPropertyKeys {
		style,
		styleClass
	}

	public NavBarBase() {
		super();
		setRendererType(RENDERER_TYPE);
	}

	/**
	 * 

style attribute description:

* *
HTML passthrough attribute specifying the css style of the element.
*/ @Override public String getStyle() { return (String) getStateHelper().eval(NavBarPropertyKeys.style, null); } /** *

style attribute description:

* *
HTML passthrough attribute specifying the css style of the element.
*/ @Override public void setStyle(String style) { getStateHelper().put(NavBarPropertyKeys.style, style); } /** *

styleClass attribute description:

* *
List of CSS class names (separated by spaces) that are to be rendered within the class attribute.
*/ @Override public String getStyleClass() { // getStateHelper().eval(NavBarPropertyKeys.styleClass, null) is called because // super.getStyleClass() may return the styleClass name of the super class. String styleClass = (String) getStateHelper().eval(NavBarPropertyKeys.styleClass, null); return com.liferay.faces.util.component.ComponentUtil.concatCssClasses(styleClass, "portal-nav-bar"); } /** *

styleClass attribute description:

* *
List of CSS class names (separated by spaces) that are to be rendered within the class attribute.
*/ @Override public void setStyleClass(String styleClass) { getStateHelper().put(NavBarPropertyKeys.styleClass, styleClass); } } //J+




© 2015 - 2024 Weber Informatics LLC | Privacy Policy