01: /**
02: * Copyright 2005 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */package com.sun.portal.admin.console.ubt.bean;
13:
14: import com.sun.portal.admin.console.logging.data.LogLevels;
15: import com.sun.portal.admin.console.ubt.data.UBTLogLevels;
16: import com.sun.web.ui.model.Option;
17:
18: import java.util.logging.Level;
19:
20: /**
21: *
22: */
23: public class UBTEventLevelDropDownOptionsBean {
24: private static final Level[] levels = UBTLogLevels.getLevels();
25:
26: private static Option[] levelOptions = new Option[levels.length];
27: static {
28: for (int i = 0; i < levels.length; i++) {
29: levelOptions[i] = new Option(levels[i].getName(), levels[i]
30: .getName());
31: }
32: }
33:
34: public Option[] getLevelOptions() {
35: return levelOptions;
36: }
37:
38: }
|