@Override protected void onInitialize() { super.onInitialize(); srOnly = new Label("srOnly", createLabelModel()); add(srOnly); }
@Override protected void onInitialize() { super.onInitialize(); this.widgetBehavior = (WindowBehavior) JQueryWidget.newWidgetBehavior(this); this.add(this.widgetBehavior); }
@Override protected void onInitialize() { super.onInitialize(); this.widgetBehavior = (WindowBehavior) JQueryWidget.newWidgetBehavior(this); this.add(this.widgetBehavior); }
@Override protected void onInitialize() { super.onInitialize(); addSortableBehavior(getColumnContainer()); }
@Override protected void onInitialize() { super.onInitialize(); addSortableBehavior(getColumnContainer()); }
@Override protected void onInitialize() { super.onInitialize(); add(link = newLink("link")); }
@Override protected void onInitialize() { super.onInitialize(); // As the Form is posted, Form#findSubmittingButton() expect to retrieve this component by the request parameter 'name'. // But as this component is not an input, it does not have a name attribute. Thus, it should match the #getInputName() path this.add(new HiddenField<Serializable>("submitter", new Model<Serializable>()).add(AttributeModifier.replace("name", this.getInputName()))); }
@Override protected void onInitialize() { super.onInitialize(); String swfUrl = toAbsolutePath(urlFor(new PackageResourceReference(OpenFlashChart.class, "res/open-flash-chart.swf"), null).toString()); // see http://ofc2dz.com/OFC2/downloads/ofc2Downloads.html // http://ofc2dz.com/OFC2/examples/MiscellaneousPatches.html (Passing the Char Parameter "ID" when saving images (23-Feb-2009)) swfUrl = swfUrl.concat("?id=").concat(getMarkupId()); // System.out.println("swfUrl = " + swfUrl); swf = new SWFObject(swfUrl, width, height, "9.0.0"); add(swf); }
@Override protected void onInitialize() { super.onInitialize(); OMethodsManager.get().populate(this, MethodPlace.DASHBOARD_SETTINGS, getModel()); }
@Override protected void onInitialize() { super.onInitialize(); final KendoDataSource dataSource = new KendoDataSource(this); this.add(this.newDataView("listView", dataSource, this.provider, this.options)); this.add(this.newPager("pager", dataSource)); }
@Override protected void onInitialize() { super.onInitialize(); add(new WebMarkupContainer("pin") .add(new AttributeAppender("style", getBackgroundColorModel()))); }
@Override protected void onInitialize() { super.onInitialize(); final KendoDataSource dataSource = new KendoDataSource(this); this.add(this.newDataView("listView", dataSource, this.provider, this.options)); this.add(this.newPager("pager", dataSource)); }
@Override protected void onInitialize() { super.onInitialize(); CodeComment comment = getModelObject(); PageParameters params = ProjectBlobPage.paramsOf(comment); Link<Void> link = new BookmarkablePageLink<Void>("link", ProjectBlobPage.class, params); link.add(new Label("label", comment.getMarkPos().getPath())); add(link); }
@Override protected void onInitialize() { super.onInitialize(); this.dialog = this.newDialog("dialog", this.titleModel, this.getModel()); this.add(this.dialog); this.button = this.newAjaxButton("button", dialog); this.add(this.button); this.button.add(new Label("label", this.labelModel).setRenderBodyOnly(true)); }
@Override protected void onInitialize() { super.onInitialize(); final IModel<Date> model = getModel(); final YuiDatePickerSettings settings = getSettings(); final YuiDateTimeField dateTimeField = newYuiDateTimeField("widget", model, settings); final boolean currentDateLinkVisible = config.getAsBoolean(CONFIG_SHOW_TODAY_BUTTON, true); dateTimeField.setCurrentDateLinkVisible(currentDateLinkVisible); add(dateTimeField); }
@Override protected void onInitialize() { super.onInitialize(); OSourceGeneratorConfig config = new OSourceGeneratorConfig(); config.setClasses(getModelObject()); config.setMode(GeneratorMode.MODULE); Optional<OModuleSource> sources = sourceGenerator.generateSource(config); String src = sources.map(OModuleSource::getSrc).orElseThrow(IllegalStateException::new); add(editorPanel = new JavaCodeEditorPanel("javaPanel", Model.of(src), DisplayMode.VIEW.asModel())); add(createCopyLink("copyLink")); setOutputMarkupPlaceholderTag(true); }
@Override protected void onInitialize() { super.onInitialize(); IssueChange change = getModelObject(); UserIdent userIdent = UserIdent.of(UserFacade.of(change.getUser()), change.getUserName()); add(new Label("user", userIdent.getName()).setVisible(!(userIdent instanceof SystemUserIdent))); add(new Label("description", change.getData().getDescription())); add(new Label("age", DateUtils.formatAge(change.getDate()))); add(change.getData().render("body", change)); }
@Override protected void onInitialize() { super.onInitialize(); add(newIcon("icon")); add(new Label("title", getTitleModel())); add(createFooterPanel("widgetFooter")); getDashboardPanel().getDashboardSupport().initWidget(this); loadSettings(); OMethodsManager.get().populate(this, MethodPlace.ACTIONS, getModel(), null, null); }
@Override protected void onInitialize() { super.onInitialize(); ScriptResult historyItem = getModelObject(); ScriptResultRendererManager renderer = ScriptResultRendererManager.INSTANCE; add(new MultiLineLabel("out").add(HideIfObjectIsEmptyBehavior.INSTANCE)); add(new MultiLineLabel("error").add(HideIfObjectIsEmptyBehavior.INSTANCE)); add(renderer.render("result",historyItem.getResultModel())); }
@Override protected void onInitialize() { super.onInitialize(); PullRequestUpdate update = getModelObject(); PullRequestChangesPage.State state = new PullRequestChangesPage.State(); state.oldCommit = update.getHeadCommitHash(); state.newCommit = update.getRequest().getHeadCommitHash(); PullRequestDetailPage page = (PullRequestDetailPage) getPage(); add(new ViewStateAwarePageLink<Void>("link", PullRequestChangesPage.class, PullRequestChangesPage.paramsOf(update.getRequest(), page.getPosition(), state))); }