@Override public boolean equals(Object o) { return super.equals(o); } }
@Override public int hashCode() { return super.hashCode(); } }
/** * Sets the contents * * @param contents */ @Override @SuppressWarnings("unchecked") @NotNull public final J setContents(List contents) { this.contents = contents; if (contents != null) { contents.addClass(BSDropDownOptions.Dropdown_Menu); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true)); } return (J) this; }
/** * Sets the title * * @param title */ @Override @SuppressWarnings("unchecked") @NotNull public final J setTitle(BSDropDownToggleTitleButton title) { remove(this.title); this.title = title; if (title != null) { java.util.List tempList = new ArrayList<>(getChildren()); tempList.add(0, this.title); setChildren(new LinkedHashSet<>(tempList)); if (contents != null) { title.addAttribute(ButtonAttributes.Data_Target, contents.getID(true)); } } return (J) this; }
/** * */ @Override public void init() { if (!isInitialized() && carousel != null) { for (int i = 0; i < carousel.getSlides() .size(); i++) { BSCarouselIndicatorItem newSlideIndicator = new BSCarouselIndicatorItem(carousel.getID(true), i, i == carousel.getActiveSlide()); add(newSlideIndicator); } } super.init(); }
/** * Adds a list item to this list * * @param textToAdd * * @return */ @SuppressWarnings("unchecked") public ListItem<?> addItem(String textToAdd) { ListItem li = new ListItem(textToAdd); add((C) 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; } }
/** * Sets the contents * * @param contents */ @Override @SuppressWarnings("unchecked") @NotNull public final J setContents(List contents) { this.contents = contents; if (contents != null) { contents.addClass(BSDropDownOptions.Dropdown_Menu); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true)); } return (J) this; }
/** * Sets the title * * @param title */ @Override @SuppressWarnings("unchecked") @NotNull public final J setTitle(BSDropDownToggleTitleLink title) { remove(this.title); this.title = title; if (title != null) { java.util.List tempList = new ArrayList<>(getChildren()); tempList.add(0, this.title); setChildren(new LinkedHashSet<>(tempList)); if (contents != null) { title.addAttribute(LinkAttributes.Data_Target, contents.getID(true)); } } return (J) this; }
/** * */ @Override public void init() { if (!isInitialized() && carousel != null) { for (int i = 0; i < carousel.getSlides() .size(); i++) { BSCarouselIndicatorItem newSlideIndicator = new BSCarouselIndicatorItem(carousel.getID(true), i, i == carousel.getActiveSlide()); add(newSlideIndicator); } } super.init(); }
/** * Adds a list item to this list * * @param textToAdd * * @return */ @SuppressWarnings("unchecked") public ListItem<?> addItem(String textToAdd) { ListItem li = new ListItem(textToAdd); add((C) 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; } }
@Override public boolean equals(Object o) { return super.equals(o); }
@Override public int hashCode() { return super.hashCode(); }
/** * Sets the contents * * @param contents */ @Override @SuppressWarnings("unchecked") @NotNull public final J setContents(List contents) { this.contents = contents; if (contents != null) { contents.addClass(BSDropDownOptions.Dropdown_Menu); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true)); } return (J) this; }
/** * Sets the title * * @param title */ @Override @SuppressWarnings("unchecked") @NotNull public final J setTitle(BSDropDownToggleTitleButton title) { remove(this.title); this.title = title; if (title != null) { java.util.List tempList = new ArrayList<>(getChildren()); tempList.add(0, this.title); setChildren(new LinkedHashSet<>(tempList)); if (contents != null) { title.addAttribute(ButtonAttributes.Data_Target, contents.getID(true)); } } return (J) this; }
/** * */ @Override public void init() { if (!isInitialized() && carousel != null) { for (int i = 0; i < carousel.getSlides() .size(); i++) { BSCarouselIndicatorItem newSlideIndicator = new BSCarouselIndicatorItem(carousel.getID(true), i, i == carousel.getActiveSlide()); add(newSlideIndicator); } } super.init(); }