public class WindowBase
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static WindowNativeSupport |
nativeService |
コンストラクタと説明 |
---|
WindowBase()
親ウィンドウ用のコンストラクタ
|
WindowBase(org.eclipse.swt.widgets.MenuItem menuItem)
子ウィンドウ用のコンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addWindowListener(WindowListener listener) |
protected void |
createContents(org.eclipse.swt.widgets.Display display,
int style,
boolean menuCascade)
shellを作成。
|
protected void |
createContents(org.eclipse.swt.widgets.Shell shell,
int style,
boolean menuCascade)
shellを作成。
|
protected void |
createContents(WindowBase parent,
int style,
boolean menuCascade)
shellを作成。
|
protected void |
createMenubar() |
static java.util.Set<WindowBase> |
getActivatedWindows() |
org.eclipse.swt.widgets.Shell |
getActualParent() |
protected org.eclipse.swt.graphics.Point |
getDefaultSize()
ウィンドウのデフォルトサイズを取得
|
org.eclipse.swt.widgets.Menu |
getMenubar() |
org.eclipse.swt.widgets.MenuItem |
getMenuItem() |
org.eclipse.swt.widgets.Menu |
getPopupMenu() |
org.eclipse.swt.graphics.Point |
getRestoreSize() |
org.eclipse.swt.widgets.Shell |
getShell() |
boolean |
getVisible() |
WindowConfigBean |
getWindowConfig() |
java.lang.String |
getWindowId()
ウィンドウ識別ID(デフォルト実装はクラス名フルパス)
|
void |
hideWindow() |
static boolean |
isCommonTopMostEnabled() |
boolean |
isNoMenubar() |
protected boolean |
isWindowInitialized() |
void |
moveIntoDisplay()
画面からはみ出している場合画面内に戻す
子ウィンドウがある場合は子も戻す
|
protected boolean |
moveWithDrag()
ウィンドウがドラックで動かすことができるか?
|
void |
open()
ウィンドウを表示するのに必要なことを全て行ってから表示する。
|
protected void |
registerEvents()
ウィンドウの右クリックメニューの登録
これを呼び出した時点でウィンドウに載っているすべてのオブジェクトに右クリックメニューを設定する
|
void |
removeWindowListener(WindowListener listener) |
void |
restore()
状態を復元。
|
void |
save()
状態を保存
|
void |
setBehindTo(WindowBase behindTo) |
static void |
setDataToAllChild(org.eclipse.swt.widgets.Control c,
java.lang.String key,
java.lang.Object data) |
void |
setVisible(boolean visible) |
protected void |
setWindowInitialized(boolean windowInitialized) |
void |
shellDeiconified()
parent is un-minimized
|
void |
shellIconified()
parent is minimized
|
protected boolean |
shouldSaveWindowSize()
ウィンドウサイズを保存・リストアするべきか?
|
protected void |
showTitlebarChanged(boolean showTitlebar) |
public static final WindowNativeSupport nativeService
public WindowBase()
public WindowBase(org.eclipse.swt.widgets.MenuItem menuItem)
menuItem
- public static java.util.Set<WindowBase> getActivatedWindows()
public static boolean isCommonTopMostEnabled()
public void addWindowListener(WindowListener listener)
public void removeWindowListener(WindowListener listener)
public static void setDataToAllChild(org.eclipse.swt.widgets.Control c, java.lang.String key, java.lang.Object data)
protected void createContents(org.eclipse.swt.widgets.Display display, int style, boolean menuCascade)
display
- shellの引数style
- shellの引数protected void createContents(org.eclipse.swt.widgets.Shell shell, int style, boolean menuCascade)
display
- shellの引数style
- shellの引数protected void createContents(WindowBase parent, int style, boolean menuCascade)
display
- shellの引数style
- shellの引数protected void registerEvents()
protected void createMenubar()
public void hideWindow()
protected void showTitlebarChanged(boolean showTitlebar)
newValue
- public void setBehindTo(WindowBase behindTo)
public void shellDeiconified()
public void shellIconified()
public org.eclipse.swt.graphics.Point getRestoreSize()
public void restore()
public void open()
public void setVisible(boolean visible)
public boolean getVisible()
public org.eclipse.swt.widgets.Shell getActualParent()
public org.eclipse.swt.widgets.Shell getShell()
public org.eclipse.swt.widgets.Menu getMenubar()
public org.eclipse.swt.widgets.Menu getPopupMenu()
public org.eclipse.swt.widgets.MenuItem getMenuItem()
public void save()
public void moveIntoDisplay()
public WindowConfigBean getWindowConfig()
public java.lang.String getWindowId()
protected boolean shouldSaveWindowSize()
protected boolean moveWithDrag()
protected org.eclipse.swt.graphics.Point getDefaultSize()
protected boolean isWindowInitialized()
protected void setWindowInitialized(boolean windowInitialized)
windowInitialized
- セットする windowInitializedpublic boolean isNoMenubar()