Package smilehouse.gui.html.fieldbased.editor

Examples of smilehouse.gui.html.fieldbased.editor.LinkButtonEditor


                    public void setModelValue(Object model, Object value) throws Exception {
                    // We don't want to change it, we just want too see it
                    }
                };
                // Just want to show it...
                LinkButtonEditor editor2 = new LinkButtonEditor();
                editor2.setHref("EditPipe");
                editor2.setParameterName(PIPE_ID);
                editor2.setTarget("_self");
                FieldInfo linkFieldInfo = new FieldInfo(id2, label2, modifier2, editor2);
                pipeListFieldInfo.addColumn(linkFieldInfo);
            }
            {
                // -----------------
                // Start button field
                // -----------------
                String id5 = "start";
                String label5 = "start";
                ModelModifier modifier5 = new DefaultModelModifier() {
                    public Object getModelValue(Object model) throws Exception {
                        return ((Pipe) model).getId();
                    }

                    public void setModelValue(Object model, Object value) throws Exception {
                    }
                };
                LinkButtonEditor editor5 = new LinkButtonEditor();
                editor5.setHref("PipeList");
                editor5.setParameterName(PIPE_ID);
                editor5.setTarget("_self");
                FieldInfo linkFieldInfo = new FieldInfo(id5, label5, modifier5, editor5);
                pipeListFieldInfo.addColumn(linkFieldInfo);
            }
          
        } catch(Exception e) {
View Full Code Here

TOP

Related Classes of smilehouse.gui.html.fieldbased.editor.LinkButtonEditor

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.