Examples of Category


Examples of net.geco.model.Category

      }
    };
    ActionListener removeAction = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Category cat = getSelectedData();
        if( cat!=null ) {
          try {
            geco.stageControl().removeCategory(cat)
          } catch (Exception e2) {
            JOptionPane.showMessageDialog(frame,
View Full Code Here

Examples of net.homeip.mleclerc.omnilinkbbclient.category.Category

      public void fieldChanged(Field field, int context) {
        if (context == ChoiceField.CONTEXT_CHANGE_OPTION) {
          ChoiceField choiceField = (ChoiceField) field;
          int index = choiceField.getSelectedIndex();
          if (index >= 0) {
            Category category = (Category) choiceField.getChoice(index);
            displayCategory(category);
          }
        }
      }
    });
View Full Code Here

Examples of net.minecraftforge.oredict.RecipeSorter.Category

    }
   
    @Override
    public int compare(IRecipe r1, IRecipe r2)
    {
        Category c1 = getCategory(r1);
        Category c2 = getCategory(r2);
        if (c1 == SHAPELESS && c2 == SHAPED) return  1;
        if (c1 == SHAPED && c2 == SHAPELESS) return -1;
        if (r2.getRecipeSize() < r1.getRecipeSize()) return -1;
        if (r2.getRecipeSize() > r1.getRecipeSize()) return  1;
        return getPriority(r2) - getPriority(r1); // high priority value first!
View Full Code Here

Examples of net.sf.josser.jdbc.impl.Category

        Topic = tokens[0];
        this.setProcessingCategory(true);
        this.setProcessingAlias(false);
        this.setProcessingCategoryDescription(false);
        this.setCategoryDescription(null);
        this.setCategoryRow(new Category());
        this.getCategoryRow().setTopic(Topic);
        this.setCtopic(Topic);
        Static
            .setFiltermatching(Topic.startsWith(Josser
                .getTopicfilter()));
View Full Code Here

Examples of net.sf.uadetector.ReadableDeviceCategory.Category

public class DeviceHashCodeBuilderTest {

  protected static final Device create() {
    final String name = "device name";
    final int id = 1;
    final Category category = Category.PERSONAL_COMPUTER;
    final String icon = "icon";
    final String infoUrl = "info url";
    final SortedSet<DevicePattern> patterns = new TreeSet<DevicePattern>();
    patterns.add(new DevicePattern(1, Pattern.compile("[0-9]"), 1));
    patterns.add(new DevicePattern(2, Pattern.compile("[a-z]"), 2));
View Full Code Here

Examples of net.sourceforge.align.coretypes.Category

        targetSegmentList.size());
    int x = 0;
    int y = 0;
    while (x < sourceSegmentList.size() || y < targetSegmentList.size()) {
      float bestScore = Float.POSITIVE_INFINITY;
      Category bestCategory = null;
      for (Category category : categoryMap.keySet()) {
        int newX = x + category.getSourceSegmentCount();
        int newY = y + category.getTargetSegmentCount();
        if (newX <= sourceSegmentList.size() &&
            newY <= targetSegmentList.size()) {
          if (forwardMatrix.get(newX, newY) != null &&
              backwardMatrix.get(newX, newY) != null) {
            float forwardScore = forwardMatrix.get(newX, newY);
            float backwardScore = backwardMatrix.get(newX, newY);
            float score = forwardScore + backwardScore - totalScore;
            if (score < bestScore) {
              bestScore = score;
              bestCategory = category;
            }
          }
        }
      }
      List<String> sourceList = createSubList(sourceSegmentList,
          x, x + bestCategory.getSourceSegmentCount());
      List<String> targetList = createSubList(targetSegmentList,
          y, y + bestCategory.getTargetSegmentCount());
      Alignment alignment =
          new Alignment(sourceList, targetList, bestScore);
      alignmentList.add(alignment);
      x += bestCategory.getSourceSegmentCount();
      y += bestCategory.getTargetSegmentCount();
      log.trace("(" + x + ", " + y + ") - s: " + bestScore + " (" + Math.exp(-bestScore) + ")");
    }

    /*
    int previousX = 0;
View Full Code Here

Examples of net.sourceforge.pebble.domain.Category

  /**
   * Tests that a blog entry with tags gets modified, when output to a HTML page.
   */
  public void testBlogEntryHasTagsAndMediaIsHtml() throws Exception {
    Category category = new Category("/java", "Java");
    category.setBlog(blog);
    category.setTags("java");
    blogEntry.addCategory(category);
    blogEntry.setExcerpt("Excerpt - here is some text");
    blogEntry.setBody("Body - here is some text");
    blogEntry.setTags("junit, automated unit testing");
    context.setMedia(ContentDecoratorContext.HTML_PAGE);
View Full Code Here

Examples of net.sourceforge.temply.base.Category

    public void intersectCategories() {
        Collection<Category> cat1 = new ArrayList<Category>();
        Collection<Category> cat2 = new ArrayList<Category>();
        assertEquals(Collections.emptyList(), Utils.intersectCategories(cat1, cat2));
       
        cat1.add(new Category("db", "SqlServer"));
       
        assertEquals(1, Utils.intersectCategories(cat1, null).size());
       
        cat2.add(new Category("db", "SqlServer"));
       
        assertEquals(1, Utils.intersectCategories(cat1, cat2).size());
       
        cat2.add(new Category("Main"));
       
        assertEquals(2, Utils.intersectCategories(cat1, cat2).size());
       
        cat2.add(new Category("db", "Oracle"));
       
        assertEquals(2, Utils.intersectCategories(cat1, cat2).size());
       
        cat1.add(new Category("Repository"));
       
        assertEquals(0, Utils.intersectCategories(cat1, cat2).size());
       
    }
View Full Code Here

Examples of net.virtuemart.www.externalsales.Category

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Category)) {
            return false;
        }
        Category other = (Category) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
                ((this.description == null && other.getDescription() == null) ||
                (this.description != null &&
                this.description.equals(other.getDescription()))) &&
                ((this.id == null && other.getId() == null) ||
                (this.id != null &&
                this.id.equals(other.getId()))) &&
                ((this.name == null && other.getName() == null) ||
                (this.name != null &&
                this.name.equals(other.getName())));
        __equalsCalc = null;
        return _equals;
    }
View Full Code Here

Examples of nl.oneday.data.domain.items.Category


  @RequestMapping(value = Paths.CATEGORY_ADD)
  public String addCategory(HttpServletRequest request, HttpServletResponse response, Model model) {

    Category category = new Category();
    category.setName(request.getParameter("categoryName"));

    if (request.getParameter("categoryName") != null && !request.getParameter("categoryName").isEmpty()) {
      boolean success = categoryService.createCategory(category);
      if (success) {
        LOG.info("category om toegevoegd met naam:" + request.getParameter("name"));
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.