ItEr15S12RFComportamentoGraficoPlanificadorItEr14S13: Fixed styles of taskdetails tree structure.
This commit is contained in:
parent
36a8654bdd
commit
5d064e17a6
4 changed files with 57 additions and 33 deletions
|
|
@ -22,6 +22,7 @@ import org.zkoss.zul.SimpleTreeModel;
|
||||||
import org.zkoss.zul.SimpleTreeNode;
|
import org.zkoss.zul.SimpleTreeNode;
|
||||||
import org.zkoss.zul.Tree;
|
import org.zkoss.zul.Tree;
|
||||||
import org.zkoss.zul.TreeModel;
|
import org.zkoss.zul.TreeModel;
|
||||||
|
import org.zkoss.zul.Treecell;
|
||||||
import org.zkoss.zul.Treeitem;
|
import org.zkoss.zul.Treeitem;
|
||||||
import org.zkoss.zul.TreeitemRenderer;
|
import org.zkoss.zul.TreeitemRenderer;
|
||||||
|
|
||||||
|
|
@ -34,6 +35,7 @@ public class ListDetails extends HtmlMacroComponent {
|
||||||
item.setOpen(isOpened(taskBean));
|
item.setOpen(isOpened(taskBean));
|
||||||
final int[] path = tasksTreeModel.getPath(tasksTreeModel.getRoot(),
|
final int[] path = tasksTreeModel.getPath(tasksTreeModel.getRoot(),
|
||||||
node);
|
node);
|
||||||
|
String cssClass = "depth_"+path.length;
|
||||||
TaskDetail taskDetail = TaskDetail.create(taskBean,
|
TaskDetail taskDetail = TaskDetail.create(taskBean,
|
||||||
new TreeNavigator(tasksTreeModel, path));
|
new TreeNavigator(tasksTreeModel, path));
|
||||||
if (taskBean instanceof TaskContainerBean) {
|
if (taskBean instanceof TaskContainerBean) {
|
||||||
|
|
@ -42,6 +44,11 @@ public class ListDetails extends HtmlMacroComponent {
|
||||||
Component row = Executions.getCurrent().createComponents(
|
Component row = Executions.getCurrent().createComponents(
|
||||||
"~./ganttz/zul/taskdetail.zul", item, null);
|
"~./ganttz/zul/taskdetail.zul", item, null);
|
||||||
taskDetail.doAfterCompose(row);
|
taskDetail.doAfterCompose(row);
|
||||||
|
List<Object> rowChildren = row.getChildren();
|
||||||
|
List<Treecell> treeCells = Planner.findComponentsOfType(Treecell.class, rowChildren);
|
||||||
|
for(Treecell cell : treeCells){
|
||||||
|
cell.setSclass(cssClass);
|
||||||
|
}
|
||||||
detailsForBeans.put(taskBean, taskDetail);
|
detailsForBeans.put(taskBean, taskDetail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
<zk xmlns:n="http://www.zkoss.org/2005/zk/native">
|
<zk xmlns:n="http://www.zkoss.org/2005/zk/native">
|
||||||
<button label="${c:l('listdetails.add_task')}"
|
<button label="${c:l('listdetails.add_task')}"
|
||||||
onClick="self.getParent().addTask();" />
|
onClick="self.getParent().addTask();" />
|
||||||
<button label="Engadir Contedor"
|
<button label="Engadir Contedor"
|
||||||
onClick="self.getParent().addTaskContainer();" />
|
onClick="self.getParent().addTaskContainer();" />
|
||||||
<n:div id="listdetails_container">
|
<n:div id="listdetails_container">
|
||||||
<tree id="tasksTree">
|
<tree id="tasksTree">
|
||||||
<treecols sizable="false">
|
<treecols sizable="false">
|
||||||
<treecol label="Name" />
|
<treecol label="Name"/>
|
||||||
<treecol label="Start Date" />
|
<treecol label="Start"/>
|
||||||
<treecol label="End Date" />
|
<treecol label="End"/>
|
||||||
</treecols>
|
</treecols>
|
||||||
</tree>
|
</tree>
|
||||||
</n:div>
|
</n:div>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ MIN_RESOLUTION_X = 600; // Minimun horizontal autoresizable window
|
||||||
MIN_RESOLUTION_Y = 600; // Minimun vertical autoresizable window
|
MIN_RESOLUTION_Y = 600; // Minimun vertical autoresizable window
|
||||||
|
|
||||||
TASKDETAILS_WIDTH = 300; // Taskdetails column fixed width (300)
|
TASKDETAILS_WIDTH = 300; // Taskdetails column fixed width (300)
|
||||||
TASKDETAILS_HEIGHT = 300; // Design-relative reservated height for taskdetails (300)
|
TASKDETAILS_HEIGHT = 260; // Design-relative reservated height for taskdetails (300)
|
||||||
TIMETRACKER_OFFSET_TOP = 200 // Design-relative height above timetracker
|
TIMETRACKER_OFFSET_TOP = 200 // Design-relative height above timetracker
|
||||||
|
|
||||||
FOOTER_HEIGHT = 40; // Design-relative footer height
|
FOOTER_HEIGHT = 40; // Design-relative footer height
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ zkTasklist.SCROLLBAR_WIDTH = 15
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/****** Tasks and dependencies ******/
|
/* -------------- Listdetails -------------- */
|
||||||
|
|
||||||
|
/* External listdetails box */
|
||||||
.listdetails {
|
.listdetails {
|
||||||
width:280px; /* Ganntz.ListdetailsWidth */
|
width:280px; /* Ganntz.ListdetailsWidth */
|
||||||
float:left;
|
float:left;
|
||||||
|
|
@ -23,32 +25,60 @@ zkTasklist.SCROLLBAR_WIDTH = 15
|
||||||
margin-top:0px;
|
margin-top:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listdetails img {
|
#listdetails_container {
|
||||||
display:none;
|
float:left;
|
||||||
|
overflow:hidden;
|
||||||
|
height:300px;
|
||||||
|
position:relative;
|
||||||
|
top:20px;
|
||||||
|
overflow: hidden;
|
||||||
|
border-bottom: 1px solid #86A4BE;
|
||||||
|
border-right: 1px solid #86A4BE;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listdetails td {
|
/*.listdetails img {
|
||||||
padding-left:0px;
|
display:none;
|
||||||
|
} */
|
||||||
|
|
||||||
|
#listdetails_container td {
|
||||||
|
border-bottom:1px solid #86A4BE;
|
||||||
|
border-left:1px solid #86A4BE;
|
||||||
|
border:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#listdetails_container td {
|
||||||
|
padding:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listdetails input {
|
.listdetails input {
|
||||||
width: 80px;
|
width: 65px;
|
||||||
font-size:10px !important;
|
font-size:10px !important;
|
||||||
border-bottom:0px;
|
border-bottom:0px;
|
||||||
border-right:0px;
|
border-right:0px;
|
||||||
height:17px;
|
height:17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listdetails .z-datebox-inp {
|
#listdetails_container .z-datebox-inp,
|
||||||
|
#listdetails_container div.z-tree-col-cnt {
|
||||||
font-family:"Verdana,Tahoma,Arial,Helvetica,sans-serif";
|
font-family:"Verdana,Tahoma,Arial,Helvetica,sans-serif";
|
||||||
font-size:10px !important;
|
font-size:10px !important;
|
||||||
border-bottom:0px;
|
border-bottom:0px;
|
||||||
border-right:0px;
|
border-right:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.task_title {
|
.depth_1 .task_title {
|
||||||
width: 120px !important;
|
width: 121px !important;
|
||||||
}
|
}
|
||||||
|
.depth_2 .task_title {
|
||||||
|
width: 104px !important;
|
||||||
|
}
|
||||||
|
.depth_3 .task_title {
|
||||||
|
width: 85px;
|
||||||
|
}
|
||||||
|
.depth_4 .task_title {
|
||||||
|
width: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.taskdetail_grid table {
|
.taskdetail_grid table {
|
||||||
height:30px;
|
height:30px;
|
||||||
|
|
@ -56,6 +86,7 @@ zkTasklist.SCROLLBAR_WIDTH = 15
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#listtasks {
|
#listtasks {
|
||||||
position:relative;
|
position:relative;
|
||||||
width:600px;
|
width:600px;
|
||||||
|
|
@ -209,20 +240,6 @@ table {
|
||||||
border:0px;
|
border:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#listdetails_container {
|
|
||||||
float:left;
|
|
||||||
overflow:hidden;
|
|
||||||
height:300px;
|
|
||||||
position:relative;
|
|
||||||
top:50px;
|
|
||||||
overflow: hidden;
|
|
||||||
border-bottom: 1px solid #86A4BE;
|
|
||||||
border-right: 1px solid #86A4BE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#scroll_container {
|
#scroll_container {
|
||||||
margin-top:70px;
|
margin-top:70px;
|
||||||
/* border:solid green 1px; */
|
/* border:solid green 1px; */
|
||||||
|
|
@ -262,7 +279,7 @@ tr.z-vbox-sep {
|
||||||
|
|
||||||
#ganttpanel_scroller_x {
|
#ganttpanel_scroller_x {
|
||||||
top: 600px; /* Calculate initial settings */
|
top: 600px; /* Calculate initial settings */
|
||||||
left: 280px;
|
left: 290px;
|
||||||
width:635px;
|
width:635px;
|
||||||
height:15px;
|
height:15px;
|
||||||
}
|
}
|
||||||
|
|
@ -274,7 +291,7 @@ tr.z-vbox-sep {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ganttpanel_scroller_y {
|
#ganttpanel_scroller_y {
|
||||||
top: 230px; /* Calculate initial settings */
|
top: 200px; /* Calculate initial settings */
|
||||||
left: 920px;
|
left: 920px;
|
||||||
width:15px;
|
width:15px;
|
||||||
height:330px;
|
height:330px;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue