1 29 30 package nextapp.echo2.app.test; 31 32 import nextapp.echo2.app.ApplicationInstance; 33 import nextapp.echo2.app.ContentPane; 34 import nextapp.echo2.app.Label; 35 import nextapp.echo2.app.Column; 36 import nextapp.echo2.app.Window; 37 38 44 class ColumnApp extends ApplicationInstance { 45 46 private Window window; 47 private Column column; 48 private Label label; 49 private ContentPane contentPane; 50 51 54 public Window init() { 55 window = new Window(); 56 contentPane = window.getContent(); 57 column = new Column(); 58 label = new Label("Label"); 59 column.add(label); 60 contentPane.add(column); 61 return window; 62 } 63 64 67 public ContentPane getContentPane() { 68 return contentPane; 69 } 70 71 74 public Label getLabel() { 75 return label; 76 } 77 78 81 public Column getColumn() { 82 return column; 83 } 84 } | Popular Tags |