01: /*
02: *
03: *
04: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26:
27: package javax.microedition.lcdui;
28:
29: /**
30: * Look and Feel interface used by Alert.
31: * <p>
32: * See <a href="doc-files/naming.html">Naming Conventions</a>
33: * for information about method naming conventions.
34: */
35: interface AlertLF extends DisplayableLF {
36:
37: /**
38: * Determines if alert associated with this view is modal.
39: *
40: * @return true if this AlertLF should be displayed as modal
41: */
42: boolean lIsModal();
43:
44: /**
45: * Gets default timeout for the alert associated with this view
46: * @return the default timeout
47: */
48: int lGetDefaultTimeout();
49:
50: /**
51: * Get the command that Alert.DISMISS_COMMAND is mapped to.
52: *
53: * @return DISMISS_COMMAND's visible representation command
54: */
55: Command lGetDismissCommand();
56:
57: /**
58: * Notifies look&feel object of a timeout change.
59: *
60: * @param timeout - the new timeout set in the corresponding Alert.
61: */
62: void lSetTimeout(int timeout);
63:
64: /**
65: * Notifies look&feel object of a Alert type change.
66: *
67: * @param type - the new AlertType set in the corresponding Alert.
68: */
69: void lSetType(AlertType type);
70:
71: /**
72: * Notifies look&feel object of a string change.
73: *
74: * @param oldStr - the old string set in the corresponding Alert.
75: * @param newStr - the new string set in the corresponding Alert.
76: */
77: void lSetString(String oldStr, String newStr);
78:
79: /**
80: * Notifies look&feel object of an image change.
81: *
82: * @param oldImg - the old image set in the corresponding Alert.
83: * @param newImg - the new image set in the corresponding Alert.
84: */
85: void lSetImage(Image oldImg, Image newImg);
86:
87: /**
88: * Notifies look&feel object of an indicator change.
89: *
90: * @param oldIndicator - the old indicator set in the corresponding Alert
91: * @param newIndicator - the new indicator set in the corresponding Alert
92: */
93: void lSetIndicator(Gauge oldIndicator, Gauge newIndicator);
94: }
|