Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/supplemental/MediaRepresentationSection.java | ||
---|---|---|
22 | 22 |
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection; |
23 | 23 |
|
24 | 24 |
/** |
25 |
* <p>MediaRepresentationSection class.</p> |
|
26 |
* |
|
25 | 27 |
* @author n.hoffmann |
26 | 28 |
* @created Mar 24, 2010 |
27 | 29 |
* @version 1.0 |
... | ... | |
31 | 33 |
private static final Logger logger = Logger |
32 | 34 |
.getLogger(MediaRepresentationSection.class); |
33 | 35 |
|
36 |
/** |
|
37 |
* <p>Constructor for MediaRepresentationSection.</p> |
|
38 |
* |
|
39 |
* @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
40 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
41 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object. |
|
42 |
* @param style a int. |
|
43 |
*/ |
|
34 | 44 |
public MediaRepresentationSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, |
35 | 45 |
ICdmFormElement parentElement, int style) { |
36 | 46 |
super(cdmFormFactory, conversation, parentElement, "Media Representation", style); |
37 | 47 |
} |
38 | 48 |
|
49 |
/** {@inheritDoc} */ |
|
39 | 50 |
@Override |
40 | 51 |
public void addElement(MediaRepresentation element) { |
41 | 52 |
getEntity().addRepresentation(element); |
42 | 53 |
} |
43 | 54 |
|
55 |
/** {@inheritDoc} */ |
|
44 | 56 |
@Override |
45 | 57 |
public MediaRepresentation createNewElement() { |
46 | 58 |
return MediaRepresentation.NewInstance(); |
47 | 59 |
} |
48 | 60 |
|
61 |
/** {@inheritDoc} */ |
|
49 | 62 |
@Override |
50 | 63 |
public Collection<MediaRepresentation> getCollection( |
51 | 64 |
Media entity) { |
52 | 65 |
return getEntity().getRepresentations(); |
53 | 66 |
} |
54 | 67 |
|
68 |
/** {@inheritDoc} */ |
|
55 | 69 |
@Override |
56 | 70 |
public String getEmptyString() { |
57 | 71 |
return "No media representations yet."; |
58 | 72 |
} |
59 | 73 |
|
74 |
/** {@inheritDoc} */ |
|
60 | 75 |
@Override |
61 | 76 |
protected String getTooltipString() { |
62 | 77 |
return "Create a new media representation"; |
63 | 78 |
} |
64 | 79 |
|
80 |
/** {@inheritDoc} */ |
|
65 | 81 |
@Override |
66 | 82 |
public void removeElement(MediaRepresentation element) { |
67 | 83 |
getEntity().removeRepresentation(element); |
Also available in: Unified diff
performed javacscript:fix and worked on documentation