ItEr29S08CUCreacionProxectoPlanificacionItEr28S09: Implemented getTooltipText methods in ganttzk entities
This commit is contained in:
parent
f9911b13fd
commit
12e3412e16
5 changed files with 40 additions and 5 deletions
|
|
@ -371,4 +371,8 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
return isTopLevel;
|
||||
}
|
||||
|
||||
public String getTooltipText() {
|
||||
return task.getTooltipText();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
package org.zkoss.ganttz.data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
|
|
@ -39,19 +40,29 @@ public class DefaultFundamentalProperties implements ITaskFundamentalProperties
|
|||
|
||||
private Date advanceEndDate;
|
||||
|
||||
private BigDecimal hoursAdvancePercentage;
|
||||
|
||||
private BigDecimal advancePercentage;
|
||||
|
||||
private String tooltipText;
|
||||
|
||||
public DefaultFundamentalProperties() {
|
||||
}
|
||||
|
||||
public DefaultFundamentalProperties(String name, Date beginDate,
|
||||
long lengthMilliseconds, String notes,
|
||||
Date hoursAdvancePercentage,
|
||||
Date advancePercentage) {
|
||||
Date hoursAdvanceEndDate,
|
||||
Date advanceEndDate,
|
||||
BigDecimal hoursAdvancePercentage, BigDecimal advancePercentage) {
|
||||
this.name = name;
|
||||
this.beginDate = beginDate;
|
||||
this.lengthMilliseconds = lengthMilliseconds;
|
||||
this.notes = notes;
|
||||
this.hoursAdvanceEndDate = hoursAdvancePercentage;
|
||||
this.advanceEndDate = advancePercentage;
|
||||
this.hoursAdvanceEndDate = hoursAdvanceEndDate;
|
||||
this.advanceEndDate = advanceEndDate;
|
||||
this.hoursAdvancePercentage = hoursAdvancePercentage;
|
||||
this.advancePercentage = advancePercentage;
|
||||
this.tooltipText = "Default tooltip";
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
|
@ -99,5 +110,19 @@ public class DefaultFundamentalProperties implements ITaskFundamentalProperties
|
|||
public Date getAdvanceEndDate() {
|
||||
return advanceEndDate;
|
||||
}
|
||||
@Override
|
||||
public BigDecimal getHoursAdvancePercentage() {
|
||||
return hoursAdvancePercentage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal getAdvancePercentage() {
|
||||
return advancePercentage;
|
||||
|
||||
|
||||
@Override
|
||||
public String getTooltipText() {
|
||||
return tooltipText;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,4 +47,6 @@ public interface ITaskFundamentalProperties {
|
|||
|
||||
public Date getAdvanceEndDate();
|
||||
|
||||
public String getTooltipText();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,4 +168,8 @@ public abstract class Task implements ITaskFundamentalProperties {
|
|||
return fundamentalProperties.getAdvanceEndDate();
|
||||
}
|
||||
|
||||
public String getTooltipText() {
|
||||
return fundamentalProperties.getTooltipText();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,6 @@
|
|||
onMouseOut="zkTasklist.hideTooltip('tasktooltip${self.uuid}');">
|
||||
<div class="completion"></div>
|
||||
<div class="completion2"></div>
|
||||
<div id="tasktooltip${self.uuid}" class="task_tooltip">TooltipText: </div>
|
||||
<div id="tasktooltip${self.uuid}" class="task_tooltip">${self.tooltipText}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue