< prev index next >
modules/graphics/src/main/java/com/sun/glass/ui/Window.java
Print this page
@@ -156,14 +156,14 @@
* This is supported not on all platforms, the client should check if the feature is supported by using
* {@link com.sun.glass.ui.Application#supportsUnifiedWindows()}
*/
public static final int UNIFIED = 1 << 8;
- final static private class State {
- private static final int NORMAL = 1;
- private static final int MINIMIZED = 2;
- private static final int MAXIMIZED = 3;
+ final static public class State {
+ public static final int NORMAL = 1;
+ public static final int MINIMIZED = 2;
+ public static final int MAXIMIZED = 3;
}
/**
* Available window levels.
*
@@ -1239,10 +1239,14 @@
protected void notifyMoveToAnotherScreen(Screen newScreen) {
setScreen(newScreen);
}
+ protected void setState(int state) {
+ this.state = state;
+ }
+
/**
* type values:
* - WindowEvent.RESIZE
* - WindowEvent.MINIMIZE
* - WindowEvent.MAXIMIZE
@@ -1302,11 +1306,11 @@
}
// *****************************************************
// window event handlers
// *****************************************************
- private void handleWindowEvent(long time, int type) {
+ protected void handleWindowEvent(long time, int type) {
if (this.eventHandler != null) {
this.eventHandler.handleWindowEvent(this, time, type);
}
}
< prev index next >