Examples of WebMarkupContainer


Examples of org.apache.wicket.markup.html.WebMarkupContainer

        public MetaDataTab(String id, JetspeedDocument doc)
        {
            super(id, doc);
            final ModalWindow metaDataModalWindow;
            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "basePanel");
            add(metaDataModalWindow = new ModalWindow("modalwindow"));

            ajaxPanel.add(new Label("nameLabel", new ResourceModel(
                    "metedataTab.name")));
            ajaxPanel.add(new Label("languageLabel", new ResourceModel(
                    "metedataTab.language")));

            final ListView metaDataListView = new ListView("metaData",
                    new PropertyModel(this, "document.metaData"))
            {

                private static final long serialVersionUID = 1L;

                public void populateItem(final ListItem listItem)
                {
                    final JetspeedDocumentMetaData metaData = (JetspeedDocumentMetaData) listItem
                            .getModelObject();
                    listItem.add(new Label("name", metaData.getName()));
                    listItem.add(new Label("language", metaData.getLanguage()));
                    listItem.add(new Label("value", metaData.getValue()));
                    AjaxLink editLink = new AjaxLink("edit", new Model("edit"))
                    {

                        @Override
                        public void onClick(AjaxRequestTarget target)
                        {
                            metaDataModalWindow.setContent(new MetaDataPanel(
                                    metaDataModalWindow.getContentId(),
                                    metaData, ajaxPanel));
                            metaDataModalWindow.show(target);
                        }
                    };
                    editLink.add(new Label("editLabel", new ResourceModel(
                            "common.edit")));
                    listItem.add(editLink);

                    AjaxLink deleteLink = new AjaxLink("delete", new Model(
                            "delete"))
                    {

                        private static final long serialVersionUID = 1L;

                        @Override
                        public void onClick(AjaxRequestTarget target)
                        {
                            metaDataAction(REMOVE_ACTION, metaData, null);
                            target.addComponent(ajaxPanel);
                        }
                    };

                    deleteLink.add(new Label("deleteLabel", new ResourceModel(
                            "common.delete")));
                    deleteLink.add(new JavascriptEventConfirmation("onclick",
                            new ResourceModel("action.delete.confirm")));
                    listItem.add(deleteLink);
                }
            };
            metaDataListView.setOutputMarkupId(true);
            ajaxPanel.setOutputMarkupId(true);
            ajaxPanel.add(metaDataListView);
            Form metaForm = new Form("metaForm");
            add(metaForm);
            add(new AjaxButton("new",new ResourceModel("common.new"),metaForm)
            {
                @Override
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

        {
            super(id, document, definition);
            final String menuDefinitionName = definition.getName();
            setMenuDef(new JetspeedMenuDefinition((MenuDefinition) copyMenuElement(getNodeType(),
                    definition)));
            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "ajaxPanel");
            final FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
            ajaxPanel.setOutputMarkupId(true);
            Form menuform = new Form("menuForm");
            TextField nameField = new RequiredTextField("nameField",
                    new PropertyModel(this, "menuDef.name"));
            menuform.add(nameField);
            TextField optionsField = new TextField("optionsField",
                    new PropertyModel(this, "menuDef.options"));
            menuform.add(optionsField);
            TextField depthField = new TextField("depthField",
                    new PropertyModel(this, "menuDef.depth"));
            menuform.add(depthField);
            CheckBox pathField = new CheckBox("pathField", new PropertyModel(
                    this, "menuDef.paths"));
            menuform.add(pathField);
            CheckBox regExpField = new CheckBox("regExpField",
                    new PropertyModel(this, "menuDef.regexp"));
            menuform.add(regExpField);
            TextField profileField = new TextField("profileField",
                    new PropertyModel(this, "menuDef.profile"));
            menuform.add(profileField);
            TextField titleField = new TextField("titleField",
                    new PropertyModel(this, "menuDef.title"));
            menuform.add(titleField);
            TextField skinField = new TextField("skinField", new PropertyModel(
                    this, "menuDef.skin"));
            menuform.add(skinField);
            TextField orderField = new TextField("orderField",
                    new PropertyModel(this, "menuDef.order"));
            menuform.add(orderField);
            AjaxButton saveButton = new AjaxButton("save", menuform)
            {

                @Override
                protected void onSubmit(AjaxRequestTarget target, Form<?> form)
                {
                    menuActions(SAVE_ACTION, menuDefinitionName,getMenuDef());
                    target.addComponent(ajaxPanel);
                }

                @Override
                protected void onError(AjaxRequestTarget target, Form<?> form)
                {
                    target.addComponent(feedbackPanel);
                }

            };
            menuform.add(saveButton);
            ajaxPanel.add(menuform);
            add(ajaxPanel);
            add(feedbackPanel);
        }
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

        {
            super(id, document, definition);
            getMenuElements(definition, EXCLUDES);
            final ModalWindow metaDataModalWindow;
            add(metaDataModalWindow = new ModalWindow("modalwindow"));
            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "basePanel");
            ajaxPanel.setOutputMarkupId(true);
            ajaxPanel.add(new Label("nameLabel",new ResourceModel("common.name")));
            ajaxPanel.add(new ListView("menuData", new PropertyModel(this,
                    "menuOptions"))
            {

                public void populateItem(final ListItem listItem)
                {
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

        {
            super(id, document, definition);
            getMenuElements(definition, INCLUDES);
            final ModalWindow metaDataModalWindow;
            add(metaDataModalWindow = new ModalWindow("modalwindow"));
            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "basePanel");
            ajaxPanel.setOutputMarkupId(true);
            ajaxPanel.add(new Label("nameLabel",new ResourceModel("common.name")));
            ajaxPanel.add(new Label("nestedLabel",new ResourceModel("menu.nest.label")));
            ajaxPanel.add(new ListView("menuData", new PropertyModel(this,
                    "menuOptions"))
            {

                public void populateItem(final ListItem listItem)
                {
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

        {
            super(id, document, definition);
            getMenuElements(getMenuDefinition(), MenuElement.OPTION_ELEMENT_TYPE);
            final ModalWindow metaDataModalWindow;
            add(metaDataModalWindow = new ModalWindow("modalwindow"));
            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "basePanel");
            ajaxPanel.setOutputMarkupId(true);
            ajaxPanel.add(new ListView("menuData", new PropertyModel(this,
                    "menuOptions"))
            {

                public void populateItem(final ListItem listItem)
                {
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

      private static final long serialVersionUID = 1L;

      public Panel getTestPanel(String panelId)
      {
        Panel panel = new DivTestPanel(panelId);
        component = new WebMarkupContainer("anId");
        component.setMarkupId(component.getId());
        component.setOutputMarkupId(true);
        component.add(effectBehavior);
        panel.add(component);
        return panel;
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

   * .
   */
  @Test
  public void test$Component()
  {
    final WebMarkupContainer component = new WebMarkupContainer("anId");
    tester.startPanel(new ITestPanelSource()
    {
      private static final long serialVersionUID = 1L;

      public Panel getTestPanel(String panelId)
      {
        Panel panel = new DivTestPanel(panelId);
        component.setMarkupId("anId");
        panel.add(component);
        return panel;
      }
    });
    assertAndLog("$('#anId');", jsStatement.$(component).render());
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

  public void test$ComponentString()
  {
    assertAndLog("$('span');", jsStatement.$(null, "span").render());
    jsStatement = new JsStatement();

    final WebMarkupContainer component = new WebMarkupContainer("anId");
    tester.startPanel(new ITestPanelSource()
    {
      private static final long serialVersionUID = 1L;

      public Panel getTestPanel(String panelId)
      {
        Panel panel = new DivTestPanel(panelId);
        component.setMarkupId("anId");
        panel.add(component);
        return panel;
      }
    });
    assertAndLog("$('#anId span');", jsStatement.$(component, "span").render());
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

      private static final long serialVersionUID = 1L;

      public Panel getTestPanel(String panelId)
      {
        Panel panel = new DivTestPanel(panelId);
        WebMarkupContainer component = new WebMarkupContainer("anId");
        component.setMarkupId("anId");
        panel.add(component);
        jsQuery = new JsQuery(component);
        return panel;
      }
    });
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer

            principalDataProvider = new PrincipalDataProvider(getManager(), getSearchString());
        }
       
        ITab tab = null;
        tabs = new ArrayList();
        group = new WebMarkupContainer("group");
        group.setOutputMarkupId(true);

       
        final DataView<JetspeedPrincipal> principalView = new DataView<JetspeedPrincipal>("entries", principalDataProvider)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.