ItEr16S09RFComportamentoGraficoPlanificadorItEr15S12: Improved order element page styles for name input and popup

* The name input width is calculated based on treeitem depth
   * Popup has been resized an repositioned
This commit is contained in:
Lorenzo Tilve 2009-07-10 08:21:33 +02:00 committed by Javier Moran Rua
parent 3406d2b24d
commit ffda94096a
5 changed files with 24 additions and 3 deletions

View file

@ -219,7 +219,8 @@ public class OrderElementController extends GenericForwardComposer {
Util.reloadBindings(popup);
popup.open(popup.getParent(), "start-after");
// Review this positioning parameters (popup.getParent(), "start-after");
popup.open(150, 150);
reloadSelectedCriterionTypes();
}

View file

@ -210,7 +210,11 @@ public class OrderElementTreeController extends GenericForwardComposer {
}
// Construct treecells
int[] path = getOrderElementTreeModel().getPath(t);
String cssClass = "depth_"+path.length;
Treecell cellForName = new Treecell(pathAsString(path));
cellForName.setSclass(cssClass);
// It would be needed to expand the width for the numbers
// to make it ready for 2 and 3 digit numbers
cellForName.appendChild(Util.bind(new Textbox(),
new Util.Getter<String>() {

View file

@ -60,3 +60,18 @@ table {
margin:20px;
font-size: 12px;
}
/* Styles for order element tree */
.orderTree .depth_1 input {
width: 450px !important;
}
.orderTree .depth_2 input {
width: 420px !important;
}
.orderTree .depth_3 input {
width: 390px !important;
}
.orderTree .depth_4 input {
width: 360px !important;
}

View file

@ -1,4 +1,4 @@
<popup id="${arg.top_id}">
<popup id="${arg.top_id}" width="400px" height="300px" left="100px" top="100px">
<vbox>

View file

@ -19,7 +19,8 @@
<tree id="tree" width="900px" multiple="true" droppable="true"
onDrop="orderElementTreeController.move(self, event.dragged)"
model="@{orderElementTreeController.orderElementTreeModel}"
treeitemRenderer="@{orderElementTreeController.renderer}" pageSize="5">
treeitemRenderer="@{orderElementTreeController.renderer}" pageSize="5"
sclass="orderTree">
<treecols sizable="true">
<treecol label="Name and description" />
<treecol label="Estimated init" />