01: /*
02: *
03: * Copyright 2007 Luca Molino (luca.molino@assetdata.it)
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.romaframework.core.domain.message;
19:
20: /**
21: * @author Luca Molino
22: *
23: * That class extends MessageYesNo class with the Cancel option, as the same of MessageYesNo returns
24: * a Boolean:
25: * @return true if Yes selected
26: * @return false if No selected
27: * @return null if Cancel selected
28: *
29: */
30: public class MessageYesNoCancel extends MessageYesNo {
31: public MessageYesNoCancel(String iId, String iTitle,
32: MessageResponseListener iListener) {
33: super (iId, iTitle, iListener);
34: }
35:
36: public MessageYesNoCancel(String iId, String iTitle,
37: MessageResponseListener iListener, String iMessage) {
38: super (iId, iTitle, iListener, iMessage);
39: }
40:
41: public MessageYesNoCancel(String iId, String iTitle) {
42: super (iId, iTitle);
43: }
44:
45: public void cancel() {
46: close();
47: setResponse(null);
48: }
49:
50: }
|