@Override public boolean equals(Object o) { return super.equals(o); } }
/** * Constructs a list item with the given text * * @param text */ public ListItem(String text) { super(ComponentTypes.ListItem); setText(text); }
/** * 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; }
/** * 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()); } }
@Override public JQUITab addTab(String title, JQUITabContent displayComponent) { return addTab(new JQUITab(new ListItem(title), displayComponent)); }
@Override public int hashCode() { return super.hashCode(); }
/** * 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; }
/** * 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()); } }
@Override public JQUITab addTab(String title, JQUITabContent displayComponent) { return addTab(new JQUITab(new ListItem(title), displayComponent)); }
@Override public int hashCode() { return super.hashCode(); }
/** * 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; }
/** * 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()); } }
@Override public boolean equals(Object o) { return super.equals(o); } }
@Override public JQUITab addTab(String title, JQUITabContent displayComponent) { return addTab(new JQUITab(new ListItem(title), displayComponent)); }
@Override public int hashCode() { return super.hashCode(); }
/** * Constructs a list item with the given text * * @param text */ public ListItem(String text) { super(ComponentTypes.ListItem); setText(text); }