ItEr37S16RFMaquetacionDesenhoAplicacionItEr36S18: Sticky button for critical path

This commit is contained in:
Lorenzo Tilve 2009-12-08 03:36:08 +01:00 committed by Javier Moran Rua
parent 27c6282ce1
commit 59160e113c
2 changed files with 12 additions and 0 deletions

View file

@ -330,13 +330,16 @@ public class Planner extends HtmlMacroComponent {
};
public void showCriticalPath() {
Button showCriticalPathButton = (Button) getFellow("showCriticalPath");
if (disabilityConfiguration.isCriticalPathEnabled()) {
if (isShowingCriticalPath) {
context.hideCriticalPath();
diagramGraph.removePostGraphChangeListener(showCriticalPathOnChange);
showCriticalPathButton.setSclass("planner-command");
} else {
context.showCriticalPath();
diagramGraph.addPostGraphChangeListener(showCriticalPathOnChange);
showCriticalPathButton.setSclass("planner-command clicked");
}
isShowingCriticalPath = !isShowingCriticalPath;
}

View file

@ -186,6 +186,15 @@ button.z-button {
padding: 2px 1px 1px 2px;
}
.planner-command.clicked .z-button-cm {
background-color: #A1D586; /* green2 (active background)*/
border-right: 1px solid #439e32;
border-bottom: 1px solid #439e32;
border-top: 2px solid #3f5917;
border-left: 2px solid #3f5917;
padding: 2px 1px 1px 2px;
}
.sub_menu .z-button-cm {
background-color: transparent !important;