01: /***
02: * jwma Java WebMail
03: * Copyright (c) 2000-2003 jwma team
04: *
05: * jwma is free software; you can distribute and use this source
06: * under the terms of the BSD-style license received along with
07: * the distribution.
08: ***/package dtw.webmail.util;
09:
10: public interface MessageSortCriterias {
11:
12: public static final int RECEIVE_CHRONOLOGICAL = 0;
13: public static final int RECEIVE_REVERSE_CHRONOLOGICAL = 1;
14: public static final int SEND_CHRONOLOGICAL = 2;
15: public static final int SEND_REVERSE_CHRONOLOGICAL = 3;
16: public static final int RECEIVER_LEXOGRAPHICAL = 4;
17: public static final int RECEIVER_REVERSE_LEXOGRAPHICAL = 5;
18: public static final int SENDER_LEXOGRAPHICAL = 6;
19: public static final int SENDER_REVERSE_LEXOGRAPHICAL = 7;
20: public static final int NUMBER_NUMERICAL = 8;
21: public static final int NUMBER_REVERSE_NUMERICAL = 9;
22: public static final int DATE_CHRONOLOGICAL = 10;
23: public static final int DATE_REVERSE_CHRONOLOGICAL = 11;
24: public static final int WHO_LEXOGRAPHICAL = 12;
25: public static final int WHO_REVERSE_LEXOGRAPHICAL = 13;
26:
27: public static final int[] EXUI_CRITERIAS = { DATE_CHRONOLOGICAL,
28: DATE_REVERSE_CHRONOLOGICAL, NUMBER_NUMERICAL,
29: NUMBER_REVERSE_NUMERICAL, WHO_LEXOGRAPHICAL,
30: WHO_REVERSE_LEXOGRAPHICAL };
31:
32: public static final String[] EXUI_CRITERIAS_STR = {
33: "messages.sort.oldestfirst", //"Date (oldest first)",
34: "messages.sort.recentfirst", //"Date (recent first)",
35: "messages.sort.numberincreasing", //"Number (increasing)",
36: "messages.sort.numberdecreasing", //"Number (decreasing)",
37: "messages.sort.wholexographical", //"Who (lexographical)",
38: "messages.sort.whoreverselexographical", //"Who (reverse lex.)"
39: };
40:
41: }//interface MessageSortCriteria
|