sventon subversion web client - http://www.sventon.org |
[show recent changes] | |
Rev: 43836 - http://anonsvn.icesoft.org/repo / icefaces4 / trunk / icefaces / ace / component / src / org / icefaces / ace / event / TooltipDelegateDisplayEvent.java |
Show File - TooltipDelegateDisplayEvent.java [show properties] |
1 | /* |
2 | * Original Code Copyright Prime Technology. |
3 | * Subsequent Code Modifications Copyright 2011-2014 ICEsoft Technologies Canada Corp. (c) |
4 | * |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | * you may not use this file except in compliance with the License. |
7 | * You may obtain a copy of the License at |
8 | * |
9 | * 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 | * NOTE THIS CODE HAS BEEN MODIFIED FROM ORIGINAL FORM |
18 | * |
19 | * Subsequent Code Modifications have been made and contributed by ICEsoft Technologies Canada Corp. (c). |
20 | * |
21 | * Code Modification 1: Integrated with ICEfaces Advanced Component Environment. |
22 | * Contributors: ICEsoft Technologies Canada Corp. (c) |
23 | * |
24 | * Code Modification 2: [ADD BRIEF DESCRIPTION HERE] |
25 | * Contributors: ______________________ |
26 | * Contributors: ______________________ |
27 | */ |
28 | package org.icefaces.ace.event; |
29 | |
30 | import javax.faces.component.UIComponent; |
31 | import javax.faces.event.FacesEvent; |
32 | import javax.faces.event.FacesListener; |
33 | import org.icefaces.ace.component.tooltip.Tooltip; |
34 | |
35 | public class TooltipDelegateDisplayEvent extends FacesEvent { |
36 | |
37 | public TooltipDelegateDisplayEvent(Tooltip component) { |
38 | super(component); |
39 | } |
40 | |
41 | @Override |
42 | public boolean isAppropriateListener(FacesListener listener) { |
43 | return false; |
44 | } |
45 | |
46 | @Override |
47 | public void processListener(FacesListener listener) { |
48 | throw new UnsupportedOperationException(); |
49 | } |
50 | |
51 | public void cancelDisplay() { |
52 | Tooltip tooltip = (Tooltip) getComponent(); |
53 | tooltip.setCancelDisplay(true); |
54 | } |
55 | } |
sventon 2.5.1