cvj2.app.gui.dialogs
クラス InputAndMessageDialog

java.lang.Object
  上位を拡張 org.eclipse.jface.window.Window
      上位を拡張 org.eclipse.jface.dialogs.Dialog
          上位を拡張 cvj2.app.gui.dialogs.InputAndMessageDialog
すべての実装されたインタフェース:
IShellProvider
直系の既知のサブクラス:
FileRenameDialog

public class InputAndMessageDialog
extends Dialog

メッセージ付き入力ダイアログ。
InputDialog だと、初期表示時のテキスト選択状態制御ができなかったのでこの画面を作成した。


入れ子のクラスの概要
 
クラス org.eclipse.jface.window.Window から継承された入れ子のクラス/インタフェース
Window.IExceptionHandler
 
フィールドの概要
 
クラス org.eclipse.jface.dialogs.Dialog から継承されたフィールド
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
クラス org.eclipse.jface.window.Window から継承されたフィールド
CANCEL, OK
 
コンストラクタの概要
InputAndMessageDialog(Shell parentShell)
          コンストラクタ
 
メソッドの概要
protected  void createButtonsForButtonBar(Composite parent)
          Create contents of the button bar.
protected  Control createDialogArea(Composite parent)
          Create contents of the dialog.
protected  Point getInitialSize()
          Return the initial size of the dialog.
 java.lang.String getInputString()
          入力されたファイル名を取得する
protected  void okPressed()
          OKボタンが押された
 void setData(java.lang.String title, java.lang.String input, int selStart, int selEnd, java.lang.String message)
          表示するデータの設定
 
クラス org.eclipse.jface.dialogs.Dialog から継承されたメソッド
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
クラス org.eclipse.jface.window.Window から継承されたメソッド
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

InputAndMessageDialog

public InputAndMessageDialog(Shell parentShell)
コンストラクタ

メソッドの詳細

setData

public void setData(java.lang.String title,
                    java.lang.String input,
                    int selStart,
                    int selEnd,
                    java.lang.String message)
表示するデータの設定

パラメータ:
input - 入力初期値
selStart - input の選択開始位置
selEnd - input の選択終了位置 + 1

okPressed

protected void okPressed()
OKボタンが押された

オーバーライド:
クラス Dialog 内の okPressed

getInputString

public java.lang.String getInputString()
入力されたファイル名を取得する


createDialogArea

protected Control createDialogArea(Composite parent)
Create contents of the dialog.

オーバーライド:
クラス Dialog 内の createDialogArea
パラメータ:
parent -

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)
Create contents of the button bar.

オーバーライド:
クラス Dialog 内の createButtonsForButtonBar
パラメータ:
parent -

getInitialSize

protected Point getInitialSize()
Return the initial size of the dialog.

オーバーライド:
クラス Dialog 内の getInitialSize