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

com.jwebmp.plugins.bootstrap.breadcrumbs.BSBreadcrumbs Maven / Gradle / Ivy

There is a newer version: 0.66.0.1
Show newest version
/*
 * Copyright (C) 2017 Marc Magon
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package com.jwebmp.plugins.bootstrap.breadcrumbs;

import com.jwebmp.core.base.html.List;
import com.jwebmp.core.plugins.ComponentInformation;

import java.util.ArrayList;

/**
 * Breadcrumb
 * 

* Indicate the current page’s location within a navigational hierarchy. Separators are automatically added in CSS through ::before and content. *

* * @author Marc Magon * @version 1.0 * @since 29 Aug 2015 */ @ComponentInformation(name = "Bootstrap Breadcrumbs", description = "Indicate the current page’s location within a navigational hierarchy. Separators are automatically added in CSS through ::before and content.", url = "https://v4-alpha.getbootstrap.com/components/breadcrumb/", wikiUrl = "https://github.com/GedMarc/JWebSwing-BootstrapPlugin/wiki") public class BSBreadcrumbs> extends List { private static final long serialVersionUID = 1L; /** * Breadcrumbs *

* Indicate the current page’s location within a navigational hierarchy. Separators are automatically added in CSS through ::before and content. */ @SuppressWarnings("") public BSBreadcrumbs() { addClass(BSComponentBreadcrumbOptions.Breadcrumb); } @Override public void preConfigure() { if (!isConfigured()) { getChildren().forEach(next -> next.removeClass(BSComponentBreadcrumbOptions.Active)); new ArrayList<>(getChildren()).get(getChildren().size() - 1) .addClass(BSComponentBreadcrumbOptions.Active); } super.preConfigure(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } return super.equals(obj); } @Override public int hashCode() { int hash = 7; hash = 79 * hash + (getID().hashCode()); return hash; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy