|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.font.DefaultStringMatcher
org.xwiki.gwt.wysiwyg.client.plugin.font.AbstractFontMatcher
org.xwiki.gwt.wysiwyg.client.plugin.font.FontFamilyMatcher
public class FontFamilyMatcher
Matches values of the font-family CSS property.
| Field Summary | |
|---|---|
static java.lang.String |
SANS_SERIF_SUFFIX
The suffix added to a font family name in order to default it to the generic sans-serif family. |
static java.lang.String |
SERIF_SUFFIX
The suffix added to a font family name in order to default it to the generic serif family. |
static int |
TEST_FONT_SIZE
A larger font size increases the accuracy but may lower the speed of the test. |
| Fields inherited from class org.xwiki.gwt.wysiwyg.client.plugin.font.AbstractFontMatcher |
|---|
container, left, right |
| Constructor Summary | |
|---|---|
FontFamilyMatcher()
Creates a new font family matcher. |
|
| Method Summary | |
|---|---|
boolean |
match(java.lang.String leftValue,
java.lang.String rightValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TEST_FONT_SIZE
public static final java.lang.String SERIF_SUFFIX
public static final java.lang.String SANS_SERIF_SUFFIX
| Constructor Detail |
|---|
public FontFamilyMatcher()
| Method Detail |
|---|
public boolean match(java.lang.String leftValue,
java.lang.String rightValue)
match in interface Matcher<java.lang.String>match in class DefaultStringMatcherleftValue - the left valuerightValue - the right value
true if the left and right values match, false otherwiseMatcher.match(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||