refactoring: Rename presentation to presentation model (#2291)

* Rename presentation to presentation-model

* Rename image

* Rename UML diagram

* Rename presentation to presentation-model

* Rename package to presentationmodel

* Rename module reference in pom.xml
This commit is contained in:
Sudarsan Balaji authored and GitHub committed 2022-11-08 20:58:24 +02:00
1 parent 4388a4ac92
commit 1d5a0b07c1
16 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@
<module>model-view-viewmodel</module> <module>model-view-viewmodel</module>
<module>composite-entity</module> <module>composite-entity</module>
<module>table-module</module> <module>table-module</module>
<module>presentation</module> <module>presentation-model</module>
<module>lockable-object</module> <module>lockable-object</module>
<module>fanout-fanin</module> <module>fanout-fanin</module>
<module>domain-model</module> <module>domain-model</module>
@@ -1,5 +1,5 @@
--- ---
title: Presentation title: Presentation Model
category: Behavioral category: Behavioral
language: en language: en
tags: tags:
@@ -173,7 +173,7 @@ We can run class `App` to start this demo. the checkbox is the album classical;
## Class diagram ## Class diagram
![](./etc/presentation.urm.png "presentation model") ![](./etc/presentation-model.urm.png "presentation model")
## Applicability ## Applicability
Use the Presentation Model Pattern when Use the Presentation Model Pattern when
@@ -1,5 +1,5 @@
@startuml @startuml
package com.iluwatar.presentation { package com.iluwatar.presentationmodel {
class Album { class Album {
~ artist : String ~ artist : String
~ composer : String ~ composer : String
File renamed without changes.
@@ -52,7 +52,7 @@
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>
<mainClass>com.iluwatar.presentation.App</mainClass> <mainClass>com.iluwatar.presentationmodel.App</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import java.awt.TextField; import java.awt.TextField;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package com.iluwatar.presentation; package com.iluwatar.presentationmodel;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;