1 17 18 package org.objectweb.jac.samples.photos; 19 20 import org.objectweb.jac.aspects.gui.DisplayContext; 21 import org.objectweb.jac.aspects.gui.Actions; 22 23 public class Run { 24 25 28 public static void main(String [] args) 29 { 30 photos = new PhotoRepository(); 31 users = new Users(); 32 } 33 34 static PhotoRepository photos; 35 static Users users; 36 37 39 42 public static void viewPhotos(DisplayContext context, String panelID) { 43 Actions.viewObject(context,"photorepository#0",panelID); 44 } 45 46 49 public static void viewUsers(DisplayContext context, String panelID) { 50 Actions.viewObject(context,"users#0",panelID); 51 } 52 } 53 | Popular Tags |