Class ConletBaseModel

java.lang.Object
org.jgrapes.webconsole.base.ConletBaseModel
Direct Known Subclasses:
HelloWorldConlet.HelloWorldModel, LoginConlet.AccountModel, LoginConlet.AccountModel, MarkdownDisplayConlet.MarkdownDisplayModel

public class ConletBaseModel extends Object
Defines a web console component base model following the JavaBean conventions.

Conlet models should follow these conventions because many template engines rely on them. Besides, following these conventions often simplifies serialization to portable formats.

This base class defines conletId as only property. Additionally, it overrides hashCode() and equals(Object) using the conletId as single criterion.

  • Field Details

  • Constructor Details

  • Method Details

    • getConletId

      public String getConletId()
      Returns the web console component id.
      Returns:
      the web console component id
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • equals

      public boolean equals(Object obj)
      Two objects are equal if they have equal web console component ids.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object
      Returns:
      the result