Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 4694:5411975223f0
Change only local used methods to private ones
Be clear that these methods are only private api of the ProjectList class.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 17 Dec 2012 16:16:29 +0100 |
parents | a91d3bde7255 |
children | 139cf1f9a22c |
comparison
equal
deleted
inserted
replaced
4693:a91d3bde7255 | 4694:5411975223f0 |
---|---|
640 | 640 |
641 | 641 |
642 /** | 642 /** |
643 * Delete all entries in the ListGrid. | 643 * Delete all entries in the ListGrid. |
644 */ | 644 */ |
645 protected void clearGrid() { | 645 private void clearGrid() { |
646 ListGridRecord[] records = grid.getRecords(); | 646 ListGridRecord[] records = grid.getRecords(); |
647 | 647 |
648 for (ListGridRecord record: records) { | 648 for (ListGridRecord record: records) { |
649 grid.removeData(record); | 649 grid.removeData(record); |
650 } | 650 } |
656 * | 656 * |
657 * First removes all collections to avoid duplicates, then add new entries. | 657 * First removes all collections to avoid duplicates, then add new entries. |
658 * | 658 * |
659 * @param c Collections to set to the data source. | 659 * @param c Collections to set to the data source. |
660 */ | 660 */ |
661 protected void updateGridDataSource (Collection[] c) { | 661 private void updateGridDataSource(Collection[] c) { |
662 collections.clear(); | 662 collections.clear(); |
663 if(c == null) { | 663 if(c == null) { |
664 clearGrid(); | 664 clearGrid(); |
665 return; | 665 return; |
666 } | 666 } |
672 | 672 |
673 | 673 |
674 /** | 674 /** |
675 * Updates the ListGrid. | 675 * Updates the ListGrid. |
676 */ | 676 */ |
677 protected void updateGrid() { | 677 private void updateGrid() { |
678 clearGrid(); | 678 clearGrid(); |
679 | 679 |
680 if (filteredCollections == null || | 680 if (filteredCollections == null || |
681 filteredCollections.size() == 0) { | 681 filteredCollections.size() == 0) { |
682 return; | 682 return; |
852 | 852 |
853 | 853 |
854 /** | 854 /** |
855 * Clone a project (collection). | 855 * Clone a project (collection). |
856 */ | 856 */ |
857 protected void cloneArtifact(final String uuid, Collection newCollection) { | 857 private void cloneArtifact(final String uuid, Collection newCollection) { |
858 Config config = Config.getInstance(); | 858 Config config = Config.getInstance(); |
859 final String locale = config.getLocale(); | 859 final String locale = config.getLocale(); |
860 | 860 |
861 // Find out which factory to use for cloning. | 861 // Find out which factory to use for cloning. |
862 CollectionItem master = newCollection.getItem(0); | 862 CollectionItem master = newCollection.getItem(0); |
923 name = cloneCollection.identifier(); | 923 name = cloneCollection.identifier(); |
924 } | 924 } |
925 | 925 |
926 newColl.setName(messages.copy_of() + ": " + name); | 926 newColl.setName(messages.copy_of() + ": " + name); |
927 | 927 |
928 updateCollectionName(newColl); | 928 updateCollectionName(newColl, colname); |
929 if(cloneCollection.getTTL() == 0) { | 929 if(cloneCollection.getTTL() == 0) { |
930 newColl.setTTL(0); | 930 newColl.setTTL(0); |
931 updateCollectionTTL(newColl); | 931 updateCollectionTTL(newColl); |
932 } | 932 } |
933 updateUserCollections(); | 933 updateUserCollections(); |