summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-11-27 21:02:45 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-11-27 21:02:45 +0100
commitd5cf6c3d34308cee7862a0b3f2c01a3fc7338dc9 (patch)
treedf69add153530715c53d4dc5488d2457ce4914b9 /pdf-over-gui
parent302dee926ad9a38f45af54a887689ebf1fad1cdd (diff)
downloadmocca-d5cf6c3d34308cee7862a0b3f2c01a3fc7338dc9.tar.gz
mocca-d5cf6c3d34308cee7862a0b3f2c01a3fc7338dc9.tar.bz2
mocca-d5cf6c3d34308cee7862a0b3f2c01a3fc7338dc9.zip
Disable state jumping during signing process
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
index 66680fc8..a4c84f91 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
@@ -134,7 +134,15 @@ public class SigningState extends State {
*/
@Override
public void updateMainWindowBehavior() {
- //no change of behavior necessary
+ MainWindowBehavior behavior = getStateMachine().getStatus()
+ .getBehavior();
+ behavior.reset();
+ behavior.setActive(Buttons.OPEN, true);
+ behavior.setActive(Buttons.POSITION, true);
+ behavior.setActive(Buttons.SIGN, true);
+ //behavior.setEnabled(Buttons.OPEN, true);
+ //behavior.setEnabled(Buttons.POSITION, true);
+ //behavior.setEnabled(Buttons.SIGN, true);
}
@Override