122 |
|
|
123 |
Set decorators; |
Set decorators; |
124 |
|
|
125 |
public class Win extends AbstractShower implements ViewContext { |
public class Win extends AbstractShower implements ViewContext, Binder { |
126 |
public Cell cursor; |
public Cell cursor; |
127 |
public int textCursor = -1; |
public int textCursor = -1; |
128 |
public int[] dimsIndices = new int[4]; |
public int[] dimsIndices = new int[4]; |
222 |
if(viewIndex > viewList.length) viewIndex = 0; |
if(viewIndex > viewList.length) viewIndex = 0; |
223 |
return viewList[viewIndex]; |
return viewList[viewIndex]; |
224 |
} |
} |
225 |
|
|
226 |
|
public void keystroke(String s) { binder.keystroke(s, this); } |
227 |
|
public void mouse(MouseEvent ev) {} |
228 |
|
public void timeout(Object o) {} |
229 |
|
public void windowClosed() { binder.windowClosed(this); } |
230 |
|
|
231 |
Win(ColorScheme colors) { |
Win(ColorScheme colors) { |
232 |
for(int i=0; i<dimsIndices.length; i++) |
for(int i=0; i<dimsIndices.length; i++) |
237 |
bg = colors.getBg(); |
bg = colors.getBg(); |
238 |
|
|
239 |
AbstractUpdateManager.addWindow(new Screen( |
AbstractUpdateManager.addWindow(new Screen( |
240 |
gfxapi.createWindow(this), |
gfxapi.createWindow(), |
241 |
binder, |
this, |
242 |
this |
this |
243 |
)); |
)); |
244 |
this.screen.window.setLocation(0, 0, 300, 300); |
this.screen.window.setLocation(0, 0, 300, 300); |