sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 43836 - http://anonsvn.icesoft.org/repo / icefaces4 / trunk / icefaces / ace / component / src / org / icefaces / ace / component / tooltip / TooltipRenderer.java
Unified Diff View - TooltipRenderer.java
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tooltip/TooltipRenderer.java @ revision 43835
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tooltip/TooltipRenderer.java @ revision 43836
@@ -47,6 +47,8 @@ import org.icefaces.ace.component.delegate.Delegate; import org.icefaces.util.EnvUtils; import org.icefaces.util.CoreComponentUtils; +import org.icefaces.util.JavaScriptRunner; +import org.icefaces.ace.event.TooltipDelegateDisplayEvent; import java.util.Map; import java.util.HashMap; @@ -103,6 +105,9 @@    ActionEvent event = new ActionEvent(tooltip);    event.setPhaseId(PhaseId.INVOKE_APPLICATION);    tooltip.queueEvent(event); +   TooltipDelegateDisplayEvent delegateEvent = new TooltipDelegateDisplayEvent(tooltip); +   delegateEvent.setPhaseId(PhaseId.INVOKE_APPLICATION); +   tooltip.queueEvent(delegateEvent);         }         decodeBehaviors(facesContext, tooltip);     } @@ -150,7 +155,7 @@        .beginMap()           .entry("global", global)           .entry("id", clientId) -          .entry("displayListener", (tooltip.getDisplayListener() != null)); +          .entry("displayListener", (tooltip.getDisplayListener() != null || tooltip.getDelegateDisplayListener() != null));   if (tooltip.isSpeechBubble()) jb.entry("speechBubble", true); @@ -239,6 +244,12 @@         writer.endElement("script");         writer.endElement("span"); + +  // determine if display should be cancelled +  if (tooltip.isCancelDisplay()) { +   JavaScriptRunner.runScript(facesContext, "ice.ace.Tooltip.instances['"+clientId+"'].cancelDisplay();"); +   tooltip.setCancelDisplay(false); +  }  }  protected Object getTarget(FacesContext facesContext, Tooltip tooltip) {


feed icon

sventon 2.5.1