~tudor/flywire/0.2.1

« back to all changes in this revision

Viewing changes to src/org/bentokit/flywire/BasicMediaInfoPanelFactory.java

  • Committer: tudor
  • Date: 2011-03-12 00:47:02 UTC
  • Revision ID: svn-v4:48700339-fa25-0410-b67c-989cebe9404f:branches/0.2:78
Compiles and runs, but is much broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of Flywire.
3
 
 
4
 
    Flywire is free software: you can redistribute it and/or modify
5
 
    it under the terms of the GNU General Public License as published by
6
 
    the Free Software Foundation, either version 3 of the License, or
7
 
    (at your option) any later version.
8
 
 
9
 
    Flywire is distributed in the hope that it will be useful,
10
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
    GNU General Public License for more details.
13
 
 
14
 
    You should have received a copy of the GNU General Public License
15
 
    along with Flywire.  If not, see <http://www.gnu.org/licenses/>.
16
 
*/
17
 
package org.bentokit.flywire;
18
 
 
19
 
/*
20
 
 * To change this template, choose Tools | Templates
21
 
 * and open the template in the editor.
22
 
 */
23
 
 
24
 
/**
25
 
 *
26
 
 * @author cbpaine
27
 
 */
28
 
public class BasicMediaInfoPanelFactory implements MediaInfoPanelFactory
29
 
{
30
 
    public MediaInfoPanel makeSummaryMediaPanel()
31
 
    {
32
 
        return new BasicMediaInfoPanel();
33
 
    }
34
 
 
35
 
    public MediaInfoPanel makeVerboseMediaPanel()
36
 
    {
37
 
        return new BasicMediaInfoPanel();
38
 
    }
39
 
 
40
 
    public MediaInfoPanel makeSummaryMediaPanel(MediaInfoPanel template)
41
 
    {
42
 
        assert template instanceof BasicMediaInfoPanel;
43
 
        return new BasicMediaInfoPanel((BasicMediaInfoPanel) template);
44
 
    }
45
 
 
46
 
    public MediaInfoPanel makeVerboseMediaPanel(MediaInfoPanel template)
47
 
    {
48
 
        assert template instanceof BasicMediaInfoPanel;
49
 
        return new BasicMediaInfoPanel((BasicMediaInfoPanel) template);
50
 
    }
51
 
 
52
 
    public Class getSummaryMediaPanelClass()
53
 
    {
54
 
        return BasicMediaInfoPanel.class;
55
 
    }
56
 
 
57
 
    public Class getVerboseMediaPanelClass()
58
 
    {
59
 
        return BasicMediaInfoPanel.class;
60
 
    }
61
 
}