...
Resource | Description |
---|---|
Activator.java | Bundle activator |
CustomElement.java | Interface representing the custom element |
CustomElementController.java | Controller of the element component |
CustomElementFBO.java | Form backing object of the element component |
CustomElementImpl.java | Component and element implementation (business object) |
editCustomElement.jspf | JSP that renders the element in the Edit environment |
messages_en_US.properties | US English language file |
messages_nl_NL.properties | Dutch language file |
showCustomElement.xml | Descriptor of the JSP rendering the element on the Website environment |
showCustomElement.jspf | JSP rendering the element on the Website environment |
smallCustomElementIcon.gif | Small icon associated with the element |
largeCustomElementIcon.gif | Small icon associated with the element |
This section part explains how to enhance this component with an additional field called "Author". To add this field to the Hello World element component, the following steps must be performed:
- Add the property to the business object (
CustomElementImpl.java
). - Add the property to the form backing object (
CustomElementFBO.java
). - Add a label to the language files to translate “Author” in the supported languages.
- Add the field to the edit JSP (
editCustomElement.jspf
). - Add the field to the show JSP (
showCustomElement.jspf
).
Throughout this section topic the HelloWorld element will be used as an example.
...
Resource | Description |
---|---|
Activator.java | The bundle activator |
CustomPanelController.java | The controller of the whole panel |
CustomPanel.java | The form backing object of the whole panel |
CustomTabController.java | The controller of the HelloWorld tab contained by the panel |
CustomTabFBO.java | The form backing object of the HelloWorld tab contained by the panel |
customTab.jspf | The JSP that renders the HelloWorld tab |
messages_en_US.properties | The US English language file |
messages_nl_NL.properties | The Dutch language file |
In this section we explain This part explains how to enhance this component with an additional field named "Author". To add this field to the HelloWorld panel component, perform the following steps:
...
Resource | Description |
---|---|
Activator.java | Bundle activator |
CustomMediaItemController.java | Controller of the metadata part of the custom media item |
CustomMediaItemVersion.java | Interface representing the custom media item version |
| Form backing object for the custom metadata part of the custom media item version |
| Implementation of the custom media item version |
| Descriptor of the JSP that renders the custom metadata part of the custom media item |
| JSP that renders the custom metadata part of the custom media item |
messages_en_US.properties | US English language file |
messages_nl_NL.properties | Dutch language file |
| Icon associated with the media item. Used in the menu and Media Repository search results. |
In this section we explain This part explains how to enhance this component with an additional metadata field named "Author". To add this field to the custom metadata part of the custom Media item component, perform the following steps:
...
Code Block | ||
---|---|---|
| ||
private String myAuthor; public String getAuthor() { return myAuthor; } public void setAuthor(String author) { myAuthor = author; } |
Language Label
See section Adding a Language Label for a complete description of adding language labels. The following snippet should be added to each language file:
...