001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: /**
018: * @author Dmitry A. Durnev
019: * @version $Revision$
020: */package org.apache.harmony.awt.wtk;
021:
022: /**
023: * This class describes cross-platform NativeWindow creation params
024: * See also WindowFactory.createWindow
025: */
026: public class CreationParams {
027: /**
028: * Initial state is maximized verticaly
029: */
030: public final long MAXIMIZED_VERT = 1;
031: /**
032: * Initial state is maximized horizontaly
033: */
034: public final long MAXIMIZED_HORIZ = 2;
035: /**
036: * Initial state is maximized both
037: * horizontaly and verticaly
038: */
039: public final long MAXIMIZED = 3;
040:
041: /**
042: * The top-level window that has all possible decorations,
043: * has no owner and is displayed in taskbar
044: */
045: public final static int DECOR_TYPE_FRAME = 1;
046: /**
047: * The dialog window
048: */
049: public final static int DECOR_TYPE_DIALOG = 2;
050: /**
051: * The transient undecorated pop-up window
052: */
053: public final static int DECOR_TYPE_POPUP = 3;
054: /**
055: * The undecoraded pop-up window
056: */
057: public final static int DECOR_TYPE_UNDECOR = 4;
058: /**
059: * Non-MDI child window
060: */
061: public final static int DECOR_TYPE_NONE = 0;
062:
063: /**
064: * Initial x.
065: */
066: public int x = 0;
067: /**
068: * Initial y.
069: */
070: public int y = 0;
071: /**
072: * Initial width.
073: */
074: public int w = 1;
075: /**
076: * Initial height.
077: */
078: public int h = 1;
079: /**
080: * The decoration type of the top-level window. The possible values are:
081: * DECOR_TYPE_FRAME, DECOR_TYPE_DIALOG, DECOR_TYPE_POPUP and DECOR_TYPE_UNDECOR
082: */
083: public int decorType = DECOR_TYPE_NONE;
084: /**
085: * Window is child of parent, otherwise it's
086: * toplevel(child of desktop) window owned by parent.
087: */
088: public boolean child = false;
089: /**
090: * Window is resizable
091: */
092: public boolean resizable = true;
093: /**
094: * The window has no decorations
095: */
096: public boolean undecorated = false;
097: /**
098: * Initial visibility state.
099: */
100: public boolean visible = false;
101: /**
102: * Window is ALWAYS topmost in Z order.
103: */
104: public boolean topmost = false;
105: /**
106: * Window is disabled.
107: */
108: public boolean disabled = false;
109: /**
110: * Window initially iconified.
111: */
112: public boolean iconified = false;
113: /**
114: * Bitwise OR of MAXIMIZED_* constants.
115: * Means if window is initially maximized.
116: */
117: public int maximizedState = 0;
118: /**
119: * Tells that window position should be determined by native windowing system
120: */
121: public boolean locationByPlatform = false;
122: /**
123: * Id of parent or owner window, see child field
124: * For non-child window without owner equals 0.
125: */
126: public long parentId = 0;
127: /**
128: * Name wich is displayed on titlebar, taskbar and visible
129: * for system requests.
130: */
131: public String name = null;
132: }
|