@Override public HTMLElement createContainer() { Div div = (Div) Window.getDocument().createElement("div"); return div; }
@Override public HTMLElement createRow(LayoutRow layoutRow) { Div div = (Div) Window.getDocument().createElement("div"); div.setClassName("row"); return div; }
@Override public HTMLElement createRow(LayoutRow layoutRow) { Div div = (Div) Window.getDocument().createElement("div"); div.setClassName("row"); return div; }
public void addAction(final EventListener<MouseEvent> onclick, final String label) { final HTMLElement a = getDocument().createElement("a"); a.setTextContent(label); a.setOnclick(onclick); final HTMLElement li = getDocument().createElement("li"); li.appendChild(a); actionsItems.appendChild(li); } }
private Option newOption(final String text, final String value) { final Option option = (Option) Window.getDocument().createElement("option"); option.setTextContent(text); option.setValue(value); return option; }
@Override public HTMLElement createColumn(LayoutColumn layoutColumn) { Div div = (Div) Window.getDocument().createElement("div"); String colSize = ColumnSizeBuilder.buildColumnSize(new Integer(layoutColumn.getSpan())); div.setClassName(colSize); return div; }
private void appendHorizontalRule() { final HTMLElement hr = getDocument().createElement("hr"); addCSSClass(hr, "kie-dock__divider"); filterList.appendChild(hr); }
@Override public void setPotentialOwnersInfo(final List<String> owners) { removeAllChildren(usersGroupsControlsPanel); owners.forEach(owner -> { HTMLElement li = getDocument().createElement("li"); li.setTextContent(owner); usersGroupsControlsPanel.appendChild(li); }); }
@Override public HTMLElement createColumn(LayoutColumn layoutColumn) { Div div = (Div) Window.getDocument().createElement("div"); String colSize = ColumnSizeBuilder.buildColumnSize(new Integer(layoutColumn.getSpan())); div.setClassName(colSize); return div; }
private Option newOption(final String text, final String value) { final Option option = (Option) Window.getDocument().createElement("option"); option.setTextContent(text); option.setValue(value); return option; }
private Option newOption(final String text, final String value) { final Option option = (Option) Window.getDocument().createElement("option"); option.setTextContent(text); option.setValue(value); return option; }
public void displayDisabledAction(final CaseRolesPresenter.CaseRoleAction action) { removeCSSClass(actions, "hidden"); final HTMLElement li = getDocument().createElement("li"); final HTMLElement a = getDocument().createElement("a"); a.setTextContent(action.label()); addCSSClass(li, "disabled"); li.appendChild(a); actionsItems.appendChild(li); }
private void appendFormGroup(final HTMLElement element) { Div div = (Div) getDocument().createElement("div"); addCSSClass(div, "form-group"); div.appendChild(element); filterList.appendChild(div); }
public void displayDisabledAction(final CaseRolesPresenter.CaseRoleAction action) { removeCSSClass(actions, "hidden"); final HTMLElement li = getDocument().createElement("li"); final HTMLElement a = getDocument().createElement("a"); a.setTextContent(action.label()); addCSSClass(li, "disabled"); li.appendChild(a); actionsItems.appendChild(li); }
private void appendSectionTitle(final String title) { final Heading heading = (Heading) getDocument().createElement("h5"); heading.setTextContent(title); addCSSClass(heading, "kie-dock__heading--section"); filterList.appendChild(heading); }
public void addAction(final CaseCommentsPresenter.CaseCommentAction action) { removeCSSClass(actionsButton, "disabled"); final HTMLElement a = getDocument().createElement("a"); a.setTextContent(action.label()); a.setOnclick(e -> action.execute()); final HTMLElement li = getDocument().createElement("li"); li.appendChild(a); actionsItems.appendChild(li); }
public void addAction(final CaseActionsPresenter.CaseActionAction action) { removeCSSClass(actions, "hidden"); final HTMLElement a = getDocument().createElement("a"); a.setTextContent(action.label()); a.setOnclick(e -> action.execute()); final HTMLElement li = getDocument().createElement("li"); li.appendChild(a); actionsItems.appendChild(li); }
private HTMLElement defaultOption() { final HTMLElement option = Window.getDocument().createElement("option"); option.setAttribute("value", ""); option.setAttribute("disabled", ""); option.setAttribute("selected", ""); option.setTextContent(translationService.getTranslation(SourceConfigurationPageView_SelectOption_placeholder)); return option; }
private HTMLElement defaultOption() { final HTMLElement option = Window.getDocument().createElement("option"); option.setAttribute("value", ""); option.setAttribute("disabled", ""); option.setAttribute("selected", ""); option.setTextContent(translationService.getTranslation(SourceConfigurationPageView_SelectOption_placeholder)); return option; }
@Override public void infiniteRecursionError(String cause) { Div div = (Div) Window.getDocument().createElement("div"); div.setClassName(slidesDiv.getChildNodes().getLength() == 0 ? "item active" : "item"); alertBox.setMessage(NavigationConstants.INSTANCE.navCarouselDragComponentInfiniteRecursion() + " " + cause); div.appendChild(alertBox.getElement()); slidesDiv.appendChild(div); } }