/** * Returns the crumb link, never null * * @return */ @Override public Link getCrumbLink() { if (crumbLink == null) { setCrumbLink(new Link(StaticStrings.STRING_HASH)); } return crumbLink; }
/** * Gets the panel footer as a link. Class cast exception may occur if you have set the footer to a custom component * * @return */ public Component getPanelFooter() { if (panelFooter == null) { setPanelFooter(new Link(StaticStrings.STRING_HASH)); return panelFooter; } return panelFooter; }
/** * Returns the associated media link, never null * * @return */ @Override public Link getMediaLink() { if (mediaLink == null) { setMediaLink(new Link(STRING_HASH), true); } return mediaLink; }
/** * Returns the associated media link, never null * * @return */ @Override public Link getMediaLink() { if (mediaLink == null) { setMediaLink(new Link(STRING_HASH), true); } return mediaLink; }
/** * Returns the crumb link, never null * * @return */ @Override public Link getCrumbLink() { if (crumbLink == null) { setCrumbLink(new Link(StaticStrings.STRING_HASH)); } return crumbLink; }
/** * Returns the crumb link, never null * * @return */ @Override public Link getCrumbLink() { if (crumbLink == null) { setCrumbLink(new Link(StaticStrings.STRING_HASH)); } return crumbLink; }
/** * Gets the panel footer as a link. Class cast exception may occur if you have set the footer to a custom component * * @return */ public Component getPanelFooter() { if (panelFooter == null) { setPanelFooter(new Link(StaticStrings.STRING_HASH)); return panelFooter; } return panelFooter; }
/** * Returns the crumb link, never null * * @return */ @Override public Link getCrumbLink() { if (crumbLink == null) { setCrumbLink(new Link(StaticStrings.STRING_HASH)); } return crumbLink; }
/** * Returns the crumb link, never null * * @return */ @Override public Link getCrumbLink() { if (crumbLink == null) { setCrumbLink(new Link(StaticStrings.STRING_HASH)); } return crumbLink; }
/** * Any tab to be displayed * * @param tabHeader * @param tabDisplayComponent */ public JQUITab(ListItem tabHeader, JQUITabContent tabDisplayComponent) { if (tabDisplayComponent != null) { Link tabLink = new Link(STRING_HASH + tabDisplayComponent .getID(), null, tabHeader.getText(0) .toString()); tabHeader.setText((String) null); tabHeader.add(tabLink); } this.tabHeader = tabHeader; this.tabDisplayComponent = tabDisplayComponent; if (tabDisplayComponent != null) { tabDisplayComponent .addClass(JQUIThemeBlocks.UI_Widget_Content.toString()); } }
/** * Any tab to be displayed * * @param tabHeader * @param tabDisplayComponent */ public JQUITab(ListItem tabHeader, JQUITabContent tabDisplayComponent) { if (tabDisplayComponent != null) { Link tabLink = new Link(STRING_HASH + tabDisplayComponent .getID(), null, tabHeader.getText(0) .toString()); tabHeader.setText((String) null); tabHeader.add(tabLink); } this.tabHeader = tabHeader; this.tabDisplayComponent = tabDisplayComponent; if (tabDisplayComponent != null) { tabDisplayComponent .addClass(JQUIThemeBlocks.UI_Widget_Content.toString()); } }
/** * Any tab to be displayed * * @param tabHeader * @param tabDisplayComponent */ public JQUITab(ListItem tabHeader, JQUITabContent tabDisplayComponent) { if (tabDisplayComponent != null) { Link tabLink = new Link(STRING_HASH + tabDisplayComponent .getID(), null, tabHeader.getText(0) .toString()); tabHeader.setText((String) null); tabHeader.add(tabLink); } this.tabHeader = tabHeader; this.tabDisplayComponent = tabDisplayComponent; if (tabDisplayComponent != null) { tabDisplayComponent .addClass(JQUIThemeBlocks.UI_Widget_Content.toString()); } }
/** * Method addBreadCrumbItem ... * * @param text * of type String * @param active * of type boolean * @param url * of type String * @param tooltip * of type String * * @return BSBreadCrumbItem */ public BSBreadCrumbItem addBreadCrumbItem(String text, boolean active, String url, String tooltip) { BSBreadCrumbItem item = new BSBreadCrumbItem<>().setText(text); item.setActive(active); item.setCrumbLink(new Link(url)); crumbs.add(item); return item; }
/** * Method addBreadCrumbItem ... * * @param text * of type String * @param active * of type boolean * @param url * of type String * @param tooltip * of type String * * @return BSBreadCrumbItem */ public BSBreadCrumbItem addBreadCrumbItem(String text, boolean active, String url, String tooltip) { BSBreadCrumbItem item = new BSBreadCrumbItem<>().setText(text); item.setActive(active); item.setCrumbLink(new Link(url)); crumbs.add(item); return item; }
/** * Adds a new list item (tab header that matches the right card-body) to the header with the given active property * * @param text * @param active * * @return */ @NotNull public ListItem<?> addItem(String text, boolean active) { ListItem<?> item = new ListItem<>(); item.addClass(BSNavsOptions.Nav_Item); Link<?> link = new Link<>(StaticStrings.STRING_HASH); link.addClass(BSNavsOptions.Nav_Link); if (active) { link.addClass(BSNavsOptions.Active); } link.setText(text); item.add(link); add(item); return item; }
/** * Method addBreadCrumbItem ... * * @param text * of type String * @param active * of type boolean * @param url * of type String * @param tooltip * of type String * * @return BSBreadCrumbItem */ public BSBreadCrumbItem addBreadCrumbItem(String text, boolean active, String url, String tooltip) { BSBreadCrumbItem item = new BSBreadCrumbItem<>().setText(text); item.setActive(active); item.setCrumbLink(new Link(url)); crumbs.add(item); return item; }
/** * Adds a new list item (tab header that matches the right card-body) to the header with the given active property * * @param text * @param active * * @return */ @NotNull public ListItem<?> addItem(String text, boolean active) { ListItem<?> item = new ListItem<>(); item.addClass(BSNavsOptions.Nav_Item); Link<?> link = new Link<>(StaticStrings.STRING_HASH); link.addClass(BSNavsOptions.Nav_Link); if (active) { link.addClass(BSNavsOptions.Active); } link.setText(text); item.add(link); add(item); return item; }
/** * Adds a new list item (tab header that matches the right card-body) to the header with the given active property * * @param text * @param active * * @return */ @NotNull public ListItem<?> addItem(String text, boolean active) { ListItem<?> item = new ListItem<>(); item.addClass(BSNavsOptions.Nav_Item); Link<?> link = new Link<>(StaticStrings.STRING_HASH); link.addClass(BSNavsOptions.Nav_Link); if (active) { link.addClass(BSNavsOptions.Active); } link.setText(text); item.add(link); add(item); return item; }
/** * Creates a new theme pack item with the given values * * @param name * @param cssClass * @param iconImageLocation */ public ThemePackItem(String name, String cssClass, String iconImageLocation) { this.name = name; this.cssClass = cssClass; this.iconImageLocation = iconImageLocation; link = new Link(cssClass); add(link); if (iconImageLocation != null && !iconImageLocation.isEmpty()) { image = new Image(iconImageLocation); add(image); } span = new Span(); span.addClass("themeName"); span.setText(this.name); addClass(JQUIThemeBlocks.UI_Widget.toString()); addClass(JQUIThemeBlocks.UI_Widget_Input.toString()); addClass(JQUIThemeBlocks.UI_State_Active.toString()); link.add(span); }
/** * Creates a new theme pack item with the given values * * @param name * @param cssClass * @param iconImageLocation */ public ThemePackItem(String name, String cssClass, String iconImageLocation) { this.name = name; this.cssClass = cssClass; this.iconImageLocation = iconImageLocation; link = new Link(cssClass); add(link); if (iconImageLocation != null && !iconImageLocation.isEmpty()) { image = new Image(iconImageLocation); add(image); } span = new Span(); span.addClass("themeName"); span.setText(this.name); addClass(JQUIThemeBlocks.UI_Widget.toString()); addClass(JQUIThemeBlocks.UI_Widget_Input.toString()); addClass(JQUIThemeBlocks.UI_State_Active.toString()); link.add(span); }