本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例11: setContainer
import org.apache.wicket.markup.html.panel.Panel; //导入方法依赖的package包/类
public void setContainer(Panel panel){
add(panel);
panel.setOutputMarkupId(true);
}