jp.sourceforge.gtibuilder.project
クラス Project

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張javax.swing.JComponent
              拡張javax.swing.JPanel
                  拡張jp.sourceforge.gtibuilder.project.Project
すべての実装インタフェース:
Accessible, ImageObserver, MenuContainer, Serializable

public class Project
extends JPanel

Projectをあらわすクラスです。

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

入れ子クラスの概要
(パッケージプライベート)  class Project.WindowListener
           
 
クラス javax.swing.JPanel から継承した入れ子クラス
JPanel.AccessibleJPanel
 
クラス javax.swing.JComponent から継承した入れ子クラス
JComponent.AccessibleJComponent
 
クラス java.awt.Container から継承した入れ子クラス
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
static String COMMENT
          コメントを表す定数です。
static String COPYRIGHT
          著作権を表す定数です。
private  Desktop dp
           
private  boolean edited
           
private  Vector editors
           
private  File file
           
private  FileViewPanel fsv
           
private  StringArray infomation
           
private  boolean inited
           
private  Project.WindowListener listener
           
private  Vector listeners
           
static String MAIN_CLASS
          メインクラスを表す定数です。
static String MASTER
          マスターを表します。
static String NAME
          名前を表す定数です。
private  NewWindowListener newListener
           
private  int newx
           
private  int newy
           
static String ORGANIZATION
          団体を表す定数です。
private  Root root
           
private  JSplitPane sp
           
private  JSplitPane sp2
           
private  Timer timer
           
static String WINDOW_MANAGER
          ウインドウマネージャを表す定数です。
 
クラス javax.swing.JPanel から継承したフィールド
 
クラス javax.swing.JComponent から継承したフィールド
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
クラス java.awt.Container から継承したフィールド
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
Project()
          If you use this,you have to call init method before you use this calss.
Project(byte[] info, WindowManager manager)
          byte配列のプロジェクト情報とWindowManagerをもとにProjectを作成します。
Project(StringArray map)
          新たにプロジェクトを作成します。
 
メソッドの概要
 void addEditor(Editor editor)
          エディターを追加します。
 void addFile()
          新しいファイルを追加します。
 void addFile(File file)
          追加するファイルを指定してファイルを追加します。
 void addInternalFrame(JInternalFrame frame)
          プロジェクトのデスクトップペインにInternalFrameを追加します。
 void addInternalFrame(JInternalFrame frame, int layer)
          指定したレイヤーにInternalFrameを追加します。
 void addNameUpdataListener(NameUpdataListener listener)
           
 void addSheet(JInternalFrame component)
           
 void close()
          プロジェクトを閉じます。
 void copy()
          アクティブなエディターにcopy()を呼びます。
 void cut()
          アクティブなエディターにcut()を呼びます。
 void delete()
          アクティブなエディターにdelete()を呼びます。
 String getComment()
          コメントを返します。
 String getCopyright()
          著作権情報を返します。
protected  Editor[] getEditors()
           
 String getInfomation(String key)
          このプロジェクトに関連づけられた情報を取得とします。
 String getMainClass()
          メインクラスを返します。
 String getMaster()
          マスターの名前を返します。
 String getOrg()
          団体名を返します。
 byte[] getProjectInfo()
          プロジェクト情報をbyte配列として返します。
 String getProjectName()
          プロジェクト名を返します。
 Root getRoot()
          FileSystemのROOTを返します。
 File getSaveFile()
          保存先のファイルを返します。
 Editor getSelectedEditor()
           
 Project init(byte[] info, WindowManager manager)
          プロジェクトを初期化します。
 void paste()
          アクティブなエディターにpaste()を呼びます。
 void print()
          印刷を実行します。
 void redo()
          アクティブなエディターにredo()を呼びます。
 void reloadFileView()
           
 void removeEditor()
          選択されているエディターを削除します。
 void removeEditor(Editor editor)
          指定されたEditorを削除します。
 void removeEditorList(Editor editor)
           
 void removeIntarnalFrame(JInternalFrame frame)
          指定したInternalFrameをデスクトップペインから取り除きます。
 void removeSheet()
           
 void save()
          デフォルトの保存先に保存します。
 void saveAs()
          名前を指定してプロジェクトを保存します。
 void setComment(String comment)
          コメントを設定します。
 void setCopyright(String copy)
          著作権情報を設定します。
 void setInfomation(String key, String content)
          このプロジェクトに関連づけられた情報を設定します。
 void setMainClass(String clazz)
          メインクラスを設定します。
 void setMaster(String master)
          マスターを設定します。
 void setOrg(String org)
          団体名を設定します。
 boolean setProjectInfo(byte[] info)
          プロジェクト情報をbyte配列で設定します。
 void setProjectName(String name)
          プロジェクト名を設定します。
 void setSaveFile(File file)
          保存先のファイルを設定します。
 void showFilePreference()
          現在アクティブなファイルの環境設定を表示します。
 void showProjectPreference()
          プロジェクトの環境設定を表示します。
 void undo()
          アクティブなエディターにundo()を呼びます。
 
