ItEr47S11CUVisualizacionResponsabilidadesTRaballoNaPlanificacionItEr46S12: Exposing can be explicitly resized property from TaskElements.
This commit is contained in:
parent
6887270711
commit
4cd35c0957
8 changed files with 36 additions and 0 deletions
|
|
@ -167,4 +167,9 @@ public class DefaultFundamentalProperties implements ITaskFundamentalProperties
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,4 +78,6 @@ public interface ITaskFundamentalProperties {
|
|||
|
||||
public boolean isSubcontracted();
|
||||
|
||||
public boolean canBeExplicitlyResized();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -310,4 +310,8 @@ public abstract class Task implements ITaskFundamentalProperties {
|
|||
return fundamentalProperties.isSubcontracted();
|
||||
}
|
||||
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return fundamentalProperties.canBeExplicitlyResized();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -483,4 +483,9 @@ public class Task extends TaskElement {
|
|||
return calculatedValue != CalculatedValue.END_DATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return canBeResized() && !isSubcontracted();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,6 +239,11 @@ public abstract class TaskElement extends BaseEntity {
|
|||
|
||||
protected abstract boolean canBeResized();
|
||||
|
||||
/**
|
||||
* @return if this task can be resized by an explicit action
|
||||
*/
|
||||
public abstract boolean canBeExplicitlyResized();
|
||||
|
||||
public LocalDate getDeadline() {
|
||||
return deadline;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,4 +142,9 @@ public class TaskGroup extends TaskElement {
|
|||
protected boolean canBeResized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,4 +119,9 @@ public class TaskMilestone extends TaskElement {
|
|||
protected boolean canBeResized() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -542,6 +542,11 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
reattachAllResourcesForTask();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return taskElement.canBeExplicitlyResized();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue