Examples of Container


Examples of net.java.sip.communicator.service.gui.Container

     * @param event <tt>PluginComponentEvent</tt> that notified us
     */
    public void pluginComponentRemoved(PluginComponentEvent event)
    {
        PluginComponent pluginComponent = event.getPluginComponent();
        Container pluginContainer = pluginComponent.getContainer();
        Object component = pluginComponent.getComponent();

        if (!(component instanceof Component))
            return;

        if (pluginContainer.equals(Container.CONTAINER_MAIN_TOOL_BAR))
            toolbarPluginPanel.remove((Component) component);
        else if (pluginContainer.equals(Container.CONTAINER_ACCOUNT_SOUTH))
            southPluginPanel.remove((Component) component);

        this.revalidate();
        this.repaint();
    }
View Full Code Here

Examples of net.minecraft.inventory.Container

    public boolean isTransmutationResult(BlockTuple block, World w, int x, int y, int z) {
        return getBlockTransformation(w, x, y, z).values().contains(block);
    }

    public ItemStack getBlockCraftingResult(World w, ItemStack itemStack) {
        InventoryCrafting blockCraftInventory = new InventoryCrafting(new Container() {
            @Override
            public boolean canInteractWith(EntityPlayer entityPlayer) {
                return false;
            }
        }, 3, 3);
View Full Code Here

Examples of net.sf.block.Container

    Format format = new FormatFactory().createFormat(definition);

    SAMRecord samRecord = null;
    CramHeader cramHeader = createCramHeader(reader.getFileHeader());
    ByteArrayOutputStream hBaos= new ByteArrayOutputStream() ;
    Container hC = new Container() ;
    Block hBlock = new Block() ;
    hBlock.contentId=0;
    hBlock.contentType=0;
    hBlock.method = CompressionMethod.GZIP.byteValue() ;
    hC.blocks = new Block[]{hBlock} ;
    hC.containers= new Container[0] ;
    CramHeaderIO.write(cramHeader, hBaos) ;
    hBlock.data = hBaos.toByteArray() ;
    format.writeContainer(hC, hBaos) ;
    System.out.println("Header size: " + hBaos.size());
   
    for (int b = 0; b < maxRecords; b+=recordsPerBlock) {
      bases = 0 ;
      size = 0 ;
      for (int i = 0; i < recordsPerBlock; i++) {
        samRecord = iterator.next();
        a.addSAMRecord(samRecord);
        bases += samRecord.getReadLength();
      }

      for (int i = 0; i < recordsPerBlock; i++) {
        while ((samRecord = a.nextSAMRecord()) != null) {
          CramRecord cramRecord = scFactory.createCramRecord(samRecord);
          records.add(cramRecord);

          setPairingInformation(cramRecord, samRecord, a.distanceToNextFragment());
        }
        while ((samRecord = a.fetchNextSAMRecord()) != null) {
          CramRecord cramRecord = scFactory.createCramRecord(samRecord);
          records.add(cramRecord);

          setPairingInformation(cramRecord, samRecord, a.distanceToNextFragment());
        }

      }

      Container container = new Coder(recordsPerSlice).writeRecords(cramHeader, records, provider);

      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      long time1 = System.nanoTime();
      format.writeContainer(container, baos);
      long time2 = System.nanoTime();
      System.out.printf("Container written: bytes=%d in %.2f ms.\n", baos.size(), (time2 - time1) / 1000000f);
      size += baos.size();

      records.clear();

      System.out.printf("Total records: %d, bases=%d, bytes=%d, b/b=%.2f\n", counter, bases, size, 8f * size
          / bases);

      time1 = System.nanoTime();
      Container c = format.readContainer(new ByteArrayInputStream(baos.toByteArray()));
      time2 = System.nanoTime();
      System.out.printf("Container read in %.2f ms.\n", (time2 - time1) / 1000000f);

      time1 = System.nanoTime();
      List<CramRecord> readRecords = new Coder(recordsPerSlice).readRecords(c, cramHeader, provider);
View Full Code Here

Examples of net.sf.cram.structure.Container

    return readContainer(samFileHeader, is, 0, Integer.MAX_VALUE);
  }

  public static Container readContainerHeader(InputStream is)
      throws IOException {
    Container c = new Container();
    ContainerHeaderIO chio = new ContainerHeaderIO();
    if (!chio.readContainerHeader(c, is)) return null ;
    return c;
  }
View Full Code Here

Examples of net.sf.joafip.export_import.Container

    HelperReflect.getInstance().setAlwaysAcceptNullField(true);
    filePersistence.xmlImport("../joafip/export222", false);
    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
    dataAccessSession.open();
    final Container container = (Container) dataAccessSession
        .getObject("container");
    assertTrue("bad state", container.checkState());
    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);
  }
View Full Code Here

Examples of net.sf.orexio.lopf.container.Container

      jListAdresss
          .addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent e) {
              if(jListAdresss.getSelectedIndex()==-1){return;}
              Address   address=null;
              Container   container=(Container)jListAdresss.getSelectedValue();
              try{address=(Address)container.getData();}
              catch(IOException ex){ex.printStackTrace();}
              catch(ClassNotFoundException ex){ex.printStackTrace();}
              if(address!=null){
                propertiesTable.setProperties(address.getProperties());
              }
View Full Code Here

Examples of net.sourceforge.javautil.container.annotation.Container

  /**
   * @param pojoContainer The pojo container from which to extract a name
   * @return The name of the pojo container
   */
  public static String getPojoContainerName (Object pojoContainer) {
    Container container = pojoContainer.getClass().getAnnotation(Container.class);
    if (container != null && !"".equals(container.name())) {
      return container.name();
    } else {
      if (Proxy.isProxyClass(pojoContainer.getClass())) {
        for (Class<?> iface : pojoContainer.getClass().getInterfaces()) {
          container = iface.getAnnotation(Container.class);
          if (container != null && !"".equals(container.name())) {
            return container.name();
          } else if (container != null) {
            return iface.getSimpleName();
          }
        }
        return "Proxied Container";
View Full Code Here

Examples of objot.container.Container

          new ModelsCreate(true).create(true, 1);
          return "ok";
        }

      HttpSession hse = context.get(HttpSession.class);
      Container sess = (Container)hse.getAttribute("container");
      if (sess == null)
        synchronized (hse) // double check
        {
          sess = (Container)hse.getAttribute("container");
          if (sess == null)
            hse.setAttribute("container", sess = container.parent().create());
        }
      Container con = container.create(sess);
      Object ser = con.get(inf.cla);
      invoke(inf, ser, req, begin, end1, extraReqs);
      if (sess.get(Session.class).close)
        hse.invalidate();
      if (ser instanceof Do && ((Do)ser).respType != null)
        context.set(String.class, ((Do)ser).respType);
      return con.get(Data.class).result;
    }
    catch (RequestException e)
    {
      if (log.isTraceEnabled())
        log.trace(e);
View Full Code Here

Examples of org.apache.cactus.integration.ant.container.Container

    {
        if (isReference())
        {
            throw noChildrenAllowed();
        }
        Container container = this.factory.createContainer(theName);
        this.containers.add(container);
        return container;
    }
View Full Code Here

Examples of org.apache.click.control.Container

        } else {
            for (int i = 0; i < container.getControls().size(); i++) {
                Control childControl = (Control) container.getControls().get(i);

                if (childControl instanceof Container) {
                    Container childContainer = (Container) childControl;
                    Control found = findControlByName(childContainer, name);
                    if (found != null) {
                        return found;
                    }
                }
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.