jp.sourceforge.gtibuilder.main
クラス MainWindow

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張java.awt.Window
              拡張java.awt.Frame
                  拡張javax.swing.JFrame
                      拡張jp.sourceforge.gtibuilder.main.MainWindow
すべての実装インタフェース:
Accessible, ActionListener, EventListener, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants, WindowListener

public class MainWindow
extends JFrame
implements ActionListener, WindowListener

メインウインドウです。

関連項目:
直列化された形式

入れ子クラスの概要
(パッケージプライベート)  class MainWindow.MemoryMonitor
           
 
クラス javax.swing.JFrame から継承した入れ子クラス
JFrame.AccessibleJFrame
 
クラス java.awt.Frame から継承した入れ子クラス
Frame.AccessibleAWTFrame
 
クラス java.awt.Window から継承した入れ子クラス
Window.AccessibleAWTWindow
 
クラス java.awt.Container から継承した入れ子クラス
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
private  JButton bCopy
           
private  JButton bCut
           
private  JButton bInfomation
           
private  JButton bNew
           
private  JButton bOpen
           
private  JButton bPaste
           
private  JButton bRedo
           
private  JButton bSave
           
private  JButton bSaveAs
           
private  JButton bUndo
           
private  boolean debug
           
private  JMenuItem[] editorMenu
           
private  JMenuItem mAddFile
           
private static MainWindow mainFrame
           
private  JMenuItem mClose
           
private  JMenuItem mCopy
           
private  JMenuItem mCut
           
private  JMenu mDebug
           
private  JMenuItem mDelete
           
private  JMenu mEdit
           
private  JMenuBar menuBar
           
private  JMenu mFile
           
private  JMenuItem mFilePreference
           
private  JMenu mHelp
           
private  JMenuItem mInfomation
           
private  JMenuItem mLicense
           
private  JMenuItem mNew
           
private  JMenuItem mOpen
           
private  JMenuItem mPaste
           
private  JMenuItem mPreference
           
private  JMenuItem mPrint
           
private  JMenu mProject
           
private  JMenuItem mProjectPreference
           
private  JMenuItem mQuit
           
private  JMenuItem mRedo
           
private  JMenuItem mRemoveFile
           
private  JMenuItem mRestart
           
private  JMenuItem mSave
           
private  JMenuItem mSaveAs
           
private  JMenu mTools
           
private  JMenuItem mUndo
           
private  JMenu mWindow
           
private  ProjectManager pm
           
private  JProgressBar sb
           
private  JPanel st
           
private  JLabel sta
           
private  JToolBar tEdit
           
private  JToolBar tFile
           
private  JToolBar tHelp
           
private  Vector threads
           
private  JPanel toolbar
           
 
クラス javax.swing.JFrame から継承したフィールド
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
クラス java.awt.Frame から継承したフィールド
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
クラス java.awt.Window から継承したフィールド
 
クラス java.awt.Container から継承したフィールド
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース javax.swing.WindowConstants から継承したフィールド
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
MainWindow()
          メインウインドウのインスタンスを作成します。
 
メソッドの概要
 void actionPerformed(ActionEvent e)
          イベントを受け取ります。
 void addBlockExitThread(Thread th)
          終了する前に完了しなければならないスレッドを追加します。
 void addEditorMenuItem(JMenuItem[] editorMenuItem)
          編集メニューにエディタ独自のメニューを追加します。
 void exit()
          GTI Builderを終了します。
static MainWindow getMainWindow()
          GTI Builderのメインウインンドを返します。
 JProgressBar getProgressBar()
          プログレスバーを返します。
 ProjectManager getProjectManager()
          GTI Builderのプロジェクトマネジャーを返します。
 void hideProgressBar()
          プログレスバーを隠します。
 void removeEditorMenuItem()
          追加したエディタの独自メニューを削除します。
 void restart()
          GTI Builderを再起動します。
 void setEditMenuEnabled(boolean b)
          編集メニューが使えるかを設定します。
 void setRedoMenu(String text, boolean enable, EditorComponent source)
           
 void setSaveMenuEnabled(boolean b)
          プロジェクトが存在するときにしか使えないメニューを使えるようにするか設定します。
 void setStatus(String status)
          ウインドウの下に表示されるステータスバーに表示する文字列を指定します。
 void setUndoMenu(String text, boolean enable, EditorComponent source)
           
private  void showLicense()
           
 void showProgressBar()
          プログレスバーを表示します。
 void startDebug()
          デバックを開始します。
 void updataLookAndFeel()
          LookAndFeelをアップデートします。
 void windowActivated(WindowEvent e)
          イベントを受け取ります。
 void windowClosed(WindowEvent e)
          イベントを受け取ります。
 void windowClosing(WindowEvent e)
          イベントを受け取ります。
 void windowDeactivated(WindowEvent e)
          イベントを受け取ります。
 void windowDeiconified(WindowEvent e)
          イベントを受け取ります。
 void windowIconified(WindowEvent e)
          イベントを受け取ります。
 void windowOpened(WindowEvent e)
          イベントを受け取ります。
 
クラス javax.swing.JFrame から継承したメソッド
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
クラス java.awt.Frame から継承したメソッド
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
クラス java.awt.Window から継承したメソッド
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース java.awt.MenuContainer から継承したメソッド
getFont, postEvent
 

フィールドの詳細

menuBar

