Package info.magnolia.cms.gui.controlx.list

Examples of info.magnolia.cms.gui.controlx.list.IconListColumnRenderer


                return str.toString();
            }

            public Renderer getRenderer()
            {
                return new IconListColumnRenderer();
            }
        });

        list.addColumn(new ListColumn("title", msgs.get("list.column.jobName"), "150", true));
        list.addColumn(new ListColumn("lastFireTime", msgs.get("list.column.lastFireTime"), "150", true));
        list.addColumn(new ListColumn()
        {

            {
                setName("terminatedWithError");
                setColumnName("terminatedWithError");
                setLabel(msgs.get("list.column.status"));
                setWidth("55px");
            }

            public Object getValue()
            {
                Boolean status = Boolean.valueOf(super.getValue().toString());
                StringBuilder str = new StringBuilder("/.resources/scheduler/css/images/");

                if (status == null)
                {
                    str.append("warning.png");
                }
                else if (status.booleanValue())
                {
                    str.append("error.png");
                }
                else
                {
                    str.append("success.png");
                }

                return str.toString();
            }

            public Renderer getRenderer()
            {
                return new IconListColumnRenderer();
            }
        });

        list.addColumn(new ListColumn("nextFireTime", "Next fire time", "150", true));
        list.addColumn(new ListColumn("startTime", msgs.get("list.column.startTime"), "150", true));
View Full Code Here

TOP

Related Classes of info.magnolia.cms.gui.controlx.list.IconListColumnRenderer

Copyright © 2018 www.massapicom. 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.