/** * Returns a list item of the specified text * * @param textToAdd * * @return */ public ListItemChildren addItem(String textToAdd) { ListItem li = new ListItem(textToAdd); add(li); return li; }
/** * 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; }
/** * Returns a list item of the specified text * * @param textToAdd * * @return */ public ListItemChildren addItem(String textToAdd) { ListItem li = new ListItem(textToAdd); add(li); return li; }
/** * 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; }
/** * Returns a list item of the specified text * * @param textToAdd * * @return */ public ListItemChildren addItem(String textToAdd) { ListItem li = new ListItem(textToAdd); add(li); return li; }
/** * 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; }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ @SuppressWarnings("unchecked") public List<?, ?, ?, ?> addList(String textToAdd) { ListItem lit = new ListItem(textToAdd); List li = new List(false); lit.add(li); add((C) lit); return li; }
li.add(link); getNavigation().add(li); getTabContent().add(tab.getTabContent());
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }
li.add(link); getNavigation().add(li); getTabContent().add(tab.getTabContent());
/** * Returns a list of the specified text * * @param textToAdd * * @return */ @SuppressWarnings("unchecked") public List<?, ?, ?, ?> addList(String textToAdd) { ListItem lit = new ListItem(textToAdd); List li = new List(false); lit.add(li); add((C) lit); return li; }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ @SuppressWarnings("unchecked") public List<?, ?, ?, ?> addList(String textToAdd) { ListItem lit = new ListItem(textToAdd); List li = new List(false); lit.add(li); add((C) lit); return li; }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }
/** * 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()); } }