1 6 7 package albel.tags.table.model; 8 9 14 public class Keys { 15 private String tableId; 16 17 private Keys() { 18 } 19 public Keys(String id) { 20 this.tableId=id; 21 } 22 public String getEditRowNumberKey() { 23 return "tt_"+tableId+"_EditRowNumber"; 24 } 25 public String getDeleteRowNumberKey() { 26 return "tt_"+tableId+"_DeleteRowNumber"; 27 } 28 public static String getEditRowNumberKey(String tableId) { 29 return "tt_"+tableId+"_EditRowNumber"; 30 } 31 public String getSaveButtonNameKey() { 32 return "tt_"+tableId+"_EditRowSaveButton"; 33 } 34 public String getCreateButtonNameKey() { 35 return "tt_"+tableId+"_CreateRowButton"; 36 } 37 public String getTableSessionKey() { 38 return TABLE_SESSION_KEY+"."+tableId; 39 } 40 public static String getTableSessionKey(String tableId) { 41 return TABLE_SESSION_KEY+"."+tableId; 42 } 43 private static String TABLE_SESSION_KEY="albel.tags.table"; 44 } 45 | Popular Tags |