use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class RemoveOperation method remove.
public <E extends IEntity> E remove(E entity) {
collectDescendantTree(entity);
splitAdjacencyGraph();
IEntity parent = entity.wGetParent();
if (!EntityUtils.isNull(parent))
parent.wRemove(entity);
return entity;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class ReflectionServer method insertAround.
// TODO String.. sourceIds
public IEntity insertAround(IEntity targetEntity, IEntity sourceEntity) {
// add as arguments
IEntity parentEntity = targetEntity.wGetParent();
int index = parentEntity.wIndexOf(targetEntity);
parentEntity.wSet(index, sourceEntity);
return sourceEntity;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class ReflectionServer method insertBefore.
// TODO String.. sourceIds
public IEntity insertBefore(IEntity targetEntity, IEntity sourceEntity) {
// add as arguments
IEntity parentEntity = targetEntity.wGetParent();
int index = parentEntity.wIndexOf(targetEntity);
parentEntity.wAdd(index, sourceEntity);
return sourceEntity;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class ReflectionServer method insertAfter.
// TODO String.. sourceIds
public IEntity insertAfter(IEntity targetEntity, IEntity sourceEntity) {
// add as arguments
IEntity parentEntity = targetEntity.wGetParent();
int index = parentEntity.wIndexOf(targetEntity);
parentEntity.wAdd(index + 1, sourceEntity);
return sourceEntity;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class AttributeRowPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Attribute entity = getModelEntity();
List<IEntity> children = new ArrayList<IEntity>(2);
children.add(entity.getName());
children.add(entity.getValue());
return children;
}
Aggregations