• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EmptyPanel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.wicket.markup.html.panel.EmptyPanel的典型用法代码示例。如果您正苦于以下问题:Java EmptyPanel类的具体用法?Java EmptyPanel怎么用?Java EmptyPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EmptyPanel类属于org.apache.wicket.markup.html.panel包,在下文中一共展示了EmptyPanel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setModel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public void setModel(AbstractRepresentationModel representation) {
    this.representationModel.setObject(representation);

    if (representation instanceof UriRepresentationModel) {
        this.replace(new UriResponsePanel("responsePanel",
                Model.of(new UriListRepresentationModel(((UriRepresentationModel) representation).getUri()))));
    } else if (representation instanceof UriListRepresentationModel) {
        this.replace(new UriResponsePanel("responsePanel",
                Model.of((UriListRepresentationModel) representation)));
    } else if (representation instanceof TextRepresentationModel) {
        this.replace(new Label("responsePanel",
                Model.of(((TextRepresentationModel) representation).getText())));
    } else if (representation instanceof OcciRepresentationModel) {
        this.replace(new OcciResponsePanel("responsePanel",
                Model.of((OcciRepresentationModel) representation)));
    } else if (representation instanceof OcciListRepresentationModel) {
        this.replace(new OcciListResponsePanel("responsePanel",
                Model.of((OcciListRepresentationModel) representation)));
    } else {
        this.replace(new EmptyPanel("responsePanel"));
    }
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:23,代码来源:BrowserPage.java


示例2: prepareMocksForAppCreation

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
protected void prepareMocksForAppCreation() throws Exception {
    // Prepare mocks to create app and its first release
    String releaseUid = "myReleaseUid";

    mockedProfilesList = Arrays.asList(MiddlewareProfile.values());

    when(manageApplication.createPublicApplication(anyString(), anyString(), anyString(), any(URL.class), (SSOId[]) anyVararg())).thenReturn(appUid);
    when(manageApplicationRelease.createApplicationRelease(anyString(), anyString(), anyString())).thenReturn(releaseUid);
    when(manageApplicationRelease.findApplicationReleaseByUID(anyString())).thenReturn(createReleaseMock());
    when(manageApplication.isApplicationLabelUnique(anyString())).thenReturn(true);
    when(delegatingDesignerServices.createPanelFor(anyString(), any(LogicalModelItem.class), any(DesignerHelperPage.class), anyBoolean(), anyBoolean(), anyBoolean())).thenReturn(new EmptyPanel("logicalServicePanel"));
    doCallRealMethod().when(manageApplicationRelease).updateApplicationRelease(eq(createReleaseMock()));
    doCallRealMethod().when(manageLogicalDeployment).cloneLogicalDeployment(eq("myReleaseToCloneUid"), eq(releaseUid));
    when(manageLogicalDeployment.findLogicalDeployment(anyInt())).thenReturn(new LogicalDeployment());
    when(manageApplicationRelease.findAllMiddlewareProfil()).thenReturn(mockedProfilesList);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:17,代码来源:ApplicationsPagesBaseTest.java


示例3: init

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
@Before
public void init() {

	myTester = new PaasWicketTester(new PaasTestApplication(getApplicationContextMock(), false));
	((PaasTestSession) myTester.getSession()).setPaasUser(CreateObjectsWithJava.createPaasUserMock(cuid, role));

	delegates = new ArrayList<LogicalServiceEditPanel>();
	logicalDeployment = echoProviderLogicalModelCatalog.populateLogicalDeployment(null);

	try {
		// Mock all WS Call
		doReturn(createNewEnvironmentDetailsDto()).when(manageEnvironment).findEnvironmentDetails(anyString());
		doReturn(createApplicationRelease()).when(manageApplicationRelease).findApplicationReleaseByUID(anyString());
		doReturn(createApplication()).when(manageApplication).findApplicationByUID(anyString());
		doReturn(CreateObjectsWithJava.createPaasUserMock(cuid, role)).when(managePaasUser).findPaasUser(anyString());
		doReturn(createEchoProvider()).when(manageLogicalDeployment).findLogicalDeployment(anyInt());
		doReturn(new EmptyPanel("id")).when(delegatingDesignerServices).createPanelFor(anyString(), any(LogicalModelItem.class), any(DesignerHelperPage.class), eq(false),
				eq(true), anyBoolean());
	} catch (ObjectNotFoundException e) {
		e.printStackTrace();
	}
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:23,代码来源:EnvironmentPagesTest.java


示例4: TreeBrowsePanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public TreeBrowsePanel(String id, DefaultTreeSelection defaultSelection) {
    super(id);

    Component menuPlaceHolder = new WebMarkupContainer("contextMenu");
    menuPlaceHolder.setOutputMarkupId(true);
    add(menuPlaceHolder);

    nodePanelContainer = new WebMarkupContainer("nodePanelContainer");
    nodePanelContainer.setOutputMarkupId(true);
    add(nodePanelContainer);

    nodeDisplayPanel = new EmptyPanel("nodePanel");
    nodeDisplayPanel.setOutputMarkupId(true);
    nodePanelContainer.add(nodeDisplayPanel);

    textContentViewer = new ModalHandler("contentDialog");
    add(textContentViewer);

    final CompactFoldersCheckbox compactCheckbox = new CompactFoldersCheckbox("compactCheckbox");
    add(compactCheckbox);

    tree = new ActionableItemsTree("tree", this, defaultSelection, compactCheckbox.getModelObject());
    add(tree);
    add(new TreeKeyEventHandler("keyEventHandler", tree));
}
 
开发者ID:alancnet,项目名称:artifactory,代码行数:26,代码来源:TreeBrowsePanel.java


示例5: testCloseDrawerEvent

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
@Test
public void testCloseDrawerEvent() {
	Capture<EmptyPanel> p = new Capture<EmptyPanel>();
	DrawerManager m = new DrawerManager("test");
	TestDrawer d = new TestDrawer();
	m.push(d);
	startTest(m);

	getTarget().appendJavaScript("$('#"+d.getParent().getMarkupId()+"').unbind('hide-modal');");
	getTarget().appendJavaScript("$('#"+d.getParent().getMarkupId()+"').data('modal-drawer').isShown=true;");
	getTarget().appendJavaScript("$('#"+d.getParent().getMarkupId()+"').modaldrawer('hide');");
	getTarget().appendJavaScript("$('#"+d.getParent().getMarkupId()+"').removeClass('shown-modal');");
	getTarget().add(capture(p));
	replayAll();

	getTester().executeAjaxEvent(d.getParent(), "hide-modal");
	verifyAll();

	assertNull(m.getLast(AbstractDrawer.class));
	assertNull(m.getLastItemRelativePath());
	assertEquals(m, p.getValue().getParent());
	assertTrue(d.getOnCloseCalled());
}
 
开发者ID:premium-minds,项目名称:pm-wicket-utils,代码行数:24,代码来源:DrawerManagerTest.java


示例6: populateItem

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public void populateItem(final Item<ICellPopulator<T>> item, String componentId, IModel<T> rowModel) {
      	final HighlitableDataItem highlitableDataItem = item.findParent(HighlitableDataItem.class);
      	IModel<Boolean> checkBoxModel = new LoadableDetachableModel<Boolean>() {

		private static final long serialVersionUID = 1L;

		@Override
		protected Boolean load() {
			return highlitableDataItem.isHighlite();
		}
      		
      	};
      	if (isCheckable(rowModel)) {
      		item.add(new CheckBoxColumnPanel(componentId, checkBoxModel));
      		item.add(AttributeModifier.replace("class", "checkboxColumn"));
      	} else {
      		item.add(new EmptyPanel(componentId));
      	}
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:22,代码来源:AjaxCheckTablePanel.java


示例7: InnerReportsPanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public InnerReportsPanel(String id) {
	super(id);
	
	ListView<InnerReport> listReports = new ListView<InnerReport>("listReports", Arrays.asList(InnerReport.values())) {
		@Override
		protected void populateItem(ListItem<InnerReport> item) {
			item.add(createLink("report", item.getModel()));
			//item.add(new Label("description", getString("Section.Audit.innerReports." + item.getModelObject().getDescription() + ".desc")));
		}			
	};		
	
	add(listReports);	
			
	tablePanel = new EmptyPanel("panel");
	tablePanel.setOutputMarkupPlaceholderTag(true);
	add(tablePanel);
	
	setOutputMarkupId(true);
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:20,代码来源:InnerReportsPanel.java


示例8: RequestForm

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public RequestForm(String markupId) {
    super(markupId);

    this.add(new AjaxButton("requestSubmit") {
        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            BrowserPage.this.executeMethod(representationModel.getObject(), methodModel.getObject(), target);
        }
    });

    this.add(new EmptyPanel("requestPanel"));
    ComponentUtils.displayNone(this);
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:14,代码来源:BrowserPage.java


示例9: OcciRequestPanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public OcciRequestPanel(String id, IModel<MethodModel> methodModel, IModel<OcciRepresentationModel> representationModel) {
    super(id);

    OcciRepresentationModel representation = representationModel.getObject();
    // KIND
    KindModel kindModel = representation.getKind();
    if (null != kindModel) {
        this.add(new KindRequestPanel("kindPanel", methodModel, new Model<>(kindModel)));
    } else {
        this.add(new EmptyPanel("kindPanel"));
    }

    // MIXINs
    this.add(new MixinListRequestPanel("mixinListPanel", methodModel, new ListModel<>(representation.getMixins())));

    // LINKs
    this.linkListPanel = new LinkListRequestPanel("linkListPanel", methodModel, new ListModel<>(representation.getLinks()));
    this.linkListPanel.setOutputMarkupId(true);
    this.add(this.linkListPanel);


    Form linkForm = new Form("linkForm");
    this.add(linkForm);
    DropDownChoice<LinkModel> linkChoice = new DropDownChoice<>("linkSelect", new Model<>(),
            representation.getLinkDefinitions(), new ChoiceRenderer<>("id"));
    linkForm.add(linkChoice);
    linkForm.add(new AjaxButton("addLink") {
        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            representation.addToLinkList(linkChoice.getModelObject());
            target.add(OcciRequestPanel.this.linkListPanel);
        }
    });
    linkForm.setVisible(!representation.getLinkDefinitions().isEmpty());
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:36,代码来源:OcciRequestPanel.java


示例10: OcciResponsePanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public OcciResponsePanel(String markupId, IModel<OcciRepresentationModel> representationModel) {
    super(markupId);

    OcciRepresentationModel representation = representationModel.getObject();
    if (null != representation.getKind()) {
        this.add(new KindResponsePanel("kindPanel", Model.of(representation.getKind())));
    } else {
        this.add(new EmptyPanel("kindPanel"));
    }

    this.add(new MixinListResponsePanel("mixinListPanel", new ListModel<>(representation.getMixins())));
    this.add(new LinkListResponsePanel("linkListPanel", new ListModel<>(representation.getLinks())));
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:14,代码来源:OcciResponsePanel.java


示例11: ConfirmableAjaxBorder

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public ConfirmableAjaxBorder(String id, String title, String message, Form<?> userForm, ConfirmableBorderDialog dialog) {
	super(id, Model.of(message));
	if (dialog == null) {
		this.dialog = new ConfirmableBorderDialog(DIALOG_ID, title, message, userForm == null ? form : userForm);
		form.add(this.dialog);
	} else {
		this.dialog = dialog;
		form.add(new EmptyPanel(DIALOG_ID));
	}
	this.dialog.setSubmitHandler((SerializableConsumer<AjaxRequestTarget>)t->onSubmit(t));
	this.dialog.setErrorHandler((SerializableConsumer<AjaxRequestTarget>)t->onError(t));
	setOutputMarkupId(true);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:14,代码来源:ConfirmableAjaxBorder.java


示例12: createPage

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void createPage() {

        add(title = new Label("title", new LoadableDetachableModel<Object>() {
            private static final long serialVersionUID = 1L;
            @Override
            protected Object load() {
                return getPageTitleModel().getObject();
            }
        }));

        title.setOutputMarkupId(true);

        if (getApplication().getDebugSettings().isDevelopmentUtilitiesEnabled()) {
            add(new DebugBar("debug"));
        } else {
            add(new EmptyPanel("debug").setVisible(false));
        }

        add(createMenuItem("homeMenuItem", "home", HomePage.class));
        add(createMenuItem("aboutMenuItem", "about", AboutPage.class));

        add(selectRegistryPanel = new SelectRegistryPanel("selectRegistry"));
        selectRegistryPanel.setOutputMarkupId(true);

        add(new SignInPanel("authPanel"));
        add(new SignOutPanel("signOut"));
    }
 
开发者ID:nikfoundas,项目名称:etcd-viewer,代码行数:28,代码来源:TemplatePage.java


示例13: createEmptyAppFormPanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void createEmptyAppFormPanel() {

		container = new WebMarkupContainer("createAppContainer");
		container.setOutputMarkupId(true);
		container.setOutputMarkupPlaceholderTag(true);
		container.add(new EmptyPanel("appCreateForm"));

		add(container);
	}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:10,代码来源:ApplicationsPage.java


示例14: resetPage

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void resetPage(AjaxRequestTarget target) {
	newApp.setVisible(true);
	target.add(buttonContainer);

	container.replace(new EmptyPanel("appCreateForm"));
	target.add(container);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:8,代码来源:ApplicationsPage.java


示例15: resetPage

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void resetPage(AjaxRequestTarget target) {
    newEnvironment.setVisible(true);
    target.add(buttonContainer);

    container.addOrReplace(new EmptyPanel("createEnvironmentForm"));
    target.add(container);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:8,代码来源:EnvironmentsPage.java


示例16: resetPage

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void resetPage(AjaxRequestTarget target) {
    newEnv.setVisible(release.getApplication().isEditable());
    target.add(buttonContainer);

    container.addOrReplace(new EmptyPanel("createEnvForm"));
    target.add(container);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:8,代码来源:SelectedReleasePage.java


示例17: updateFirstPartContainer

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
private void updateFirstPartContainer(AjaxRequestTarget target, int step, LogicalModelItem service) {
    if (step == 2) {

        PageParameters params = getPageParameters();

        EmptyPanel emptyPanel1 = new EmptyPanel("serviceDefinitionPanel");
        firstPartContainer.addOrReplace(emptyPanel1);

        DesignerArchitectureSummaryPanel summaryPanel = new DesignerArchitectureSummaryPanel("architectureSummaryPanel", params, isArchitectureLocked(), checkLogicalDeploymentOverallConsistency(), hasWritePermission());
        firstPartContainer.addOrReplace(summaryPanel);

        DesignerArchitectureConfigSetPanel configSummaryPanel = new DesignerArchitectureConfigSetPanel("configServiceSummaryPanel", this, params);
        firstPartContainer.addOrReplace(configSummaryPanel);

    } else {
        CompoundPropertyModel<List<LogicalModelItem>> compoundPropertyModel;
        if (step == 0) {
            compoundPropertyModel = new CompoundPropertyModel<>(logicalServicesHelper.getExternalServices());
        } else {
            compoundPropertyModel = new CompoundPropertyModel<>(logicalServicesHelper.getInternalServices());
        }
        serviceDefinitionPanel = new DesignerServiceDefinitionPanel("serviceDefinitionPanel", compoundPropertyModel, isArchitectureLocked(), step, this);
        firstPartContainer.addOrReplace(serviceDefinitionPanel);
        updateServiceDefinitionPanel(target, service, false);

        EmptyPanel emptyPanel2 = new EmptyPanel("architectureSummaryPanel");
        firstPartContainer.addOrReplace(emptyPanel2);

        EmptyPanel emptyPanel3 = new EmptyPanel("configServiceSummaryPanel");
        firstPartContainer.addOrReplace(emptyPanel3);
    }

    target.add(feedback);
    target.add(firstPartContainer);
    target.add(lockIconContainer);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:37,代码来源:DesignerPage.java


示例18: createPanelFor

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public Panel createPanelFor(String id, LogicalModelItem modelItem, DesignerHelperPage parentPage,
        boolean isNew, boolean readOnly, boolean configOverride) {
    for(LogicalServiceEditPanel delegate : delegates) {
        Panel panel = delegate.getPanel(id, modelItem, parentPage, isNew, readOnly, configOverride);
        if (panel != null) {
            return panel;
        }
    }

    return new EmptyPanel(id);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:12,代码来源:DelegatingDesignerServices.java


示例19: removeNodePanel

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
/**
 * Replaces the node display panel with an empty panel.
 *
 * @param target The ajax target to use for refreshing the component
 */
public void removeNodePanel(AjaxRequestTarget target) {
    Panel dummyPanel = new EmptyPanel("nodePanel");
    dummyPanel.setOutputMarkupId(true);
    setItemDisplayPanel(dummyPanel);
    nodePanelContainer.replace(dummyPanel);
    target.add(dummyPanel);
}
 
开发者ID:alancnet,项目名称:artifactory,代码行数:13,代码来源:TreeBrowsePanel.java


示例20: ListItem

import org.apache.wicket.markup.html.panel.EmptyPanel; //导入依赖的package包/类
public ListItem(String id, final AbstractDrawer drawer, DrawerManager drawerManager, String css) {
	super(id);
	setOutputMarkupId(true);

	manager = drawerManager;
	item = new WebMarkupContainer("item");
	if (null != css) {
		item.add(new AttributeAppender("class", Model.of(css), " "));
	}
	add(item);
	this.drawer = drawer;
	item.add(drawer);
	add(new EmptyPanel("next").setOutputMarkupId(true));

	item.add(new AjaxEventBehavior("hide-modal") {
		private static final long serialVersionUID = -6423164614673441582L;

		@Override
		protected void onEvent(AjaxRequestTarget target) {
			manager.eventPop(ListItem.this.drawer, target);
		}
		@Override
		protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
			super.updateAjaxAttributes(attributes);
			attributes.setPreventDefault(true);
		}
	});
}
 
开发者ID:premium-minds,项目名称:pm-wicket-utils,代码行数:29,代码来源:DrawerManager.java



注:本文中的org.apache.wicket.markup.html.panel.EmptyPanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java JsType类代码示例发布时间:2022-05-21
下一篇:
Java NotFound类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap