/** * <b>Affected Elements:</b> * <ul> * <li>-label = label next to checkbox.</li> * </ul> * * @see UIObject#onEnsureDebugId(String) */ @Override protected void onEnsureDebugId(String baseID) { super.onEnsureDebugId(baseID); ensureDebugId(labelElem, baseID, "label"); ensureDebugId(inputElem, baseID, "input"); labelElem.setHtmlFor(inputElem.getId()); }
/** * <b>Affected Elements:</b> * <ul> * <li>-label = label next to checkbox.</li> * </ul> * * @see UIObject#onEnsureDebugId(String) */ @Override protected void onEnsureDebugId(String baseID) { super.onEnsureDebugId(baseID); ensureDebugId(labelElem, baseID, "label"); ensureDebugId(inputElem, baseID, "input"); labelElem.setHtmlFor(inputElem.getId()); }
/** * <b>Affected Elements:</b> * <ul> * <li>-label = label next to checkbox.</li> * </ul> * * @see UIObject#onEnsureDebugId(String) */ @Override protected void onEnsureDebugId(String baseID) { super.onEnsureDebugId(baseID); ensureDebugId(labelElem, baseID, "label"); ensureDebugId(inputElem, baseID, "input"); labelElem.setHtmlFor(inputElem.getId()); }
}); hideCheckBox.addStyleName(resources.cellTableStyle().cellTableHideServersCheckBox()); hideCheckBox.ensureDebugId("runtimeInfoHideServersCheckBox");
/** Create view. */ @Inject protected CommitViewImpl(GitResources res, GitLocalizationConstant locale) { this.res = res; this.locale = locale; this.message = new ShiftableTextArea(); this.ensureDebugId("git-commit-window"); this.setTitle(locale.commitTitle()); Widget widget = uiBinder.createAndBindUi(this); this.setWidget(widget); btnCancel = addFooterButton( locale.buttonCancel(), "git-commit-cancel", event -> delegate.onCancelClicked()); btnCommit = addFooterButton( locale.buttonCommit(), "git-commit-commit", event -> delegate.onCommitClicked(), true); remoteBranches = new ListBox(); remoteBranches.setEnabled(false); remoteBranches.getElement().setAttribute("style", "width: 230px"); pushAfterCommit = new CheckBox(); pushAfterCommit.setHTML(locale.commitPushCheckboxTitle()); pushAfterCommit.ensureDebugId("push-after-commit-check-box"); pushAfterCommit.addValueChangeHandler(event -> remoteBranches.setEnabled(event.getValue())); pushAfterCommit.addStyleName(res.gitCSS().spacing()); addFooterWidget(pushAfterCommit); addFooterWidget(remoteBranches); }