org.apache.myfaces.test.mock
Class MockClientWindow

java.lang.Object
  extended by javax.faces.lifecycle.ClientWindow
      extended by org.apache.myfaces.test.mock.MockClientWindow

public class MockClientWindow
extends javax.faces.lifecycle.ClientWindow

Mock ClientWindow implementation that by default set the id with "1".

Author:
Leonardo Uribe

Field Summary
 
Fields inherited from class javax.faces.lifecycle.ClientWindow
CLIENT_WINDOW_MODE_PARAM_NAME
 
Constructor Summary
MockClientWindow()
           
 
Method Summary
protected  String calculateWindowId(javax.faces.context.FacesContext context)
           
 void decode(javax.faces.context.FacesContext context)
           
 String getId()
           
 Map<String,String> getQueryURLParameters(javax.faces.context.FacesContext context)
           
 void setId(String id)
           
 
Methods inherited from class javax.faces.lifecycle.ClientWindow
disableClientWindowRenderMode, enableClientWindowRenderMode, isClientWindowRenderModeEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockClientWindow

public MockClientWindow()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context)
Specified by:
decode in class javax.faces.lifecycle.ClientWindow

calculateWindowId

protected String calculateWindowId(javax.faces.context.FacesContext context)

getId

public String getId()
Specified by:
getId in class javax.faces.lifecycle.ClientWindow

setId

public void setId(String id)

getQueryURLParameters

public Map<String,String> getQueryURLParameters(javax.faces.context.FacesContext context)
Specified by:
getQueryURLParameters in class javax.faces.lifecycle.ClientWindow


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.