當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。