1 | // Copyright 2004-2007 Jean-Francois Poilpret |
2 | // |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | // you may not use this file except in compliance with the License. |
5 | // You may obtain a copy of the License at |
6 | // |
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
8 | // |
9 | // Unless required by applicable law or agreed to in writing, software |
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | // See the License for the specific language governing permissions and |
13 | // limitations under the License. |
14 | |
15 | package net.sourceforge.hiveboard.docking; |
16 | |
17 | public enum Views |
18 | { |
19 | BOARDS_LIST ("boards-list-view"), |
20 | ACCOUNTS_LIST ("accounts-list-view"), |
21 | PARTICIPANTS_LIST ("participants-list-view"), |
22 | BOARD_AREA ("board-area-view"), |
23 | COMMENTS_LIST ("comments-list-view"), |
24 | NOTIFICATIONS_LIST ("notifications-list-view"), |
25 | BOARD_DETAIL ("board-detail-view"), |
26 | ACCOUNT_DETAIL ("account-detail-view"); |
27 | |
28 | Views(String id) |
29 | { |
30 | _id = id; |
31 | } |
32 | |
33 | public String id() |
34 | { |
35 | return _id; |
36 | } |
37 | |
38 | static public Views getView(String value) |
39 | { |
40 | try |
41 | { |
42 | return valueOf(value); |
43 | } |
44 | catch (IllegalArgumentException e) |
45 | { |
46 | return null; |
47 | } |
48 | } |
49 | |
50 | private final String _id; |
51 | } |