|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.html.LiteralOptionsComparator
Options Comparator for String literals
Field Summary | |
private java.lang.Object[] |
match
String Literals for comparison |
Constructor Summary | |
LiteralOptionsComparator(java.lang.Object value)
Constructor |
|
LiteralOptionsComparator(java.lang.Object[] values)
Constructor |
Method Summary | |
int |
indexOf(java.lang.Object value)
returns the index of the element that matches the given value |
boolean |
match(java.lang.Object value)
Checks if the specified Option is selected |
private static boolean |
match(java.lang.Object obj1,
java.lang.Object obj2)
Compares two option values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object[] match
Constructor Detail |
public LiteralOptionsComparator(java.lang.Object value)
value
- The Literalpublic LiteralOptionsComparator(java.lang.Object[] values)
values
- The Literal arrayMethod Detail |
public boolean match(java.lang.Object value)
OptionsComparator
match
in interface OptionsComparator
value
- The option to test
true
if the option is selected; false
otherwise.OptionsComparator.match(java.lang.Object)
public int indexOf(java.lang.Object value)
OptionsComparator
indexOf
in interface OptionsComparator
value
- The option to test
>= 0
if the option is selected; -1
otherwise.OptionsComparator.indexOf(java.lang.Object)
private static boolean match(java.lang.Object obj1, java.lang.Object obj2)
obj1
- first object to compareobj2
- second object to compare
true
when both option values are equal
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |