/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * Sets the title * * @param title */ public final void setTitle(BSDropDownToggleButton title) { getChildren().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)); this.title.addClass(BSComponentDropDownOptions.Dropdown_Toggle); title.addAttribute(ButtonAttributes.Data_Toggle, ToggleString); if (contents != null) { title.addAttribute(ButtonAttributes.Data_Target, contents.getID(true)); } } }
/** * Sets the title * * @param title */ public final void setTitle(BSDropDownToggleButton title) { getChildren().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)); this.title.addClass(BSComponentDropDownOptions.Dropdown_Toggle); title.addAttribute(ButtonAttributes.Data_Toggle, ToggleString); if (contents != null) { title.addAttribute(ButtonAttributes.Data_Target, contents.getID(true)); } } }
/** * 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 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 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 */ public final void setTitle(BSDropDownToggleTitle 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)); this.title.addClass(BSComponentDropDownOptions.Dropdown_Toggle); title.addAttribute(LinkAttributes.Data_Toggle, ToggleString); if (contents != null) { title.addAttribute(LinkAttributes.Data_Target, contents.getID(true)); } } }
/** * Sets the title * * @param title */ public final void setTitle(BSDropDownToggleTitle 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)); this.title.addClass(BSComponentDropDownOptions.Dropdown_Toggle); title.addAttribute(LinkAttributes.Data_Toggle, ToggleString); if (contents != null) { title.addAttribute(LinkAttributes.Data_Target, contents.getID(true)); } } }
/** * Sets the contents * * @param contents */ public final void setContents(List contents) { this.contents = contents; if (contents != null) { contents.addClass(BSComponentDropDownOptions.Dropdown_Menu); contents.addClass(""); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Toggle.toString(), ToggleString); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true)); } } }
/** * Sets the contents * * @param contents */ public final void setContents(List contents) { this.contents = contents; if (contents != null) { contents.addClass(BSComponentDropDownOptions.Dropdown_Menu); contents.addClass(""); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Toggle.toString(), ToggleString); title.asAttributeBase() .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true)); } } }