Skip navigation links
EDB/Java
jp.ac.tokushima_u.edb.gui

Class EdbTupleEditor

    • Constructor Detail

    • Method Detail

      • setEditting

        public void setEditting(boolean v)
        編集中かどうかを設定します.
        Parameters:
        v - 編集中かどうか
      • isEditting

        public boolean isEditting()
        編集中かどうかを判定します.
        Specified by:
        isEditting in interface EdbEditor
        Returns:
        編集中の場合は true,編集中でない場合は false を返します.
      • getBrowser

        public EdbBrowser getBrowser()
        ブラウザを取得します.
        Specified by:
        getBrowser in interface EdbEditorOwner
        Returns:
        ブラウザを返します.
      • getEDB

        public EDB getEDB()
        EDB コンテキストを取得します.
        Specified by:
        getEDB in interface EdbEditorOwner
        Returns:
        EDB コンテキストを返します.
      • getObject

        public EdbObject getObject()
        編集対象となる EDB オブジェクトを取得します.
        Specified by:
        getObject in interface EdbEditor
        Returns:
        EDB オブジェクトを返します.
      • eid

        public EdbEID eid()
        編集対象となる情報の EID を取得します.
        Specified by:
        eid in interface EdbEditor
        Returns:
        EID を返します.
      • registEditorObject

        public void registEditorObject(EdbEditorObject eo)
        入力がアクティブなオブジェクトを登録します.アクティブな入力状態のオブジェクトは 1 エディタに対して 1 つだけです.
        Specified by:
        registEditorObject in interface EdbEditor
        Parameters:
        eo - 編集オブジェクト
      • editorOwnerIsEditable

        public boolean editorOwnerIsEditable()
        編集権限があるかどうかを調べる.
        Specified by:
        editorOwnerIsEditable in interface EdbEditorOwner
        Returns:
        編集可能性.
      • editorOwnerObjectWillChange

        public void editorOwnerObjectWillChange(Object o)
        下位のオブジェクトが変更される前に呼び出されます.
        Specified by:
        editorOwnerObjectWillChange in interface EdbEditorOwner
        Parameters:
        o - 変更されるオブジェクト
      • editorOwnerObjectChanged

        public void editorOwnerObjectChanged(Object o)
        下位のオブジェクトが変更されると呼び出されます.
        Specified by:
        editorOwnerObjectChanged in interface EdbEditorOwner
        Parameters:
        o - 変更されたオブジェクト
      • editorOwnerObjectVisibleRequested

        public void editorOwnerObjectVisibleRequested(Object o)
        下位のオブジェクトが自身の表示要求時に呼び出されます.
        Specified by:
        editorOwnerObjectVisibleRequested in interface EdbEditorOwner
        Parameters:
        o - 要求したオブジェクト
      • editorOwnerDuplicateObject

        public void editorOwnerDuplicateObject(Object o,
                                               boolean undoable)
        下位のオブジェクトに指定されたオブジェクトを複製します.
        Specified by:
        editorOwnerDuplicateObject in interface EdbEditorOwner
        Parameters:
        o - 複製するオブジェクト
        undoable - アンドゥ可能性.
      • editorOwnerInsertObject

        public void editorOwnerInsertObject(Object o,
                                            Object n,
                                            boolean after,
                                            boolean undoable)
        下位のオブジェクトから指定されたオブジェクトを挿入します.
        Specified by:
        editorOwnerInsertObject in interface EdbEditorOwner
        Parameters:
        o - 呼出しオブジェクト
        n - 挿入するオブジェクト
        after - 呼出しオブジェクトの後に挿入
        undoable - アンドゥ可能性.
      • editorOwnerRemoveObject

        public void editorOwnerRemoveObject(Object o,
                                            boolean undoable)
        下位のオブジェクトから指定されたオブジェクトを除外します.
        Specified by:
        editorOwnerRemoveObject in interface EdbEditorOwner
        Parameters:
        o - 除外するオブジェクト
        undoable - アンドゥ可能性.
      • editorOwnerReplaceObject

        public void editorOwnerReplaceObject(Object o,
                                             Object n,
                                             boolean undoable)
        下位のオブジェクトから指定されたオブジェクトで置き換えます.
        Specified by:
        editorOwnerReplaceObject in interface EdbEditorOwner
        Parameters:
        o - 置き換えられるオブジェクト
        n - 置き換えるオブジェクト
        undoable - アンドゥ可能性.
      • editorOwnerRotateFocus

        public boolean editorOwnerRotateFocus(Object o,
                                              boolean next)
        入力フォーカスを次に移します.
        Specified by:
        editorOwnerRotateFocus in interface EdbEditorOwner
        Parameters:
        o - 入力フォーカスを持つオブジェクト
        next - フォーカスを渡す向き.
        Returns:
        成功した場合は true,失敗した場合は false を返します.
      • editorInnovate

        public void editorInnovate()
        エディタの各オブジェクトで何らかの編集作業が行われたときに呼び出されます.

        このメソッドでは次の処理が行われます.

        • エディタの各パーツで保持している編集中のdatumをタプルに集める
        • 変更がある場合には背景色を変える
        • 見出しを変更する
        • 類似の情報を検索する
        • 上位ブラウザにエディタの状態変化を通知する
        Specified by:
        editorInnovate in interface EdbEditor
      • editorUndoPush

        public void editorUndoPush(EdbUndo.Undoable undoable,
                                   Object o)
        Description copied from interface: EdbEditor
        Undoオブジェクトの登録.
        Specified by:
        editorUndoPush in interface EdbEditor
        Parameters:
        undoable - Undoオブジェクト.
        o - Undo先.
      • editorUndoable

        public boolean editorUndoable()
        Description copied from interface: EdbEditor
        Undo可能か?
        Specified by:
        editorUndoable in interface EdbEditor
        Returns:
        Undo可能.
      • redraw

        public void redraw(boolean all)
        再描画を行います.

        このメソッドでは全ての項目を再描画します.現状では all は未サポートです.

        Parameters:
        all - 全体かどうか
      • getEditor

        public EdbEditor getEditor()
        エディタを取得します.

        自身のオブジェクトを返します.

        Specified by:
        getEditor in interface EdbEditorOwner
        Returns:
        エディタを返します.
      • isModified

        public boolean isModified()
        修正されたかどうかを判定します.
        Specified by:
        isModified in interface EdbEditor
        Returns:
        修正された場合は true,修正されていない場合は false を返します.
      • makeContent

        void makeContent()
      • setTuple

        void setTuple(EdbTuple tuple)
      • importTuple

        void importTuple(EdbTuple tuple)
      • purge

        void purge()
      • setCaptionVisible

        void setCaptionVisible(boolean v)
      • setTupleCensor

        public void setTupleCensor(EdbCensor c)
        タプルの承認状態を設定します.
        Parameters:
        c - 承認状態
      • setTupleAvailable

        public void setTupleAvailable(boolean a)
        タプルが利用できるかどうか設定します.
        Parameters:
        a - 利用できるかどうか
      • getTupleAvailable

        public boolean getTupleAvailable()
        タプルが利用できるかどうかを取得します.
        Returns:
        利用できる場合は true,その他 false を返します.
      • getCollectedTuple

        public EdbTuple getCollectedTuple()
        エディタの各パーツで保持している編集中のdatumを集めたタプルを取得します.
        Returns:
        タプルを返します.
      • getTuple

        public EdbTuple getTuple()
        編集対象となるタプルを取得します.
        Specified by:
        getTuple in interface EdbEditor
        Returns:
        タプルを返します.
      • show

        public void show()
        ブラウザ内の初期表示設定をします.
      • addCandidateString

        public void addCandidateString(String s)
        候補文字列を追加します.

        候補文字列に追加されると,候補文字列の表示パネルからドラック&ドロップで登録情報に利用できるようになります.

        Parameters:
        s - 候補文字列
      • edbDnDDropTargetIsReady

        public boolean edbDnDDropTargetIsReady()
        ドロップターゲットのReady状態の取得.
        Specified by:
        edbDnDDropTargetIsReady in interface EdbDnDDropTarget
        Returns:
        Is ready.
      • edbDnDDropTargetSelected

        public void edbDnDDropTargetSelected(boolean sel)
        ドロップターゲット領域内でドラッグのEnter/Exit時に呼び出されます.
        Specified by:
        edbDnDDropTargetSelected in interface EdbDnDDropTarget
        Parameters:
        sel - セレクション状態.
EDB/Java

EDB Working Group at Tue Jun 10 17:08:59 JST 2025