1 23 24 package org.objectweb.fractal.gui; 25 26 public interface UserData 27 { 28 final static int CURRENT_DEPTH = 0; 29 final static int CURRENT_WIDTH = 1; 30 final static int CURRENT_HEIGHT = 2; 31 final static int CURRENT_CONFIG = 3; 32 33 final static int LAST_OPEN_DIR = 10; 34 final static int LAST_SAVE_DIR = 11; 35 final static int LAST_OPEN_CONF = 12; 36 final static int LAST_OPEN_FILE = 13; 37 final static int LAST_SAVE_FILE = 14; 38 final static int LAST_EXEC_DIR = 15; 39 40 final static int NB_DIR = 6; 41 final static int START_INDEX = 10; 42 43 final static int NO_MODIFIED = 0; 44 final static int MODIFIED = 1; 45 46 51 void open (); 52 53 58 void save (); 59 60 63 void clean (); 64 65 72 void setIntData (int typ, int v) throws Exception ; 73 74 82 int getIntData (int typ) throws Exception ; 83 84 91 void setStringData (int typ, String s) throws Exception ; 92 93 100 String getStringData (int typ) throws Exception ; 101 102 109 boolean projectExists (int id); 110 111 118 void addProject (FProject proj) throws Exception ; 119 120 126 void removeProject (int id); 127 128 136 FProject getProject (int id); 137 138 143 FProject getNewProject (); 144 145 146 147 public interface FProject { 148 149 154 void setId (int id); 155 156 161 int getId (); 162 163 170 void setStringData (int typ, String s) throws Exception ; 171 172 178 String getStringData (int typ) throws Exception ; 179 } 180 } 181 | Popular Tags |