comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java @ 58:d018995fbee7

The 'old' items in the parameter panel have a button to step back to a previous state (NOTE: just the UI stuff is implemented now). flys-client/trunk@1517 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 18 Mar 2011 12:01:55 +0000
parents 246af33f621c
children f793d35bfb08
comparison
equal deleted inserted replaced
57:246af33f621c 58:d018995fbee7
79 79
80 fireStepForwardEvent(new StepForwardEvent(data)); 80 fireStepForwardEvent(new StepForwardEvent(data));
81 } 81 }
82 82
83 83
84 /**
85 * Creates the 'next' button to step forward to the next state.
86 *
87 * @return the 'next' button.
88 */
84 protected Canvas getNextButton() { 89 protected Canvas getNextButton() {
85 Img go = new Img(MSG.imageNext(), 80, 25); 90 Img go = new Img(MSG.imageNext(), 80, 25);
86 go.addClickHandler(this); 91 go.addClickHandler(this);
87 92
88 return go; 93 return go;
94 }
95
96
97 /**
98 * Creates the 'back' button to step back to a previous state.
99 *
100 * @param targetState The identifier of the target state.
101 *
102 * @return the 'back' button.
103 */
104 protected Canvas getBackButton(final String targetState) {
105 Img back = new Img(MSG.imageBack(), 16, 16);
106
107 back.addClickHandler(new ClickHandler() {
108 public void onClick(ClickEvent event) {
109 GWT.log("Step back to: " + targetState);
110 GWT.log("TODO: fire StepBack event!");
111 }
112 });
113
114 return back;
89 } 115 }
90 116
91 117
92 /** 118 /**
93 * This method needs to be implemented by concrete subclasses. It should 119 * This method needs to be implemented by concrete subclasses. It should

http://dive4elements.wald.intevation.org