本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.add()
方法的一些代码示例,展示了Fragment.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.add()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:add
暂无
代码示例来源:origin: org.geoserver.community/gs-geogig
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
header.add(new BookmarkablePageLink<String>("importExisting", RepositoryImportPage.class));
header.add(new BookmarkablePageLink<String>("addNew", RepositoryEditPage.class));
return header;
}
}
代码示例来源:origin: theonedev/onedev
private Fragment newFragment(String message, boolean warning) {
Fragment fragment = new Fragment(CONTENT_ID, "noDiffFrag", this);
fragment.add(new BlobDiffTitle("title", change));
if (warning)
fragment.add(new WebMarkupContainer("icon").add(AttributeAppender.append("class", "fa fa-warning")));
else
fragment.add(new WebMarkupContainer("icon").add(AttributeAppender.append("class", "fa fa-info-circle")));
fragment.add(new Label("message", message));
return fragment;
}
代码示例来源:origin: theonedev/onedev
@Override
protected Component newContent(String id, FloatingPanel dropdown) {
Fragment fragment = new Fragment(id, "navContextDropdownFrag", GroupPage.this);
fragment.add(new Tabbable("menu", newTabs()));
return fragment;
}
代码示例来源:origin: org.onehippo.cms7/hippo-addon-channel-manager-frontend
@Override
public Component getLabel() {
Fragment fragment = new Fragment("label", "description", ChannelActionsPlugin.this);
fragment.add(new Label("label", new StringResourceModel("label", ChannelActionsPlugin.this, null)));
return fragment;
}
代码示例来源:origin: org.geoserver.web/web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink("addNew", LayerGroupNewPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<Void>("addNew", NewLayerPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink("addNew", NewLayerPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/web-security
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<NewDataAccessRulePage>(
"addNew", NewDataAccessRulePage.class));
// the removal button
header.add(removal = new SelectionDataRuleRemovalLink("removeSelected", rules, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/web-security
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<NewServiceAccessRulePage>(
"addNew", NewServiceAccessRulePage.class));
// the removal button
header.add(removal = new SelectionServiceRemovalLink("removeSelected", rules, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/web-security
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<NewDataAccessRulePage>(
"addNew", NewDataAccessRulePage.class));
// the removal button
header.add(removal = new SelectionDataRuleRemovalLink("removeSelected", rules, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/web-sec-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<NewServiceAccessRulePage>(
"addNew", NewServiceAccessRulePage.class));
// the removal button
header.add(removal = new SelectionServiceRemovalLink("removeSelected", rules, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(
new BookmarkablePageLink<LayerGroupEditPage>("addNew", LayerGroupEditPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink("addNew", NewDataPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
return header;
}
代码示例来源:origin: theonedev/onedev
@Override
public void populateItem(Item<ICellPopulator<PullRequest>> cellItem, String componentId, IModel<PullRequest> rowModel) {
if (rowModel.getObject().getSource() != null) {
Fragment fragment = new Fragment(componentId, "sourceFrag", IssuePullRequestsPanel.this);
fragment.add(new BranchLink("link", rowModel.getObject().getSource(), rowModel.getObject()));
cellItem.add(fragment);
} else {
cellItem.add(new Label(componentId, "<i>Unknown</i>").setEscapeModelStrings(false));
}
}
代码示例来源:origin: theonedev/onedev
@Override
protected Component newHead(String componentId) {
Fragment fragment = new Fragment(componentId, "sidebarHeadFrag", UserPage.this);
User user = userModel.getObject();
fragment.add(new UserAvatar("avatar", UserIdent.of(UserFacade.of(user))).add(AttributeAppender.append("title", user.getDisplayName())));
fragment.add(new Label("name", user.getDisplayName()));
return fragment;
}
代码示例来源:origin: org.onehippo.cms7/hippo-addon-publication-workflow-frontend
public Feedback() {
super("info");
Fragment feedbackFragment = new Fragment("text", "feedback", EditingReviewedActionsWorkflowPlugin.this);
feedbackFragment.add(new YuiFeedbackPanel("feedback", new IFeedbackMessageFilter() {
private static final long serialVersionUID = 1L;
public boolean accept(FeedbackMessage message) {
return FeedbackLogger.class.isInstance(message.getReporter());
}
}));
add(feedbackFragment);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<WorkspaceNewPage>("addNew", WorkspaceNewPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
// check for full admin, we don't allow workspace admins to add new workspaces
header.setEnabled(isAuthenticatedAsAdmin());
return header;
}
代码示例来源:origin: org.geoserver.web/web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink("addNew", WorkspaceNewPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
//check for full admin, we don't allow workspace admins to add new workspaces
header.setEnabled(isAuthenticatedAsAdmin());
return header;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
protected Component getStoredQueryNameComponent() {
Fragment f = new Fragment("storedQueryName", "newPage", this);
storedQueriesDropDown = storedQueriesDropDown();
f.add(storedQueriesDropDown);
TextField<String> textField =
new TextField<>("nativeName", new PropertyModel<>(this, "nativeName"));
textField.setRequired(true);
textField.add(new ViewNameValidator());
f.add(textField);
return f;
}
代码示例来源:origin: de.alpharogroup/jaulp-wicket-components
/**
* {@inheritDoc}
*/
@Override
protected Fragment newViewFragment(final String id)
{
final Fragment viewFragment = new Fragment(id, "view", this, getModel());
viewFragment.setOutputMarkupPlaceholderTag(true);
viewFragment.add(newViewComponent("viewComponent", getModel()));
return viewFragment;
}
内容来源于网络,如有侵权,请联系作者删除!