com.cc.framework.ui
Class AjaxSettings

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.AjaxSettings
All Implemented Interfaces:
ClientHandler, java.io.Serializable

public class AjaxSettings
extends ClientHandlerImp
implements java.io.Serializable

AJAX settings

Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static AjaxSettings DEFAULT
          The applications default AJAX settings
private  boolean enabled
           
private static long serialVersionUID
          Serial Version UID
private  int timeout
          AJAX timeout in milliseconds
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
AjaxSettings()
           
 
Method Summary
 int getTimeout()
           
protected  void inherit(AjaxSettings base)
          Inherits all not set attributes from the base settings Object
 boolean isEnabled()
           
static AjaxSettings peek(javax.servlet.jsp.PageContext ctx)
          Returns the top settings object from the Stack
static AjaxSettings pop(javax.servlet.jsp.PageContext ctx)
          Removes the top settings object from the Stack
static void push(AjaxSettings settings, javax.servlet.jsp.PageContext ctx)
          Pushes a new AJAX Setting on the Settings Stack
 void setEnabled(boolean enabled)
           
 void setTimeout(int timeout)
           
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, getHandler, getHandlers, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

DEFAULT

private static final AjaxSettings DEFAULT
The applications default AJAX settings


enabled

private boolean enabled

timeout

private int timeout
AJAX timeout in milliseconds

Constructor Detail

AjaxSettings

public AjaxSettings()
Method Detail

push

public static void push(AjaxSettings settings,
                        javax.servlet.jsp.PageContext ctx)
Pushes a new AJAX Setting on the Settings Stack

Parameters:
settings - the settings to push
ctx - the JSP page context

peek

public static AjaxSettings peek(javax.servlet.jsp.PageContext ctx)
                         throws java.util.EmptyStackException
Returns the top settings object from the Stack

Parameters:
ctx - the JSP page context
Returns:
returns the top settings object
Throws:
java.util.EmptyStackException - if this stack is empty.

pop

public static AjaxSettings pop(javax.servlet.jsp.PageContext ctx)
                        throws java.util.EmptyStackException
Removes the top settings object from the Stack

Parameters:
ctx - the JSP page context
Returns:
returns the removed settings object
Throws:
java.util.EmptyStackException - if this stack is empty.

inherit

protected void inherit(AjaxSettings base)
Inherits all not set attributes from the base settings Object

Parameters:
base - the base settings object to inherit from

getTimeout

public int getTimeout()
Returns:
the timeout

setTimeout

public void setTimeout(int timeout)
Parameters:
timeout - the timeout to set

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.