当前位置: 首页>>代码示例>>Java>>正文


Java Panel.setOutputMarkupId方法代码示例

本文整理汇总了Java中org.apache.wicket.markup.html.panel.Panel.setOutputMarkupId方法的典型用法代码示例。如果您正苦于以下问题:Java Panel.setOutputMarkupId方法的具体用法?Java Panel.setOutputMarkupId怎么用?Java Panel.setOutputMarkupId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.wicket.markup.html.panel.Panel的用法示例。


在下文中一共展示了Panel.setOutputMarkupId方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ViewFriends

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public ViewFriends(final String userUuid) {
	
	log.debug("ViewFriends()");
	
	//get user viewing this page
	final String currentUserUuid = sakaiProxy.getCurrentUserId();
			
	//check person viewing this page (currentuserId) is allowed to view userId's friends - unless admin
	if(!sakaiProxy.isSuperUser()){
		boolean isFriendsListVisible = privacyLogic.isActionAllowed(userUuid, currentUserUuid, PrivacyType.PRIVACY_OPTION_MYFRIENDS);
		if(!isFriendsListVisible) {
			throw new ProfileFriendsIllegalAccessException("User: " + currentUserUuid + " is not allowed to view the friends list for: " + userUuid);
		}
	}
	
	//show confirmed friends panel for the given user
	Panel confirmedFriends = new ConfirmedFriends("confirmedFriends", userUuid);
	confirmedFriends.setOutputMarkupId(true);
	add(confirmedFriends);
	
	//post view event
	sakaiProxy.postEvent(ProfileConstants.EVENT_FRIENDS_VIEW_OTHER, "/profile/"+userUuid, false);
	
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:25,代码来源:ViewFriends.java

示例2: forwardWorkspace

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public void forwardWorkspace(Panel panel, AjaxRequestTarget target) {
    if (stack.size() > STACK_MAX_SIZE) {
        // clear all
        stack.pop();
        while (stack.size() > 1) {
            stack.pop();
        }
    }

    panel.setOutputMarkupId(true);
    workContainer.replace(panel);
    stack.push(panel);

    if (target != null) {
        target.add(workContainer);
    }
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:18,代码来源:StackPanel.java

示例3: onSlidebarClick

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
private void onSlidebarClick(AjaxRequestTarget target, String sectionId) {
    String oldSectionId = sectionManager.getSelectedSectionId();
    Section section = sectionManager.getSection(sectionId);
    sectionManager.setSelectedSectionId(sectionId);
    Panel newPanel = section.createView("sectionPanel");
    newPanel.setOutputMarkupId(true);
    sectionPanel.replaceWith(newPanel);
    target.add(newPanel);
    sectionPanel = newPanel;

    // close slidebar
    target.appendJavaScript("closeSlidebar();");

    // refresh active class
    ListView<String> view = (ListView<String>) get("section");
    Iterator<Component> it= view.iterator();
    while (it.hasNext()) {
        ListItem<String> item = (ListItem<String>) it.next();
        String itemId = item.getModelObject();
        if (itemId.equals(sectionId) || itemId.equals(oldSectionId)) {
            target.add(item);
        }
    }
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:25,代码来源:HomePage.java

示例4: createOptionsPanel

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
private Panel createOptionsPanel(String id) {
    final Panel panel = new AdvancedSearchOptionsPanel(id, getModel()) {

        @Override
        protected void selectionChanged(AjaxRequestTarget target) {
            updateSelection(target);
        }
    };
    panel.setOutputMarkupId(true);
    return panel;
}
 
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:12,代码来源:FacetedSearchPage.java

示例5: createAvailabilityPanel

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
private Panel createAvailabilityPanel(String id) {
    final Panel availabilityPanel = new AvailabilityFacetPanel(id, getModel(), fieldsModel) {

        @Override
        protected void selectionChanged(AjaxRequestTarget target) {
            updateSelection(target);
        }
    };
    availabilityPanel.setOutputMarkupId(true);
    return availabilityPanel;
}
 
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:12,代码来源:FacetedSearchPage.java

示例6: refreshDisplayPanel

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public Panel refreshDisplayPanel() {
    ActionableItemTreeNode mutableTreeNode = (ActionableItemTreeNode) getSelectedNode();
    ActionableItem item = mutableTreeNode.getUserObject();
    Panel oldDisplayPanel = itemsProvider.getItemDisplayPanel();
    Panel newDisplayPanel = item.newItemDetailsPanel(oldDisplayPanel.getId());
    newDisplayPanel.setOutputMarkupId(true);
    oldDisplayPanel.replaceWith(newDisplayPanel);
    itemsProvider.setItemDisplayPanel(newDisplayPanel);
    return newDisplayPanel;
}
 
开发者ID:alancnet,项目名称:artifactory,代码行数:11,代码来源:ActionableItemsTree.java

示例7: removeNodePanel

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的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

示例8: switchContentPanel

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
private void switchContentPanel(Panel replacement, AjaxRequestTarget target) {
	
	replacement.setOutputMarkupId(true);
	tabPanel.replaceWith(replacement);
	if(target != null) {
		target.add(replacement);
		//resize iframe
		target.appendJavaScript("setMainFrameHeight(window.name);");
	}
	
	//must keep reference up to date
	tabPanel=replacement;
	
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:15,代码来源:MyMessages.java

示例9: removeItem

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public void removeItem(AjaxRequestTarget target){
	Panel panel = new EmptyPanel("container");
	addOrReplace(panel);
	panel.setOutputMarkupId(true);
	panel.setVisible(false);
	target.add(panel);
}
 
开发者ID:premium-minds,项目名称:pm-wicket-utils,代码行数:8,代码来源:DynamicListItem.java

示例10: removeDrawer

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
private void removeDrawer(MarkupContainer previous, AjaxRequestTarget target) {
	Panel panel = new EmptyPanel("next");
	panel.setOutputMarkupId(true);
	previous.addOrReplace(panel);
	target.add(panel);
}
 
开发者ID:premium-minds,项目名称:pm-wicket-utils,代码行数:7,代码来源:DrawerManager.java

示例11: setContainer

import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public void setContainer(Panel panel){
	add(panel);
	panel.setOutputMarkupId(true);
}
 
开发者ID:premium-minds,项目名称:pm-wicket-utils,代码行数:5,代码来源:DynamicListItem.java


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