IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable - Added css class to pending and in progress parent node
This commit is contained in:
parent
0321098119
commit
2c2743fcbf
|
@ -115,6 +115,7 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
|
|
||||||
private boolean expandTree = false;
|
private boolean expandTree = false;
|
||||||
private boolean allFinished = true;
|
private boolean allFinished = true;
|
||||||
|
private boolean allPending = true;
|
||||||
private Vbox centerBox = new Vbox();
|
private Vbox centerBox = new Vbox();
|
||||||
private Vbox centerBoxdown = new Vbox();
|
private Vbox centerBoxdown = new Vbox();
|
||||||
private Vbox westdown = new Vbox();
|
private Vbox westdown = new Vbox();
|
||||||
|
@ -196,6 +197,7 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
|
|
||||||
protected void addWfEntry(MWorkflow wfwizard) {
|
protected void addWfEntry(MWorkflow wfwizard) {
|
||||||
allFinished = true;
|
allFinished = true;
|
||||||
|
allPending = true;
|
||||||
Treechildren treeChildren = wfnodeTree.getTreechildren();
|
Treechildren treeChildren = wfnodeTree.getTreechildren();
|
||||||
Treeitem treeitemwf = new Treeitem();
|
Treeitem treeitemwf = new Treeitem();
|
||||||
treeChildren.appendChild(treeitemwf);
|
treeChildren.appendChild(treeitemwf);
|
||||||
|
@ -220,7 +222,7 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
treeitemwf.setOpen(true);
|
treeitemwf.setOpen(true);
|
||||||
addNodes(wfwizard, treeitemwf);
|
addNodes(wfwizard, treeitemwf);
|
||||||
|
|
||||||
if (showColors.isChecked())
|
if (showColors.isChecked() && (allFinished || !allPending))
|
||||||
wizardLabel.setZclass(allFinished ? "tree-wsetupwizard-finished-all" : "tree-wsetupwizard-open-tasks");
|
wizardLabel.setZclass(allFinished ? "tree-wsetupwizard-finished-all" : "tree-wsetupwizard-open-tasks");
|
||||||
|
|
||||||
treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID());
|
treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID());
|
||||||
|
@ -247,21 +249,27 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
if (MWizardProcess.WIZARDSTATUS_Finished.equals(status)){
|
if (MWizardProcess.WIZARDSTATUS_Finished.equals(status)){
|
||||||
nodeLabel.setZclass("tree-wsetupwizard-finished");
|
nodeLabel.setZclass("tree-wsetupwizard-finished");
|
||||||
allFinished = allFinished && true;
|
allFinished = allFinished && true;
|
||||||
|
allPending = allPending && false;
|
||||||
}else if (MWizardProcess.WIZARDSTATUS_Skipped.equals(status)) {
|
}else if (MWizardProcess.WIZARDSTATUS_Skipped.equals(status)) {
|
||||||
nodeLabel.setZclass("tree-wsetupwizard-skipped");
|
nodeLabel.setZclass("tree-wsetupwizard-skipped");
|
||||||
allFinished = allFinished && true;
|
allFinished = allFinished && true;
|
||||||
|
allPending = allPending && false;
|
||||||
}else if (MWizardProcess.WIZARDSTATUS_Delayed.equals(status)) {
|
}else if (MWizardProcess.WIZARDSTATUS_Delayed.equals(status)) {
|
||||||
nodeLabel.setZclass("tree-wsetupwizard-delayed");
|
nodeLabel.setZclass("tree-wsetupwizard-delayed");
|
||||||
allFinished = allFinished && false;
|
allFinished = allFinished && false;
|
||||||
|
allPending = allPending && false;
|
||||||
}else if (MWizardProcess.WIZARDSTATUS_In_Progress.equals(status)) {
|
}else if (MWizardProcess.WIZARDSTATUS_In_Progress.equals(status)) {
|
||||||
nodeLabel.setZclass("tree-wsetupwizard-in-progress");
|
nodeLabel.setZclass("tree-wsetupwizard-in-progress");
|
||||||
allFinished = allFinished && false;
|
allFinished = allFinished && false;
|
||||||
|
allPending = allPending && false;
|
||||||
}else if (MWizardProcess.WIZARDSTATUS_Pending.equals(status)) {
|
}else if (MWizardProcess.WIZARDSTATUS_Pending.equals(status)) {
|
||||||
nodeLabel.setZclass("tree-wsetupwizard-pending");
|
nodeLabel.setZclass("tree-wsetupwizard-pending");
|
||||||
allFinished = allFinished && false;
|
allFinished = allFinished && false;
|
||||||
|
allPending = allPending && true;
|
||||||
}else {
|
}else {
|
||||||
nodeLabel.setZclass("tree-setupwizard-nostatus");
|
nodeLabel.setZclass("tree-setupwizard-nostatus");
|
||||||
allFinished = false;
|
allFinished = false;
|
||||||
|
allPending = allPending && true;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
nodeLabel.setStyle("margin-left:20px;");
|
nodeLabel.setStyle("margin-left:20px;");
|
||||||
|
@ -475,6 +483,7 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
} else if (e.getTarget() == bOK) {
|
} else if (e.getTarget() == bOK) {
|
||||||
int userid = 0;
|
int userid = 0;
|
||||||
allFinished=true;
|
allFinished=true;
|
||||||
|
allPending=true;
|
||||||
if (!userField.isNullOrEmpty())
|
if (!userField.isNullOrEmpty())
|
||||||
userid = (Integer)userField.getValue();
|
userid = (Integer)userField.getValue();
|
||||||
if (save(notesField.getText(), (String) statusField.getValue(), userid))
|
if (save(notesField.getText(), (String) statusField.getValue(), userid))
|
||||||
|
@ -495,7 +504,10 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
||||||
|
|
||||||
private void showColors() {
|
private void showColors() {
|
||||||
if (showColors.isChecked())
|
if (showColors.isChecked())
|
||||||
|
{
|
||||||
allFinished = true;
|
allFinished = true;
|
||||||
|
allPending = true;
|
||||||
|
}
|
||||||
repaintTree();
|
repaintTree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue