List of usage examples for org.apache.wicket.markup.html.panel FeedbackPanel FeedbackPanel
public FeedbackPanel(final String id)
From source file:abid.password.wicket.components.ErrorInfoFeedbackPanel.java
License:Apache License
private FeedbackPanel createFeedBackFilter(String id, final int filterLevel) { FeedbackPanel feedbackPanel = new FeedbackPanel(id) { private static final long serialVersionUID = 1L; @Override//from ww w . j a v a 2 s . com public boolean isVisible() { return anyMessage(filterLevel); } }; feedbackPanel.setFilter(new IFeedbackMessageFilter() { private static final long serialVersionUID = 1L; public boolean accept(FeedbackMessage message) { return message.getLevel() == filterLevel; } }); feedbackPanel.setEscapeModelStrings(false); return feedbackPanel; }
From source file:ar.edu.unq.dopplereffect.presentation.panel.upload.UploadPanel.java
License:Apache License
public UploadPanel(final String id, final SearchModel<T> searchModel) { super(id, new Model<String>("")); this.searchModel = searchModel; // crea el directorio si no existe uploadFolder.mkdirs();//from ww w . ja v a 2s.com FeedbackPanel uploadFeedback = new FeedbackPanel("uploadFeedback"); uploadFeedback.setOutputMarkupId(true); this.add(uploadFeedback); this.setDialogSelectedTypeToExport(new DialogSelectedTypeToExport("selectType", this)); this.getDialogSelectedTypeToExport() .setTitle(new StringResourceModel("selectType.title", new Model<String>())); this.add(this.getDialogSelectedTypeToExport()); this.addButtons(); }
From source file:at.ac.tuwien.ifs.tita.ui.administration.user.UserAdministrationPanel.java
License:Apache License
/** * public constructor./*w w w . j a va 2 s . c o m*/ * * @param id the name of the Panel */ public UserAdministrationPanel(String id) { super(id); // init the two WebmarkupContainer // Note, they have the same id for switching between them listContainer = new WebMarkupContainer("listContainer"); listContainer.setOutputMarkupId(true); listContainer.setOutputMarkupPlaceholderTag(true); detailContainer = new WebMarkupContainer("detailContainer"); detailContainer.setOutputMarkupId(true); detailContainer.setOutputMarkupPlaceholderTag(true); addOrReplace(listContainer); addOrReplace(detailContainer); userProjectPanel = new UserProjectPanel("userProjectPanel", new TiTAUser(), this); userIssueTrackerPanel = new UserIssueTrackerLoginPanel("userIssueTrackerLoginPanel", new TiTAUser(), this); addOrReplace(userProjectPanel); addOrReplace(userIssueTrackerPanel); add(new FeedbackPanel("feedback").setOutputMarkupId(true)); // displayDetailsPage(new TiTAUser()); // displayProjectPanel(); // displayIssueTrackerLoginPanel(); loadListEntities(); this.setOutputMarkupId(true); this.setOutputMarkupPlaceholderTag(true); }
From source file:at.ac.tuwien.ifs.tita.ui.administration.user.UserProjectPanel.java
License:Apache License
/** * public constructor./*from w w w. java2 s. c o m*/ * * @param id the unique ID that is declared in the HTML-File for this Panel. * @param user the User to add the Projects * @param parent the Parent Panel for Returning a User on Close. */ public UserProjectPanel(String id, TiTAUser user, UserAdministrationPanel parent) { super(id); this.parent = parent; if (user == null) { this.user = new TiTAUser(); } else { this.user = user; } try { list = service.getOrderedProjects(0, "name"); } catch (PersistenceException e) { log.error("could not load List of TiTAProjects, empty List will be created"); list = new ArrayList<TiTAProject>(); } tm = new TableModelProjectWithoutButton(list); table = new Table("userProjectTable", tm) { @Override protected void onSelection(AjaxRequestTarget target) { if (!(table.getSelectedRows()[0] == tm.getSelectedRow())) { tm.setSelectedRow(table.getSelectedRows()[0]); tm.reload(); target.addComponent(table); } } }; table.setWidths(EffortUtils.WIDTHS); if (this.user.getTitaUserProjects() != null) { this.actualProjects = new ArrayList<TiTAUserProject>(this.user.getTitaUserProjects()); } else { this.actualProjects = new ArrayList<TiTAUserProject>(); } actualProjectsTM = new TableModelUserProject(actualProjects); actualProjectsTable = new Table("actualUserProjectTable", actualProjectsTM); actualProjectsTable.setWidths(EffortUtils.WIDTHS); container = new WebMarkupContainer("userProjectContainer"); container.setOutputMarkupId(true); container.setOutputMarkupPlaceholderTag(true); addOrReplace(container); add(new FeedbackPanel("feedback").setOutputMarkupId(true)); displayTables(); addButtons(); }
From source file:au.org.theark.admin.web.component.activitymonitor.ActivityMonitorContainerPanel.java
License:Open Source License
protected WebMarkupContainer initialiseFeedBackPanel() { /* Feedback Panel */ feedBackPanel = new FeedbackPanel("feedbackMessage"); feedBackPanel.setOutputMarkupId(true); return feedBackPanel; }
From source file:au.org.theark.core.web.component.AbstractDetailModalWindow.java
License:Open Source License
protected WebMarkupContainer initialiseFeedBackPanel() { /* Feedback Panel */ feedbackPanel = new FeedbackPanel("modalWindowFeedback"); feedbackPanel.setOutputMarkupId(true); return feedbackPanel; }
From source file:au.org.theark.core.web.component.AbstractSubContainerPanel.java
License:Open Source License
protected WebMarkupContainer initialiseFeedBackPanel() { /* Feedback Panel */ feedbackPanel = new FeedbackPanel("feedbackMessage"); feedbackPanel.setOutputMarkupId(true); return feedbackPanel; }
From source file:au.org.theark.geno.web.component.tableeditor.TableEditorContainerPanel.java
License:Open Source License
protected WebMarkupContainer initialiseRowFeedBackPanel() { /* Feedback Panel */ rowFeedbackPanel = new FeedbackPanel("rowFeedbackMessage"); rowFeedbackPanel.setOutputMarkupId(true); return rowFeedbackPanel; }
From source file:au.org.theark.geno.web.component.tableeditor.TableEditorContainerPanel.java
License:Open Source License
protected WebMarkupContainer initialiseBeamFeedBackPanel() { /* Feedback Panel */ beamFeedbackPanel = new FeedbackPanel("beamFeedbackMessage"); beamFeedbackPanel.setOutputMarkupId(true); return beamFeedbackPanel; }
From source file:au.org.theark.lims.web.component.biocollectioncustomdata.BioCollectionCustomDataContainerPanel.java
License:Open Source License
protected WebMarkupContainer initialiseFeedbackPanel() { /* Feedback Panel doesn't have to sit within a form */ feedbackPanel = new FeedbackPanel("feedbackMessage"); feedbackPanel.setOutputMarkupId(true); return feedbackPanel; }