クラス javax.swing.JPanel から継承したメソッド
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
クラス javax.swing.JComponent から継承したメソッド
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

MASTER

public static final String MASTER
マスターを表します。

関連項目:
定数フィールド値

NAME

public static final String NAME
名前を表す定数です。

関連項目:
定数フィールド値

COPYRIGHT

public static final String COPYRIGHT
著作権を表す定数です。

関連項目:
定数フィールド値

ORGANIZATION

public static final String ORGANIZATION
団体を表す定数です。

関連項目:
定数フィールド値

COMMENT

public static final String COMMENT
コメントを表す定数です。

関連項目:
定数フィールド値

WINDOW_MANAGER

public static final String WINDOW_MANAGER
ウインドウマネージャを表す定数です。

関連項目:
定数フィールド値

MAIN_CLASS

public static final String MAIN_CLASS
メインクラスを表す定数です。

関連項目:
定数フィールド値

sp

private JSplitPane sp

sp2

private JSplitPane sp2

dp

private Desktop dp

editors

private Vector editors

file

private File file

edited

private boolean edited

listener

private Project.WindowListener listener

infomation

private StringArray infomation

timer

private Timer timer

newListener

private NewWindowListener newListener

listeners

private Vector listeners

newx

private int newx

newy

private int newy

root

private Root root

inited

private boolean inited

fsv

private FileViewPanel fsv
コンストラクタの詳細

Project

public Project(StringArray map)
新たにプロジェクトを作成します。
それぞれの引数はStringArrayで渡します。
主な引数
NAME = 名前
COPYRIGHT = 著作権表示
ORGANIZATION = 団体名
MASTER = 管理者
COMMENT = コメント
全てこのクラスのpublic finalの変数に宣言されています。

パラメータ:
map - 引数を登録したStringArray

Project

public Project(byte[] info,
               WindowManager manager)
byte配列のプロジェクト情報とWindowManagerをもとにProjectを作成します。

パラメータ:
info - プロジェクト情報
manager - WindowManager
関連項目:
WindowManager

Project

public Project()
If you use this,you have to call init method before you use this calss.

メソッドの詳細

init

public final Project init(byte[] info,
                          WindowManager manager)
プロジェクトを初期化します。

パラメータ:
info - byte配列のプロジェクト情報。
manager - WindowManager
戻り値:
プロジェクト

reloadFileView

public void reloadFileView()

getMainClass

public String getMainClass()
メインクラスを返します。

戻り値:
メインクラス

getCopyright

public String getCopyright()
著作権情報を返します。

戻り値:
著作権情報

getProjectName

public String getProjectName()
プロジェクト名を返します。

戻り値:
プロジェクト名

getOrg

public String getOrg()
団体名を返します。

戻り値:
団体名

getComment

public String getComment()
コメントを返します。

戻り値:
コメント

getMaster

public String getMaster()
マスターの名前を返します。

戻り値:
マスターの名前

getSaveFile

public File getSaveFile()
保存先のファイルを返します。

戻り値:
保存先のファイル

getProjectInfo

public byte[] getProjectInfo()
プロジェクト情報をbyte配列として返します。

戻り値:
プロジェクト情報のbyte配列

setProjectInfo

public boolean setProjectInfo(byte[] info)
プロジェクト情報をbyte配列で設定します。

パラメータ:
info - プロジェクト情報のbyte配列
戻り値:
成功するとtrue

