org.jboss.as.console.client.widgets.nav.Predicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.widgets.nav;
import org.jboss.ballroom.client.layout.LHSNavTreeItem;
/**
* @author Heiko Braun
* @date 1/19/12
*/
public final class Predicate {
private String subsysName;
private LHSNavTreeItem navItem;
public Predicate(String subsysName, LHSNavTreeItem navItem) {
this.subsysName = subsysName;
this.navItem = navItem;
}
public boolean matches(String current) {
return current.equals(subsysName);
}
public LHSNavTreeItem getNavItem() {
return navItem;
}
}