01: /*
02: * Copyright 2002 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 iPlanet
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.wireless.taglibs.commprefs;
15:
16: public class SaveableBean {
17: protected boolean wasUpdated = false;
18: // Attempt to delete this bean (may not succeed)
19: protected boolean delete = false;
20:
21: /**
22: * Has this bean been updated without savinf configuration.
23: * @return
24: */
25: public boolean needsSaving() {
26: return wasUpdated;
27: }
28:
29: /**
30: * The configuration has been saved since the last update.
31: */
32: public void upToDate() {
33: this .wasUpdated = false;
34: }
35:
36: }
|