Ignore:
Timestamp:
Sep 19, 2010, 1:33:27 AM (14 years ago)
Author:
mlg
Message:

New features

  • When clicking on a category, the category is opened in a tab. When clicking on the same category again, no tab is opened but the previously opened tab is shown. The user can close the tabs (close current tab, close others, close all).
  • Ability to clip the images. There are still some bugs (unable to clip the images when zooming, and the rectangle stays when changing the image).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/ThumbnailCategoryPanel.java

    r6839 r6958  
    77import javax.swing.JPanel;
    88
     9import fr.mael.jiwigo.om.Category;
    910import fr.mael.jiwigo.om.Image;
    1011import fr.mael.jiwigo.service.ImageService;
     
    5455     */
    5556    private Integer categoryId;
     57
     58    private Category category;
     59
     60    public ThumbnailCategoryPanel(Category category) {
     61        this(category.getIdentifiant());
     62        this.category = category;
     63    }
    5664
    5765    /**
     
    111119    public void setCategoryId(Integer categoryId) {
    112120        this.categoryId = categoryId;
     121    }
     122
     123    /**
     124     * @return the category
     125     */
     126    public Category getCategory() {
     127        return category;
     128    }
     129
     130    /**
     131     * @param category the category to set
     132     */
     133    public void setCategory(Category category) {
     134        this.category = category;
    113135    }
    114136
Note: See TracChangeset for help on using the changeset viewer.