Package org.jgrapes.webconsole.base
Class ConletBaseModel
java.lang.Object
org.jgrapes.webconsole.base.ConletBaseModel
- Direct Known Subclasses:
HelloWorldConlet.HelloWorldModel
,LoginConlet.AccountModel
,LoginConlet.AccountModel
,MarkdownDisplayConlet.MarkdownDisplayModel
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 Summary
-
Constructor Summary
ConstructorDescriptionConletBaseModel
(String conletId) Creates a new model with the given type and id. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Two objects are equal if they have equal web console component ids.Returns the web console component id.int
hashCode()
Hash code.
-
Field Details
-
conletId
-
-
Constructor Details
-
ConletBaseModel
Creates a new model with the given type and id.- Parameters:
conletId
- the web console component id
-
-
Method Details
-
getConletId
Returns the web console component id.- Returns:
- the web console component id
-
hashCode
Hash code. -
equals
Two objects are equal if they have equal web console component ids.
-