Examples of Resources


Examples of com.google.gwt.user.cellview.client.DataGrid.Resources

 
  /**
   * Test if the dataGridWidget style is applied.
   */
  public void testDataGridWidgetStyle() {
    Resources res = GWT.create(Resources.class);
    DataGrid<String> dataGrid = new DataGrid<String>(20, res);
   
    String dataGridWidgetStyle = res.dataGridStyle().dataGridWidget();
   
    TableElement tableElem = dataGrid.getElement().cast();
    assertTrue(tableElem.getClassName().contains(dataGridWidgetStyle));
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Tree.Resources

   }

   @Test
   public void imageResource_FromGwtAPI() {
      // Arrange
      Resources treeResources = GWT.create(Resources.class);

      // Act
      String name = treeResources.treeOpen().getName();
      String url = treeResources.treeLeaf().getSafeUri().asString();

      // Assert
      assertEquals("treeOpen", name);
      assertEquals("http://127.0.0.1:8888/gwt_test_utils_module/treeLeaf.gif", url);
   }
View Full Code Here

Examples of com.google.speedtracer.client.MonitorResources.Resources

    browserId = getIdParameter("browserId");
    tabId = getIdParameter("tabId");

    MonitorResources.init();
    final Resources resources = MonitorResources.getResources();
    // Inject styles. Compiler should concat all these into a big style String.
    StyleInjector.inject(resources.overViewGraphCss().getText()
        + resources.mainTimeLineCss().getText()
        + resources.transientGraphSelectionCss().getText()
        + resources.commonCss().getText()
        + resources.overViewTimeLineCss().getText()
        + resources.domainRegionSelectionCss().getText()
        + resources.hoveringPopupCss().getText()
        + resources.controllerCss().getText()
        + resources.monitorVisualizationsPanelCss().getText()
        + resources.fastTooltipCss().getText()
        + resources.timeScaleCss().getText()
        + resources.currentSelectionMarkerCss().getText()
        + resources.pageTransitionMarkerCss().getText()
        + resources.detailViewsCss().getText()
        + resources.networkTimeLineDetailViewCss().getText()
        + resources.resourceRowCss().getText()
        + resources.networkPillBoxCss().getText()
        + resources.requestDetailsCss().getText()
        + resources.sluggishnessDetailViewCss().getText()
        + resources.hintletIndicatorCss().getText()
        + resources.filteringScrollTableCss().getText()
        + resources.pieChartCss().getText()
        + resources.hintletReportCss().getText()
        + resources.hintletReportDialogCss().getText()
        + resources.sortableTableHeaderCss().getText()
        + resources.scopeBarCss().getText()
        + resources.colorListCss().getText() + resources.treeCss().getText()
        + resources.eventTraceBreakdownCss().getText()
        + resources.mainGraphCss().getText()
        + resources.overViewGraphCss().getText()
        + resources.monitorCss().getText()
        + resources.sourceViewerCss().getText()
        + resources.stackFrameRendererCss().getText()
        + resources.javaScriptProfileRendererCss().getText()
        + resources.eventWaterfallRowCss().getText()
        + resources.eventWaterfallRowDetailsCss().getText()
        + resources.sluggishnessFiletPanelCss().getText()
        + resources.timelineMarksCss().getText(), true);

    final WindowExt window = getBackgroundView();
    channel = Client.connect(window, CHANNEL_NAME, this);
    requestInitialization();
  }
View Full Code Here

Examples of com.hubspot.mesos.Resources

    this.deployHistoryHelper = deployHistoryHelper;

    this.defaultCpus = configuration.getMesosConfiguration().getDefaultCpus();
    this.defaultMemoryMb = configuration.getMesosConfiguration().getDefaultMemory();

    defaultResources = new Resources(defaultCpus, defaultMemoryMb, 0);

    this.maxCpusPerInstance = configuration.getMesosConfiguration().getMaxNumCpusPerInstance();
    this.maxCpusPerRequest = configuration.getMesosConfiguration().getMaxNumCpusPerRequest();
    this.maxMemoryMbPerInstance = configuration.getMesosConfiguration().getMaxMemoryMbPerInstance();
    this.maxMemoryMbPerRequest = configuration.getMesosConfiguration().getMaxMemoryMbPerRequest();
View Full Code Here

Examples of com.lanyuan.entity.Resources

   * @param type
   * @return
   */
  @RequestMapping(value="getById")
  public String getById(Model model,String resourcesId,int typeKey){
    Resources resources = resourcesService.getById(resourcesId);
    model.addAttribute("resources", resources);
    List<Resources> resLists = resourcesService.findAll();
    model.addAttribute("resLists", resLists);
    if(typeKey == 1){
      return "/background/resources/edit";
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Resources

    {
      result.setFailed(RESOURCE_PATH_ALREADY_EXIST);
      return result;
    }
   
    Resources resource = new Resources();
    try{
      BeanUtils.populate(resource, properties);
      resource.setId(MyUUIDGen.getUUID());
      resource.setResourceCategory(category);
      resourcesDAO.merge(resource);
     
      ResAccess resAccess = new ResAccess();
      resAccess.setResourceId(resource.getId());
      resAccess.setResources(resource);
      resAccess.setStatus(true);//默认访问控制为true
      resAccess.setExpression("hasAnyRole('root')");
      resAccessDAO.merge(resAccess);
     
      String method = "";
      String expression = resAccess.getExpression();
      String url = new StringBuffer().append(method).append(",").append(path)
      .append(",").append(expression).toString();
      securityMetadataSource.setInterceptUrl(url);
     
      result.setSucceed(resource.getId());
    }
    catch(Exception e)
    {
      e.printStackTrace();
      result.setFailed(e.getMessage());
View Full Code Here

Examples of com.opera.core.systems.testing.Resources

  @Rule
  public TemporaryFolder temporaryFolder = new TemporaryFolder();

  @Before
  public void prepare() throws IOException {
    resources = new Resources();
  }
View Full Code Here

Examples of com.spotify.helios.common.descriptors.Resources

    builder.cmd(job.getCommand());
    builder.env(containerEnvStrings());
    builder.exposedPorts(containerExposedPorts());
    builder.domainname(host);
    builder.volumes(volumes());
    final Resources resources = job.getResources();
    if (resources != null) {
      builder.memory(resources.getMemory());
      builder.memorySwap(resources.getMemorySwap());
      builder.cpuset(resources.getCpuset());
      builder.cpuShares(resources.getCpuShares());
    }
    containerDecorator.decorateContainerConfig(job, imageInfo, builder);
    return builder.build();
  }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Resources

    private void loadPool(com.sun.enterprise.config.serverbeans.JdbcResource jr)
            throws Exception {

        String poolName = jr.getPoolName();
        Resources resources = (Resources) jr.parent();
        ConfigBean cb = resources.getJdbcConnectionPoolByName(poolName);
        if (cb != null) {
            try {
                InitialContext ic = new InitialContext();
                ic.lookup(ConnectorAdminServiceUtils.
                                getReservePrefixedJNDINameForPool(poolName));
View Full Code Here

Examples of com.sun.lwuit.util.Resources

//        Datas.jid.setPresence(Presence.getPresence("online")); //change user status
//     }
   
    try {
            Display.init(this);
            Resources r1 = Resources.open("/newTheme.res");
            UIManager.getInstance().setThemeProps(r1.getTheme(r1.getThemeResourceNames()[0]));
            getGuiIntroScreen();
           
            Datas.load();
            handlePushActivation();
          
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.