Examples of KeyVal


Examples of org.apache.jetspeed.portlets.prm.KeyVal

        detailList = new ArrayList<KeyVal>();
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
       
        detailList.add(new KeyVal("Name", app.getName()));
        detailList.add(new KeyVal("Version", app.getVersion()));
        detailList.add(new KeyVal("Description", getDescription(app)));
        detailList.add(new KeyVal("Type", getType(app)));
        detailList.add(new KeyVal("Services", new Object()
        {

            String toString(Iterator<JetspeedServiceReference> it)
            {
                StringBuffer buffer = new StringBuffer();
                while (it.hasNext())
                {
                    buffer.append(it.next().getName() + "<br/>");
                }
                return buffer.toString();
            }
        }.toString(app.getJetspeedServices().iterator())));

        final RefreshingView<KeyVal> dataRepeater = new RefreshingView<KeyVal>("data", new PropertyModel<List<KeyVal>>(this, "detailList"))
        {

            @Override
            protected void populateItem(Item<KeyVal> item)
            {
                final KeyVal field = item.getModelObject();
                item.add(new Label("name", field.getKey()));
                item.add(new Label("value", field.getValue()).setEscapeModelStrings(false));
            }

            @Override
            protected Iterator<IModel<KeyVal>> getItemModels()
            {
View Full Code Here

Examples of org.apache.jetspeed.portlets.prm.KeyVal

        detailList = new ArrayList<KeyVal>();
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
       
        detailList.add(new KeyVal("Name", app.getName()));
        detailList.add(new KeyVal("Version", app.getVersion()));
        detailList.add(new KeyVal("Description", getDescription(app)));
        detailList.add(new KeyVal("Type", getType(app)));
        detailList.add(new KeyVal("Services", new Object()
        {

            String toString(Iterator<JetspeedServiceReference> it)
            {
                StringBuffer buffer = new StringBuffer();
                while (it.hasNext())
                {
                    buffer.append(it.next().getName() + "<br/>");
                }
                return buffer.toString();
            }
        }.toString(app.getJetspeedServices().iterator())));

        final RefreshingView<KeyVal> dataRepeater = new RefreshingView<KeyVal>("data", new PropertyModel<List<KeyVal>>(this, "detailList"))
        {

            @Override
            protected void populateItem(Item<KeyVal> item)
            {
                final KeyVal field = item.getModelObject();
                item.add(new Label("name", field.getKey()));
                item.add(new Label("value", field.getValue()).setEscapeModelStrings(false));
            }

            @Override
            protected Iterator<IModel<KeyVal>> getItemModels()
            {
View Full Code Here

Examples of org.apache.jetspeed.portlets.prm.KeyVal

        detailList = new ArrayList<KeyVal>();
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
       
        detailList.add(new KeyVal("Name", app.getName()));
        detailList.add(new KeyVal("Version", app.getVersion()));
        detailList.add(new KeyVal("Description", getDescription(app)));
        detailList.add(new KeyVal("Type", getType(app)));
        detailList.add(new KeyVal("Services", new Object()
        {

            String toString(Iterator<JetspeedServiceReference> it)
            {
                StringBuffer buffer = new StringBuffer();
                while (it.hasNext())
                {
                    buffer.append(it.next().getName() + "<br/>");
                }
                return buffer.toString();
            }
        }.toString(app.getJetspeedServices().iterator())));

        final RefreshingView<KeyVal> dataRepeater = new RefreshingView<KeyVal>("data", new PropertyModel<List<KeyVal>>(this, "detailList"))
        {

            @Override
            protected void populateItem(Item<KeyVal> item)
            {
                final KeyVal field = item.getModelObject();
                item.add(new Label("name", field.getKey()));
                item.add(new Label("value", field.getValue()).setEscapeModelStrings(false));
            }

            @Override
            protected Iterator<IModel<KeyVal>> getItemModels()
            {
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.