Examples of Tag


Examples of com.sun.facelets.tag.Tag

    private Tag tag;
    private final ComponentConfig config;

    ColumnHandlerComponentConfig(ComponentConfig config) {
        this.config = config;
        Tag initialTag = config.getTag();
        TagAttribute[] allInitialAttributes = initialTag.getAttributes().getAll();
        TagAttribute[] attributes = new TagAttribute[allInitialAttributes.length];
        for (int i = 0; i < allInitialAttributes.length; i++) {
            TagAttribute initialAttribute = allInitialAttributes[i];
            String localName = initialAttribute.getLocalName();
            String attributeValue = initialAttribute.getValue();

            if ("id".equals(localName)) {
                attributeValue += ITERATION_INDEX_EXPRESSION;
            }

            attributes[i] = new TagAttribute(initialAttribute.getLocation(), initialAttribute.getNamespace(),
                localName, initialAttribute.getQName(), attributeValue);
        }

        TagAttributes tagAttributes = new TagAttributes(attributes);
        this.tag = new Tag(initialTag, tagAttributes);
    }
View Full Code Here

Examples of com.sun.java.help.impl.Tag

  public void tagFound(ParserEvent e) {
            debug("tagFound " + e.getTag().name);
      Locale locale = null;
      LangElement le;
      Tag tag = e.getTag();
      String name = tag.name;
      int x=0, y=0, width=0, height=0;
      TagProperties attr = tag.atts;
      Hashtable ht = (attr == null) ? null : attr.getHashtable();
View Full Code Here

Examples of com.sun.javadoc.Tag

    }

    private static String getFirstSentence(Tag[] tags) {
        String firstSentence = null;
        if (tags.length > 0) {
            Tag first = tags[0];
            firstSentence = first.text();
        }
        return firstSentence;
    }
View Full Code Here

Examples of com.sun.tools.javac.tree.JCTree.Tag

        if (currentValue == null) {
            return Value.UNKNOWN;
        }

        Tag opcode = OPASG_TO_OP.get(assignOp.getTag());
        Value newValue = Value.binary(opcode, currentValue, rhs);
        currentAssignments.put(targetSym, newValue);

        return newValue;
    }
View Full Code Here

Examples of com.tapestry5book.tlog.core.entities.Tag

                User user = new User();
                user.setName(attributes.getValue("name"));
                user.setPassword(DigestUtils.md5Hex(user.getName()));
                users.add(user);
            }else if(localName.equals("tag")){
                Tag tag = new Tag();
                tag.setName(attributes.getValue("name"));
                tags.add(tag);
            }

        }
View Full Code Here

Examples of com.tubeilike.entity.Tag

    JavaCacheHandle.initCache();
    if (videoEntry.getMediaGroup().getKeywords() != null) {
      List<Text> listKey = new ArrayList<Text>();
      for (String keyword : videoEntry.getMediaGroup().getKeywords()
          .getKeywords()) {
        Tag tmpTag = null;
        listKey.add(new Text(keyword));
        String tagAlias = keyword;
        tmpTag = TagModel.getByAlias(tagAlias);
        List<Text> listTubeId = new ArrayList<Text>();
        if (tmpTag != null) {
          tmpTag.setCount(tmpTag.getCount() + 1);
          listTubeId.addAll(tmpTag.getListTubeId());
          listTubeId.add(new Text(this.tubeId));
          tmpTag.setListTubeId(listTubeId);
          TagModel.update(tmpTag);
          TagModel.closePM();
        } else {
          tmpTag = new Tag();
          listTubeId.add(new Text(this.tubeId));
          tmpTag.setListTubeId(listTubeId);
          tmpTag.setAlias(tagAlias);
          tmpTag.setCount(1);
          tmpTag.setTitle(new Text(tagAlias));
          TagModel.add(tmpTag);
        }
      }
      this.keywords = listKey;
      JavaCacheHandle.addKeywords(listKey);
View Full Code Here

Examples of com.tubemostwanted.entity.Tag

        response.sendRedirect("/home");
      }

      keyword = URLDecoder.decode(keyword, "UTF8");
      System.out.println("Keyword to search : " + keyword);     
      Tag tag = TagModel.getByAlias(keyword);
      if (tag != null) {
        List<Tube> result = new ArrayList<Tube>();
        int startPoint = (page - 1) * itemPerPage;
        if (tag.getListTubeId().size() > startPoint) {
          for (int i = startPoint; i < tag.getListTubeId().size(); i++) {
            if (i == (itemPerPage + startPoint)) {
              break;
            }
            String id = tag.getListTubeId().get(i).getValue();
            System.out.println(id);
            Tube tub = TubeModel.getByTubeId(id);
            if (tub != null) {
              result.add(tub);
            }
          }
        } else {
          page = 1;
          for (int i = 0; i < tag.getListTubeId().size(); i++) {
            if (i == itemPerPage) {
              break;
            }
            String id = tag.getListTubeId().get(i).getValue();
            Tube tub = TubeModel.getByTubeId(id);
            if (tub != null) {
              result.add(tub);
            }
          }
        }
        request.setAttribute("url", request.getRequestURL());
        request.setAttribute("result", result);
        request.setAttribute("currentPage", page);
        request.setAttribute("keyword", keyword.replaceAll("\\+", " "));
        request.setAttribute("totalResult", tag.getListTubeId().size());
        request.getRequestDispatcher("/keyword_show.jsp").forward(
            request, response);
      } else {
        System.out.println("Tag is not exits.");
        response.sendRedirect("/home");
View Full Code Here

Examples of com.tubeonfire.entity.Tag

  }

  @SuppressWarnings("unchecked")
  public static Tag getByAlias(String alias) {
    init();
    Tag obj = new Tag();
    String prefix = cachePrefix + "alias_" + alias;
    if (cache != null && cache.containsKey(prefix)) {
      obj = (Tag) cache.get(prefix);
      System.out.println("Get tag from cache !");
    } else {
View Full Code Here

Examples of com.wesabe.api.accounts.entities.Tag

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);
      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.addTag(new Tag("food"));

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
      this.summaries = summarizer.summarize(ImmutableList.of(txaction), interval, IntervalType.MONTHLY, USD, null);
    }
View Full Code Here

Examples of cs213.photoAlbum.util.Tag

        int row = table.getSelectedRow();
       
        String type = (String) table.getModel().getValueAt(row, 0);
        String value = (String) table.getModel().getValueAt(row, 1);
//       
        Tag currenttag = new Tag(type, value);
       
        tags.remove(currenttag);
        SearchByTag nextWindow = new SearchByTag(view, tags);
        SearchByTag.this.dispose();
//        updateTags();
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.