本文整理汇总了Java中com.google.gwt.resources.client.CssResource.ClassName类的典型用法代码示例。如果您正苦于以下问题:Java ClassName类的具体用法?Java ClassName怎么用?Java ClassName使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ClassName类属于com.google.gwt.resources.client.CssResource包,在下文中一共展示了ClassName类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMethodSignature
import com.google.gwt.resources.client.CssResource.ClassName; //导入依赖的package包/类
private String getMethodSignature( JMethod method )
{
String normalName;
ClassName classNameAnnotation = method.getAnnotation( ClassName.class );
if( classNameAnnotation != null )
{
normalName = classNameAnnotation.value();
}
else
{
HexaCssExtra hexaAnnotation = method.getAnnotation( HexaCssExtra.class );
if(hexaAnnotation!=null)
normalName = hexaAnnotation.name();
else
normalName = cssClassPrefix() + method.getName();
}
String shrinkedName = classMapping.get( normalName );
if( shrinkedName == null )
{
shrinkedName = "h" + generateClassSignature( normalName );
classMapping.put( normalName, shrinkedName );
}
return shrinkedName;
}
示例2: getClassName
import com.google.gwt.resources.client.CssResource.ClassName; //导入依赖的package包/类
private String getClassName(JMethod method) {
String name = method.getName();
ClassName classNameOverride = method.getAnnotation(ClassName.class);
if (classNameOverride != null) {
name = classNameOverride.value();
}
return name;
}
示例3: close
import com.google.gwt.resources.client.CssResource.ClassName; //导入依赖的package包/类
@ClassName("closeButton")
public String close();
示例4: gwtDialogBox
import com.google.gwt.resources.client.CssResource.ClassName; //导入依赖的package包/类
/**
* When the selector name does not meet java naming rules it is possible to
* indicate the selector name using {@link ClassName}
*
* @return selector name
*/
@ClassName("gwt-DialogBox")
public String gwtDialogBox();
示例5: error
import com.google.gwt.resources.client.CssResource.ClassName; //导入依赖的package包/类
/**
* Too long inconvenient selector name ? No problem !
*
* @return selector name
*/
@ClassName("serverResponseLabelError")
public String error();