private JMenuBar menuBar

pm

private ProjectManager pm

mFile

private JMenu mFile

mNew

private JMenuItem mNew

mOpen

private JMenuItem mOpen

mSave

private JMenuItem mSave

mSaveAs

private JMenuItem mSaveAs

mClose

private JMenuItem mClose

mPrint

private JMenuItem mPrint

mQuit

private JMenuItem mQuit

mEdit

private JMenu mEdit

mUndo

private JMenuItem mUndo

mRedo

private JMenuItem mRedo

mCut

private JMenuItem mCut

mCopy

private JMenuItem mCopy

mPaste

private JMenuItem mPaste

mDelete

private JMenuItem mDelete

mProject

private JMenu mProject

mProjectPreference

private JMenuItem mProjectPreference

mFilePreference

private JMenuItem mFilePreference

mAddFile

private JMenuItem mAddFile

mRemoveFile

private JMenuItem mRemoveFile

mTools

private JMenu mTools

mPreference

private JMenuItem mPreference

mWindow

private JMenu mWindow

mHelp

private JMenu mHelp

mInfomation

private JMenuItem mInfomation

mLicense

private JMenuItem mLicense

mDebug

private JMenu mDebug

mRestart

private JMenuItem mRestart

editorMenu

private JMenuItem[] editorMenu

toolbar

private JPanel toolbar

tFile

private JToolBar tFile

tEdit

private JToolBar tEdit

tHelp

private JToolBar tHelp

bNew

private JButton bNew

bOpen

private JButton bOpen

bSave

private JButton bSave

bSaveAs

private JButton bSaveAs

bUndo

private JButton bUndo

bRedo

private JButton bRedo

bCut

private JButton bCut

bCopy

private JButton bCopy

bPaste

private JButton bPaste

bInfomation

private JButton bInfomation

st

private JPanel st

sta

private JLabel sta

sb

private JProgressBar sb

mainFrame

private static MainWindow mainFrame

debug

private boolean debug

threads

private Vector threads
コンストラクタの詳細

MainWindow

public MainWindow()
メインウインドウのインスタンスを作成します。

メソッドの詳細

actionPerformed

public void actionPerformed(ActionEvent e)
イベントを受け取ります。

定義:
インタフェース ActionListener 内の actionPerformed
パラメータ:
e - ActionEvent

showLicense

private void showLicense()

windowOpened

public void windowOpened(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowOpened
パラメータ:
e - WindowEvent

windowClosing

public void windowClosing(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowClosing
パラメータ:
e - WindowEvent

windowClosed

public void windowClosed(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowClosed
パラメータ:
e - WindowEvent

windowIconified

public void windowIconified(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowIconified
パラメータ:
e - WindowEvent

windowDeiconified

public void windowDeiconified(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowDeiconified
パラメータ:
e - WindowEvent

windowActivated

public void windowActivated(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowActivated
パラメータ:
e - WindowEvent

windowDeactivated

public void windowDeactivated(WindowEvent e)
イベントを受け取ります。

定義:
インタフェース WindowListener 内の windowDeactivated
パラメータ:
e - WindowEvent

setStatus

public void setStatus(String status)
ウインドウの下に表示されるステータスバーに表示する文字列を指定します。

パラメータ:
status - ステータスバーに表示される文字列

showProgressBar

public void showProgressBar()
プログレスバーを表示します。


hideProgressBar

public void hideProgressBar()
プログレスバーを隠します。


getProgressBar

public JProgressBar getProgressBar()
プログレスバーを返します。

戻り値:
メインウインドウに表示されるプログレスバー

getMainWindow

public static MainWindow getMainWindow()
GTI Builderのメインウインンドを返します。

戻り値:
メインウインドウ

updataLookAndFeel

public void updataLookAndFeel()
LookAndFeelをアップデートします。


restart

public void restart()
GTI Builderを再起動します。


exit

public void exit()
GTI Builderを終了します。


addBlockExitThread

public void addBlockExitThread(Thread th)
終了する前に完了しなければならないスレッドを追加します。

パラメータ:
th - 追加するスレッド

getProjectManager

public ProjectManager getProjectManager()
GTI Builderのプロジェクトマネジャーを返します。

戻り値:
GTI Builderのプロジェクトマネージャー

setUndoMenu

public void setUndoMenu(String text,
                        boolean enable,
                        EditorComponent source)
パラメータ:
text -
enable -
source -

setRedoMenu

public void setRedoMenu(String text,
                        boolean enable,
                        EditorComponent source)
パラメータ:
text -
enable -
source -

setEditMenuEnabled

public void setEditMenuEnabled(boolean b)
編集メニューが使えるかを設定します。

パラメータ:
b - つかえるようにするときはtrueを指定し、無効にするときはfalseを指定します。

addEditorMenuItem

public void addEditorMenuItem(JMenuItem[] editorMenuItem)
編集メニューにエディタ独自のメニューを追加します。

パラメータ:
editorMenuItem - 追加するメニュー

removeEditorMenuItem

public void removeEditorMenuItem()
追加したエディタの独自メニューを削除します。


setSaveMenuEnabled

public void setSaveMenuEnabled(boolean b)
プロジェクトが存在するときにしか使えないメニューを使えるようにするか設定します。

パラメータ:
b - メニューを使えるようにするときはtrue

startDebug

public void startDebug()
デバックを開始します。