Examples of Favorite


Examples of tvbrowser.extras.favoritesplugin.core.Favorite

    send.setVisible(true);
  }


  protected void newFavorite(FavoriteNode parent) {
    Favorite favorite;
    if (FavoritesPlugin.getInstance().isUsingExpertMode()) {
      favorite = new AdvancedFavorite("");
      EditFavoriteDialog dlg = new EditFavoriteDialog(this, favorite);
      UiUtilities.centerAndShow(dlg);
View Full Code Here

Examples of tvbrowser.extras.favoritesplugin.core.Favorite

  public void addFavorite(Favorite fav, Object dummy) {
    mFavoritesListModel.addElement(fav);
  }

  protected void editSelectedFavorite() {
    Favorite fav = null;
    FavoriteNode node = null;
    if(mFavoritesList != null) {
      fav = (Favorite) mFavoritesList.getSelectedValue();
    }
    else {
View Full Code Here

Examples of tvbrowser.extras.favoritesplugin.core.Favorite

      if(mFavoriteTree.getSelectionPath() != null && ((FavoriteNode)mFavoriteTree.getSelectionPath().getLastPathComponent()).containsFavorite()) {
        selection = 0;
      }
    }
    if (selection != -1) {
      Favorite fav;
      FavoriteNode parent = null;
      if(mFavoritesList != null) {
        fav = (Favorite) mFavoritesListModel.get(selection);
        mFavoritesListModel.remove(selection);
      }
      else {
        FavoriteNode node = ((FavoriteNode)mFavoriteTree.getSelectionPath().getLastPathComponent());
        fav = node.getFavorite();
        parent = (FavoriteNode) node.getParent();
      }

      if (JOptionPane.showConfirmDialog(this,
              FavoritesPlugin.mLocalizer.msg("reallyDelete", "Really delete favorite '{0}'?", fav.getName()),
              mLocalizer.msg("delete", "Delete selected favorite..."),
              JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {

        FavoriteTreeModel.getInstance().deleteFavorite(fav);
View Full Code Here

Examples of tvbrowser.extras.favoritesplugin.core.Favorite

    {
      Component c = super.getListCellRendererComponent(list, value, index, isSelected,
          cellHasFocus);

      if (value instanceof Favorite && c instanceof JLabel) {
        Favorite fav = (Favorite)value;
        ((JLabel)c).setText(fav.getName() + " (" + (mShowNew ? fav.getNewPrograms().length : fav.getWhiteListPrograms().length) + ")");

        if(mShowNew && fav.getNewPrograms().length > 0 && !isSelected) {
          c.setForeground(Color.red);
        }
      }
      return c;
    }
View Full Code Here

Examples of weibo4j.Favorite

   */
  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    String id = "3406785442845028";
    try {
      Favorites favors =fm.destroyFavorites(id);
      Log.logInfo(favors.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Favorite

   */
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    boolean result = false;
    String ids = args[1];
    try {
      result = fm.destroyFavoritesTagsBatch(ids);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {

      e.printStackTrace();
    }
View Full Code Here

Examples of weibo4j.Favorite

  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String id = "3406785442845028";
    Favorite fm = new Favorite();
    try {
      Favorites favors = fm.createFavorites(id);
      Log.logInfo(favors.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Favorite

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      List<FavoritesTag> favors = fm.getFavoritesTags();
      for(FavoritesTag s : favors){
        Log.logInfo(s.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

Examples of weibo4j.Favorite

  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      List<Favorites> favors = fm.getFavorites();
      for(Favorites s : favors){
        Log.logInfo(s.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

Examples of weibo4j.Favorite

   */
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      String tags=args[1];
      String id = args[2];
      Favorites favors = fm.updateFavoritesTags(id, tags);
      Log.logInfo(favors.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
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.