当前位置: 首页>>代码示例>>Java>>正文


Java RepeatStyle.None方法代码示例

本文整理汇总了Java中com.google.gwt.resources.client.ImageResource.RepeatStyle.None方法的典型用法代码示例。如果您正苦于以下问题:Java RepeatStyle.None方法的具体用法?Java RepeatStyle.None怎么用?Java RepeatStyle.None使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.resources.client.ImageResource.RepeatStyle的用法示例。


在下文中一共展示了RepeatStyle.None方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: checkBoxBG

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource
    checkBoxBG();
 
开发者ID:inepex,项目名称:ineform,代码行数:4,代码来源:GeneralRes.java

示例2:

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource
    select_icon();
 
开发者ID:inepex,项目名称:ineform,代码行数:4,代码来源:GeneralRes.java

示例3: exceptionDialogCloseIcon

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("image/close.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource exceptionDialogCloseIcon();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:4,代码来源:ExceptionDialogResource.java

示例4: exceptionDialogCloseIconHover

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("image/close_hover.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource exceptionDialogCloseIconHover();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:4,代码来源:ExceptionDialogResource.java

示例5: dialogTopLeft

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("image/dialogbox/panel_top_left.png")
@ImageOptions(width = 8, repeatStyle = RepeatStyle.None)
ImageResource dialogTopLeft();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:4,代码来源:ShowcaseResource.java

示例6: dialogTopRight

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("image/dialogbox/panel_top_right.png")
@ImageOptions(width = 8, repeatStyle = RepeatStyle.None)
ImageResource dialogTopRight();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:4,代码来源:ShowcaseResource.java

示例7: dialogBottomLeft

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("image/dialogbox/panel_bottom_left.png")
@ImageOptions(width = 8, height = 8, repeatStyle = RepeatStyle.None)
ImageResource dialogBottomLeft();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:4,代码来源:ShowcaseResource.java

示例8: getRepeatStyle

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
public RepeatStyle getRepeatStyle() {
  return options == null ? RepeatStyle.None : options.repeatStyle();
}
 
开发者ID:kDCYorke,项目名称:RetinaImages,代码行数:4,代码来源:RetinaImageResourceGenerator.java

示例9: poweredByGeomajas

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
/** Background for the {@link Watermark}. */
@Source("image/powered_by_geomajas.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource poweredByGeomajas();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:5,代码来源:WatermarkResource.java

示例10: zoomToRectangle

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
/** Icon for the {@link org.geomajas.gwt.client.widget.control.ZoomToRectangleWidget}. */
@Source("image/map-zoom-to-rect.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource zoomToRectangle();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:5,代码来源:ZoomToRectangleControlResource.java

示例11: zoomToRectangleHover

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
/** Icon for the {@link org.geomajas.gwt.client.widget.control.ZoomToRectangleWidget} when highlighted. */
@Source("image/map-zoom-to-rect-hover.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource zoomToRectangleHover();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:5,代码来源:ZoomToRectangleControlResource.java

示例12: popoverArrowDownImage

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
@Source("theme/img/popover-arrow-parking-down.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
public ImageResource popoverArrowDownImage();
 
开发者ID:vaadin,项目名称:touchkit,代码行数:4,代码来源:VTouchKitResources.java

示例13: createSprite

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
private void createSprite(CssDeclarationNode declaration) {
  List<CssValueNode> valuesNodes = declaration.getPropertyValue().getChildren();

  if (valuesNodes.size() != 1) {
    errorManager.report(new GssError(SPRITE_PROPERTY_NAME + " must have exactly one value",
        declaration.getSourceCodeLocation()));
  }

  String imageResource = valuesNodes.get(0).getValue();

  JMethod imageMethod;
  try {
    imageMethod = ResourceGeneratorUtil.getMethodByPath(context.getClientBundleType(),
        getPathElement(imageResource), imageResourceType);
  } catch (NotFoundException e) {
    errorManager.report(new GssError("Unable to find ImageResource method "
        + imageResource + " in " + context.getClientBundleType().getQualifiedSourceName() + " : "
        + e.getMessage(), declaration.getSourceCodeLocation()));
    return;
  }

  ImageOptions options = imageMethod.getAnnotation(ImageOptions.class);
  RepeatStyle repeatStyle = options != null ? options.repeatStyle() : RepeatStyle.None;

  Builder<CssDeclarationNode> listBuilder = ImmutableList.builder();
  SourceCodeLocation sourceCodeLocation = declaration.getSourceCodeLocation();

  String repeatText;
  switch (repeatStyle) {
    case None:
      repeatText = " no-repeat";
      listBuilder.add(buildHeightDeclaration(imageResource, sourceCodeLocation));
      listBuilder.add(buildWidthDeclaration(imageResource, sourceCodeLocation));
      break;
    case Horizontal:
      repeatText = " repeat-x";
      listBuilder.add(buildHeightDeclaration(imageResource, sourceCodeLocation));
      break;
    case Vertical:
      repeatText = " repeat-y";
      listBuilder.add(buildWidthDeclaration(imageResource, sourceCodeLocation));
      break;
    case Both:
      repeatText = " repeat";
      break;
    default:
      errorManager.report(new GssError("Unknown repeatStyle " + repeatStyle,
          sourceCodeLocation));
      return;
  }

  listBuilder.add(buildOverflowDeclaration(sourceCodeLocation));
  listBuilder.add(buildBackgroundDeclaration(imageResource, repeatText, sourceCodeLocation));

  visitController.replaceCurrentBlockChildWith(listBuilder.build(), false);
}
 
开发者ID:jDramaix,项目名称:gss.gwt,代码行数:57,代码来源:ImageSpriteCreator.java

示例14: panControlTopHover

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
/** Top pan button for the {@link org.geomajas.gwt2.client.widget.control.pan.PanControl} when highlighted. */
@Source("image/map-pan-top-hover.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource panControlTopHover();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:5,代码来源:PanControlResource.java

示例15: zoomStepControlHandleHover

import com.google.gwt.resources.client.ImageResource.RepeatStyle; //导入方法依赖的package包/类
/** Zoom step handle for the {@link org.geomajas.gwt.client.widget.control.ZoomStepWidget} when highlighted. */
@Source("image/map-zoom-step-handle-hover.png")
@ImageOptions(repeatStyle = RepeatStyle.None)
ImageResource zoomStepControlHandleHover();
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt2,代码行数:5,代码来源:ZoomStepControlResource.java


注:本文中的com.google.gwt.resources.client.ImageResource.RepeatStyle.None方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。