List of usage examples for org.apache.wicket.ajax AjaxRequestTarget add
void add(Component... components);
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void resetContextLabel(AjaxRequestTarget target, WebMarkupContainer arkContextMarkup) { studyLabel = new Label("studyLabel", new Model("")); arkContextMarkup.addOrReplace(studyLabel); subjectLabel = new Label("subjectLabel", new Model("")); arkContextMarkup.addOrReplace(subjectLabel); phenoLabel = new Label("phenoLabel", new Model("")); arkContextMarkup.addOrReplace(phenoLabel); genoLabel = new Label("genoLabel", new Model("")); arkContextMarkup.addOrReplace(genoLabel); target.add(arkContextMarkup); }
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void setStudyContextLabel(AjaxRequestTarget target, String label, WebMarkupContainer arkContextMarkup) { studyLabel = new Label("studyLabel", new Model("Study: " + label)); arkContextMarkup.addOrReplace(studyLabel); target.add(arkContextMarkup); }
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void setSubjectContextLabel(AjaxRequestTarget target, String label, WebMarkupContainer arkContextMarkup) { subjectLabel = new Label("subjectLabel", new Model("Subject UID: " + label)); arkContextMarkup.addOrReplace(subjectLabel); target.add(arkContextMarkup); }
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void setPhenoContextLabel(AjaxRequestTarget target, String label, WebMarkupContainer arkContextMarkup) { phenoLabel = new Label("phenoLabel", new Model("Pheno Col.: " + label)); arkContextMarkup.addOrReplace(phenoLabel); target.add(arkContextMarkup); }
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void setGenoContextLabel(AjaxRequestTarget target, String label, WebMarkupContainer arkContextMarkup) { genoLabel = new Label("genoLabel", new Model("Geno Col.: " + label)); arkContextMarkup.addOrReplace(genoLabel); target.add(arkContextMarkup); }
From source file:au.org.theark.core.util.ContextHelper.java
License:Open Source License
@SuppressWarnings("unchecked") public void setContextLabel(AjaxRequestTarget target, Label label, WebMarkupContainer arkContextMarkup) { if (label.getId() == "phenoLabel") { phenoLabel = new Label("phenoLabel", new Model("Pheno Col.: " + label)); arkContextMarkup.addOrReplace(phenoLabel); }//from w w w. j a v a 2 s. c o m target.add(arkContextMarkup); }
From source file:au.org.theark.core.vo.ArkCrudContainerVO.java
License:Open Source License
/** * General method that hides search and searchResults, and displays detail panels in view mode * /*from w ww .j a v a2s. c o m*/ * @param target */ public void showDetailPanelInViewMode(AjaxRequestTarget target) { getSearchResultPanelContainer().setVisible(false); getSearchPanelContainer().setVisible(false); getDetailPanelContainer().setVisible(true); getDetailPanelFormContainer().setEnabled(false); getViewButtonContainer().setVisible(true); getViewButtonContainer().setEnabled(true); getEditButtonContainer().setVisible(false); // Refresh the markup containers target.add(getSearchResultPanelContainer()); target.add(getDetailPanelContainer()); target.add(getDetailPanelFormContainer()); target.add(getSearchPanelContainer()); target.add(getViewButtonContainer()); target.add(getEditButtonContainer()); }
From source file:au.org.theark.core.vo.ArkCrudContainerVO.java
License:Open Source License
/** * General method that hides search and searchResults, and displays detail panels in edit mode * //from w w w . j a v a 2s . c o m * @param target */ public void showDetailPanelInEditMode(AjaxRequestTarget target) { getSearchResultPanelContainer().setVisible(false); getSearchPanelContainer().setVisible(false); getDetailPanelContainer().setVisible(true); getDetailPanelFormContainer().setEnabled(true); getViewButtonContainer().setVisible(false); getEditButtonContainer().setVisible(true); // Refresh the markup containers target.add(getSearchResultPanelContainer()); target.add(getDetailPanelContainer()); target.add(getDetailPanelFormContainer()); target.add(getSearchPanelContainer()); target.add(getViewButtonContainer()); target.add(getEditButtonContainer()); }
From source file:au.org.theark.core.vo.ArkCrudContainerVO.java
License:Open Source License
/** * General method that hides the detail panel, and displays search and searchResults panels accordingly * /*from www.ja v a 2 s . c o m*/ * @param target */ public void showSearchPanels(AjaxRequestTarget target) { getSearchResultPanelContainer().setVisible(true); getSearchPanelContainer().setVisible(true); getDetailPanelContainer().setVisible(false); getDetailPanelFormContainer().setEnabled(false); getViewButtonContainer().setVisible(false); getViewButtonContainer().setEnabled(true); getEditButtonContainer().setVisible(false); // Refresh the markup containers target.add(getSearchResultPanelContainer()); target.add(getDetailPanelContainer()); target.add(getDetailPanelFormContainer()); target.add(getSearchPanelContainer()); target.add(getViewButtonContainer()); target.add(getEditButtonContainer()); }
From source file:au.org.theark.core.web.component.AbstractDetailModalWindow.java
License:Open Source License
@Override public void close(final AjaxRequestTarget target) { super.close(target); onCloseModalWindow(target);/* w w w . j a v a 2 s.c o m*/ if (component != null) { target.add(component); } }