本文整理匯總了Java中cz.vutbr.web.css.CSSProperty.ListStylePosition類的典型用法代碼示例。如果您正苦於以下問題:Java ListStylePosition類的具體用法?Java ListStylePosition怎麽用?Java ListStylePosition使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ListStylePosition類屬於cz.vutbr.web.css.CSSProperty包,在下文中一共展示了ListStylePosition類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ListStyleVariator
import cz.vutbr.web.css.CSSProperty.ListStylePosition; //導入依賴的package包/類
public ListStyleVariator() {
super(3);
names.add("list-style-type");
types.add(ListStyleType.class);
names.add("list-style-position");
types.add(ListStylePosition.class);
names.add("list-style-image");
types.add(ListStyleImage.class);
}
示例2: variant
import cz.vutbr.web.css.CSSProperty.ListStylePosition; //導入依賴的package包/類
@Override
protected boolean variant(int v, IntegerRef iteration,
Map<String, CSSProperty> properties, Map<String, Term<?>> values) {
// we won't use multivalue functionallity
int i = iteration.get();
switch (v) {
case TYPE:
// list style type
return genericTermIdent(ListStyleType.class, terms.get(i),
AVOID_INH, names.get(TYPE), properties);
case POSITION:
// list style position
return genericTermIdent(ListStylePosition.class, terms.get(i),
AVOID_INH, names.get(POSITION), properties);
case IMAGE:
// list style image
return genericTermIdent(types.get(IMAGE), terms.get(i),
AVOID_INH, names.get(IMAGE), properties)
|| genericTerm(TermURI.class, terms.get(i), names
.get(IMAGE), ListStyleImage.uri, false,
properties, values);
default:
return false;
}
}
示例3: variant
import cz.vutbr.web.css.CSSProperty.ListStylePosition; //導入依賴的package包/類
@Override
protected boolean variant(int v, IntegerRef iteration,
Map<String, CSSProperty> properties, Map<String, Term<?>> values) {
// we won't use multivalue functionallity
int i = iteration.get();
switch (v) {
case TYPE:
// list style type
return genericTermIdent(ListStyleType.class, terms.get(i),
AVOID_INH, names.get(TYPE), properties);
case POSITION:
// list style position
return genericTermIdent(ListStylePosition.class, terms.get(i),
AVOID_INH, names.get(POSITION), properties);
case IMAGE:
// list style image
return genericTermIdent(types.get(IMAGE), terms.get(i),
AVOID_INH, names.get(IMAGE), properties)
|| genericTerm(TermURI.class, terms.get(i), names
.get(IMAGE), ListStyleImage.uri, ValueRange.ALLOW_ALL,
properties, values);
default:
return false;
}
}