public static Link getLink ( final String id , final String name , final String resource , final FontAwesome icon , final String targetOpen , final String style ) { final Link link = new Link ( name , new ExternalResource ( resource ) ) ; link . setId ( id ) ; link . setIcon ( icon ) ; link . setDescription ( name ) ; link . setTargetName ( targetOpen ) ; if ( style != null ) { link . setStyleName ( style ) ; } return link ; }
Method to create a link .