setMainClass

public void setMainClass(String clazz)
メインクラスを設定します。

パラメータ:
clazz - メインクラス

setCopyright

public void setCopyright(String copy)
著作権情報を設定します。

パラメータ:
copy - 著作権情報

setProjectName

public void setProjectName(String name)
プロジェクト名を設定します。

パラメータ:
name - プロジェクト名

setOrg

public void setOrg(String org)
団体名を設定します。

パラメータ:
org - 団体名

setMaster

public void setMaster(String master)
マスターを設定します。

パラメータ:
master - マスターの名前

setComment

public void setComment(String comment)
コメントを設定します。

パラメータ:
comment - コメント

setInfomation

public void setInfomation(String key,
                          String content)
このプロジェクトに関連づけられた情報を設定します。

パラメータ:
key - 情報のキー
content - 情報の内容

getInfomation

public String getInfomation(String key)
このプロジェクトに関連づけられた情報を取得とします。

パラメータ:
key - 情報のキー
戻り値:
関連づけられた情報

setSaveFile

public void setSaveFile(File file)
保存先のファイルを設定します。

パラメータ:
file - 保存先のファイル

addEditor

public void addEditor(Editor editor)
エディターを追加します。
このメソッドを呼ぶと自動的にリサイズされデスクトップペインに追加されます。 また編集メニューの有効、無効が自動的に処理されるようになります。 ウインドウメニューには自動的に追加されます。

パラメータ:
editor - 追加するエディター

addSheet

public void addSheet(JInternalFrame component)
パラメータ:
component -

removeSheet

public void removeSheet()

removeEditor

public void removeEditor()
選択されているエディターを削除します。


removeEditor

public void removeEditor(Editor editor)
指定されたEditorを削除します。

パラメータ:
editor - 削除するエディタ

removeEditorList

public void removeEditorList(Editor editor)

addInternalFrame

public void addInternalFrame(JInternalFrame frame)
プロジェクトのデスクトップペインにInternalFrameを追加します。

パラメータ:
frame - 追加するJInternalFrame
関連項目:
removeInernalFrame()

addInternalFrame

public void addInternalFrame(JInternalFrame frame,
                             int layer)
指定したレイヤーにInternalFrameを追加します。

パラメータ:
frame - 追加するJInternalFrame
layer - 追加するレイヤー

removeIntarnalFrame

public void removeIntarnalFrame(JInternalFrame frame)
指定したInternalFrameをデスクトップペインから取り除きます。

パラメータ:
frame - 取り除くJInternalFrame

addFile

public void addFile()
新しいファイルを追加します。このメソッドではファイルダイアログが表示されaddFile(File)が呼ばれます。


addFile

public void addFile(File file)
追加するファイルを指定してファイルを追加します。

パラメータ:
file - 追加するファイル

getEditors

protected Editor[] getEditors()

getSelectedEditor

public Editor getSelectedEditor()

showFilePreference

public void showFilePreference()
現在アクティブなファイルの環境設定を表示します。


showProjectPreference

public void showProjectPreference()
プロジェクトの環境設定を表示します。


copy

public void copy()
アクティブなエディターにcopy()を呼びます。


cut

public void cut()
アクティブなエディターにcut()を呼びます。


paste

public void paste()
アクティブなエディターにpaste()を呼びます。


delete

public void delete()
アクティブなエディターにdelete()を呼びます。


undo

public void undo()
アクティブなエディターにundo()を呼びます。


redo

public void redo()
アクティブなエディターにredo()を呼びます。


save

public void save()
デフォルトの保存先に保存します。 保存先が決まっていない場合はsavaAs()が呼ばれます。


saveAs

public void saveAs()
名前を指定してプロジェクトを保存します。 このメソッドを呼ぶとファイルダイアログが表示され続いてsave()が呼ばれます。


close

public void close()
プロジェクトを閉じます。


getRoot

public Root getRoot()
FileSystemのROOTを返します。

戻り値:
ルート
関連項目:
jp.sourceforge.gtibuilder.io.filesystem.GBFile

print

public void print()
印刷を実行します。

未実装


addNameUpdataListener

public void addNameUpdataListener(NameUpdataListener listener)