org.mentawai.filter
Class DynamicListFilter

java.lang.Object
  extended by org.mentawai.filter.DynamicListFilter
All Implemented Interfaces:
Filter

public abstract class DynamicListFilter
extends java.lang.Object
implements Filter

This abstract filter is useful for placing dynamic lists in the action output so that a mtw:select cand display it. This is useful for AJAX combos that vary according to another combo.

Author:
Sergio Oliveira Jr.

Constructor Summary
DynamicListFilter()
           
 
Method Summary
 void destroy()
          Gives a chance to the filter to deallocalte any resources before it is destroyed.
 java.lang.String filter(InvocationChain chain)
          Executes the filter.
protected  java.lang.String getBeanName()
           
protected  java.lang.String getBeanProperty()
           
protected abstract  java.lang.String getListName()
           
protected abstract  java.util.Map<java.lang.String,java.lang.String> getMap(int id)
           
protected abstract  java.lang.String getParamName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicListFilter

public DynamicListFilter()
Method Detail

destroy

public void destroy()
Description copied from interface: Filter
Gives a chance to the filter to deallocalte any resources before it is destroyed. This is called when the web application is stopped, in other words, this has nothing to do with garbage collection.

Specified by:
destroy in interface Filter

getMap

protected abstract java.util.Map<java.lang.String,java.lang.String> getMap(int id)

getParamName

protected abstract java.lang.String getParamName()

getListName

protected abstract java.lang.String getListName()

getBeanName

protected java.lang.String getBeanName()

getBeanProperty

protected java.lang.String getBeanProperty()

filter

public java.lang.String filter(InvocationChain chain)
                        throws java.lang.Exception
Description copied from interface: Filter
Executes the filter.

Specified by:
filter in interface Filter
Parameters:
chain - The InvocationChain for the action this filter is being applied to.
Returns:
The result of the filter or the action the filter is being applied to.
Throws:
java.lang.Exception


Copyright © 2005 Mentawai Team. All Rights Reserved.