Package com.cmobilecom.af.model.behavior
Class VisitProperty<T extends PersistenceEntity>
- java.lang.Object
-
- com.cmobilecom.af.model.behavior.VisitTarget
-
- com.cmobilecom.af.model.behavior.VisitComponent
-
- com.cmobilecom.af.model.behavior.VisitProperty<T>
-
- Type Parameters:
T
- PersistenceEntity
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class VisitProperty<T extends PersistenceEntity> extends VisitComponent
VisitProperty is a VisitTarget that represents an EntityProperty in an EntityBackingBean or EntityListBackingBean(a certain row).- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.cmobilecom.af.model.behavior.VisitComponent
VisitComponent.Part
-
Nested classes/interfaces inherited from class com.cmobilecom.af.model.behavior.VisitTarget
VisitTarget.Action
-
-
Field Summary
-
Fields inherited from class com.cmobilecom.af.model.behavior.VisitComponent
component, part
-
Fields inherited from class com.cmobilecom.af.model.behavior.VisitTarget
action, BACKING_BEAN, ENTITY_LIST_ROW, FORM, THIS
-
-
Constructor Summary
Constructors Constructor Description VisitProperty(EntityProperty<T> entityProperty, T entity)
Constructor from entityProperty and its entity.VisitProperty(EntityProperty<T> entityProperty, T entity, VisitComponent.Part part)
Constructor from entityProperty and its entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o, boolean ignorePart)
Is this object equal to the specified object?T
getEntity()
Get the entity of the propertyint
hashCode()
boolean
isSubtreeTarget(VisitTarget visitTarget)
Check if the visitTarget is a subtree target of this visitTarget.void
setEntity(T entity)
Set the entity of the property-
Methods inherited from class com.cmobilecom.af.model.behavior.VisitComponent
equals, getComponent, getPart, setPart, toString
-
Methods inherited from class com.cmobilecom.af.model.behavior.VisitTarget
clone, getAction, getClientId, getTarget, sameClientId, setAction, setClientId, setTarget
-
-
-
-
Constructor Detail
-
VisitProperty
public VisitProperty(EntityProperty<T> entityProperty, T entity)
Constructor from entityProperty and its entity. Its part is Part.ALL.- Parameters:
entityProperty
- entity propertyentity
- the entity. There is only one entity for EntityBackingBean. It is a row entity for EntityListBackingBean
-
VisitProperty
public VisitProperty(EntityProperty<T> entityProperty, T entity, VisitComponent.Part part)
Constructor from entityProperty and its entity.- Parameters:
entityProperty
- entity propertyentity
- the entity. There is only one entity for EntityBackingBean. It is a row entity for EntityListBackingBeanpart
- the part of the EntityProperty
-
-
Method Detail
-
getEntity
public T getEntity()
Get the entity of the property- Returns:
- entity
-
setEntity
public void setEntity(T entity)
Set the entity of the property- Parameters:
entity
- the entity to set
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classVisitComponent
-
equals
public boolean equals(java.lang.Object o, boolean ignorePart)
Description copied from class:VisitComponent
Is this object equal to the specified object?- Overrides:
equals
in classVisitComponent
- Parameters:
o
- the object to compare withignorePart
- whether to ignore part for comparison- Returns:
- true if they are equal, false otherwise
- See Also:
VisitComponent.getPart()
-
isSubtreeTarget
public boolean isSubtreeTarget(VisitTarget visitTarget)
Description copied from class:VisitTarget
Check if the visitTarget is a subtree target of this visitTarget.- Overrides:
isSubtreeTarget
in classVisitComponent
- Parameters:
visitTarget
- subtree target to check- Returns:
- true if it is a subtree(descendant) target
-
-