com.cc.framework.taglib
Class StrutsSelectTagComparator

java.lang.Object
  extended bycom.cc.framework.taglib.StrutsSelectTagComparator
All Implemented Interfaces:
OptionsComparator

public class StrutsSelectTagComparator
extends java.lang.Object
implements OptionsComparator

Specialised options Comparator for integration with the Struts Framework

Version:
$Revision: 1.1 $
Author:
Harald Schulz

Field Summary
private  org.apache.struts.taglib.html.SelectTag tag
          Select Tag
 
Constructor Summary
StrutsSelectTagComparator(org.apache.struts.taglib.html.SelectTag tag)
          Constructor
 
Method Summary
 int indexOf(java.lang.Object option)
          returns the index of the element that matches the given value
 boolean match(java.lang.Object option)
          Metode match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

private org.apache.struts.taglib.html.SelectTag tag
Select Tag

Constructor Detail

StrutsSelectTagComparator

public StrutsSelectTagComparator(org.apache.struts.taglib.html.SelectTag tag)
Constructor

Parameters:
tag - SelectTag
Method Detail

match

public boolean match(java.lang.Object option)
Metode match

Specified by:
match in interface OptionsComparator
Parameters:
option - String to macth
Returns:
boolean

indexOf

public int indexOf(java.lang.Object option)
Description copied from interface: OptionsComparator
returns the index of the element that matches the given value

Specified by:
indexOf in interface OptionsComparator
Parameters:
option - The option to test
Returns:
>= 0 if the option is selected; -1 otherwise.
See Also:
OptionsComparator.indexOf(java.lang.Object)


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