}
@Nonnull
private static List<LinkProvider> getLinkProviders() {
List<LinkProvider> providers = new ArrayList<LinkProvider>();
providers.add( new NavigationLinkProvider() {
@Nonnull
public WebMarkupContainer createLink( @Nonnull @NonNls String id ) {
return new ExternalLink( id, "http://www.heise.de" );
}
@Nonnull
public WebComponent createLabel( @Nonnull @NonNls String id ) {
return new Label( id, "heise" );
}
public boolean isActive() {
return false;
}
} );
providers.add( new NavigationLinkProvider() {
@Nonnull
public WebMarkupContainer createLink( @Nonnull @NonNls String id ) {
return ( WebMarkupContainer ) new ExternalLink( id, "http://www.chip.de" ).setEnabled( false );
}
@Nonnull
public WebComponent createLabel( @Nonnull @NonNls String id ) {
return new Label( id, "chip" );
}
public boolean isActive() {
return true;
}
} );
providers.add( new NavigationLinkProvider() {
@Nonnull
public WebMarkupContainer createLink( @Nonnull @NonNls String id ) {
return ( WebMarkupContainer ) new ExternalLink( id, "http://www.spiegel.de" ).setEnabled( true );
}