public class EdbTextPane extends EdbEditorObject implements EdbDnDStringDropTarget, EdbUndo.Undoable, ClipboardOwner, ComponentListener, DragGestureListener
次のような構成になります.
+------------------------------------------+ |(title)(prefix)[(入力欄)](status)(postfix)| +------------------------------------------+それぞれの意味は次のようになります.
Modifier and Type | Field and Description |
---|---|
protected MLText |
alertReason |
protected Color |
bgc |
protected boolean |
editable |
(package private) int |
maxWidth |
protected String |
myText |
protected EdbPanel |
panel |
protected String |
postfix |
protected EdbLabel |
postfixLabel |
protected String |
prefix |
protected EdbLabel |
prefixLabel |
protected EdbLabel |
statusLabel |
protected String |
statusText |
protected EdbLabel |
textBox |
protected jp.ac.tokushima_u.edb.gui.EdbTextPane.TextEditor |
textEditor |
protected JComponent |
textEditorPane |
protected EdbPanel |
textPanel |
protected Color |
textPanelBgc |
protected MLText |
title |
protected EdbLabel |
titleLabel |
(package private) int |
width |
editorOwner, s_changeListeners
Constructor and Description |
---|
EdbTextPane(EdbEditorOwner eo,
boolean para,
MLText tit,
String pre,
String text,
String post) |
EdbTextPane(EdbEditorOwner eo,
MLText tit,
String text) |
EdbTextPane(EdbEditorOwner eo,
MLText tit,
String pre,
String text,
String post) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae) |
void |
addMouseListener(MouseListener ml)
このペインからマウスイベントを受け取るために,指定されたマウスリスナーを追加します.
|
void |
capitalize() |
void |
componentHidden(ComponentEvent ce) |
void |
componentMoved(ComponentEvent ce) |
void |
componentResized(ComponentEvent ce) |
void |
componentShown(ComponentEvent ce) |
void |
copy() |
void |
cut() |
void |
delete() |
void |
dragGestureRecognized(DragGestureEvent dge)
このペインで,ドラック開始ジェスチャーを認識したときに呼び出されます.
|
void |
edbDnDDropString(String s) |
boolean |
edbDnDDropTargetIsReady()
ドロップターゲットのReady状態の取得.
|
void |
edbDnDDropTargetSelected(boolean sel)
ドロップターゲット領域内でドラッグのEnter/Exit時に呼び出されます.
|
boolean |
endEdit() |
EdbPanel |
getPanel() |
String |
getText()
テキストを取得します.
|
(package private) boolean |
insider_setText(String t,
boolean undoable) |
boolean |
isEditable()
編集できるかどうかを判定します.
|
boolean |
isLatin()
英文を扱うかどうかを判定します.
|
boolean |
isParagraph()
段落を扱うかどうかを判定します.
|
boolean |
isPersonname()
名前を扱うかどうかを判定します.
|
boolean |
isPronounce()
読みを扱うかどうかを判定します.
|
void |
lostOwnership(Clipboard cb,
Transferable tr)
クリップボードの内容のオーナではなくなったことを,このオブジェクトに通知します.
|
void |
lowerCase() |
protected void |
makePopupItems() |
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
protected boolean |
mousePopupShow(MouseEvent e)
Popupメニューを表示する.
|
protected void |
openCiNiiSearch(String text) |
protected void |
openGoogleSearch(String text) |
protected void |
openPubMedSearch(String text) |
protected void |
openScopusSearch(String text) |
protected void |
openWebOfScienceSearch(String text) |
protected void |
openWikipedia(String text) |
boolean |
pastable() |
void |
paste() |
protected void |
popupAddMenuSetECCPD() |
protected void |
popupAddMenuSetRRR() |
void |
registProxyDragGestureRecognizer(int act,
DragGestureListener lis)
Register Drag Gesture Recognizer for parent object (proxy).
|
void |
reverse() |
void |
rotateLeft() |
void |
rotateRight() |
void |
setBackground(Color c) |
void |
setEditable(boolean e) |
void |
setFgc(Color c)
前景色を設定します.
|
void |
setFont(Font f)
タイトルラベル,前置ラベル,値ラベル,後置ラベルのフォントを設定します.
|
void |
setLabelFgc(Color c)
値ラベルの背景色を設定します.
|
void |
setLabelFont(Font f)
値ラベルのフォントを設定します.
|
void |
setLatin(boolean b)
英文を扱うかどうかを設定します.
|
(package private) void |
setMaximumWidth(int w) |
void |
setPersonname(boolean b)
名前を扱うかどうかを設定します.
|
void |
setPronounce(boolean b)
読みを扱うかどうかを設定します.
|
void |
setStatusText(String s) |
void |
setSubFgc(Color c)
タイトルラベル,前置ラベル,値ラベル,後置ラベルの背景色を設定します.
|
void |
setSubFont(Font f)
前置ラベル,後置ラベルのフォントを設定します.
|
boolean |
setText(String t) |
boolean |
setText(String t,
boolean undoable)
テキストを設定します.
|
void |
setTextBackground(Color c) |
void |
setTitleFont(Font f)
タイトルラベルのフォントを設定します.
|
void |
setToolTipText(String t)
ツールヒントに表示するテキストを登録します.このテキストは,カーソルがコンポーネント上にあるときに表示されます.
|
void |
show() |
void |
show(boolean forceVisible) |
boolean |
startEdit() |
boolean |
undo(Object o) |
void |
upperCase() |
createMenuItem_Edit, createMenuItem_Edit, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, edit, getWidth, isVisible, setVisible
addChangeListener, createAction_EndOfEdit, createAction_RotateFocus, editorObjectInnovateEditor, editorObjectNotifyChanged, editorObjectNotifyWillChange, editorObjectRequestDuplicate, editorObjectRequestInsert, editorObjectRequestRemove, editorObjectRequestReplace, editorObjectRequestVisible, editorObjectRotateFocus, editorObjectUndoPush, editorOwnerDuplicateObject, editorOwnerInsertObject, editorOwnerIsEditable, editorOwnerObjectChanged, editorOwnerObjectVisibleRequested, editorOwnerObjectWillChange, editorOwnerRemoveObject, editorOwnerReplaceObject, editorOwnerRotateFocus, getBrowser, getEDB, getEditor, getTracePrintWriter, isSimpleButton1Click, isSimpleButton1Click2, lockBrowser, mousePressed, mouseReleased, unlockBrowser
protected String myText
protected boolean editable
protected Color bgc
protected Color textPanelBgc
protected EdbPanel panel
protected EdbPanel textPanel
protected MLText title
protected String prefix
protected String postfix
protected EdbLabel titleLabel
protected EdbLabel prefixLabel
protected EdbLabel statusLabel
protected EdbLabel postfixLabel
protected String statusText
protected EdbLabel textBox
protected jp.ac.tokushima_u.edb.gui.EdbTextPane.TextEditor textEditor
protected JComponent textEditorPane
protected MLText alertReason
int maxWidth
int width
public EdbTextPane(EdbEditorOwner eo, MLText tit, String text)
public EdbTextPane(EdbEditorOwner eo, MLText tit, String pre, String text, String post)
public EdbTextPane(EdbEditorOwner eo, boolean para, MLText tit, String pre, String text, String post)
public void setBackground(Color c)
public void setTextBackground(Color c)
public void setStatusText(String s)
public EdbPanel getPanel()
getPanel
in class EdbEditorObject
void setMaximumWidth(int w)
public void registProxyDragGestureRecognizer(int act, DragGestureListener lis)
registProxyDragGestureRecognizer
in class EdbEditorObject
act
- drag actionlis
- drag gesture listenerpublic void addMouseListener(MouseListener ml)
addMouseListener
in class EdbEditorObject
ml
- マウスリスナpublic void componentHidden(ComponentEvent ce)
componentHidden
in interface ComponentListener
public void componentMoved(ComponentEvent ce)
componentMoved
in interface ComponentListener
public void componentResized(ComponentEvent ce)
componentResized
in interface ComponentListener
public void componentShown(ComponentEvent ce)
componentShown
in interface ComponentListener
public void setToolTipText(String t)
setToolTipText
in class EdbEditorObject
t
- 示する文字列.テキストが null の場合は,このコンポーネントのツールヒントはオフに設定されるpublic void setLabelFont(Font f)
f
- フォントpublic void setSubFont(Font f)
setSubFont
in class EdbEditorObject
f
- フォントpublic void setTitleFont(Font f)
f
- フォントpublic void setFont(Font f)
setFont
in class EdbEditorObject
f
- フォントpublic void setLabelFgc(Color c)
c
- 背景色public void setSubFgc(Color c)
setSubFgc
in class EdbEditorObject
c
- 背景色public void setFgc(Color c)
setFgc
in class EdbEditorObject
c
- 前景色.public boolean isEditable()
isEditable
in class EdbEditorObject
true
,できない場合は false
を返します.public void setEditable(boolean e)
setEditable
in class EdbEditorObject
public boolean startEdit()
startEdit
in class EdbEditorObject
public boolean endEdit()
endEdit
in class EdbEditorObject
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class EdbEditorUnit
public void reverse()
public void rotateLeft()
public void rotateRight()
public void upperCase()
public void capitalize()
public void lowerCase()
protected void openWikipedia(String text)
protected void openGoogleSearch(String text)
protected void openPubMedSearch(String text)
protected void openCiNiiSearch(String text)
protected void openWebOfScienceSearch(String text)
protected void openScopusSearch(String text)
protected void makePopupItems()
protected void popupAddMenuSetECCPD()
protected void popupAddMenuSetRRR()
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
actionPerformed
in class EdbEditorObject
protected boolean mousePopupShow(MouseEvent e)
mousePopupShow
in class EdbEditorUnit
e
- Mouse Event.public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
mouseEntered
in class EdbEditorUnit
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class EdbEditorUnit
public void show()
show
in class EdbEditorObject
public void show(boolean forceVisible)
public boolean isParagraph()
true
,その他 false
を返します.public void setLatin(boolean b)
b
- 英文を扱うかどうかpublic boolean isLatin()
true
,その他 false
を返します.public void setPronounce(boolean b)
b
- 読みを扱うかどうかpublic boolean isPronounce()
true
,その他 false
を返します.public void setPersonname(boolean b)
b
- 名前を扱うかどうかpublic boolean isPersonname()
true
,その他 false
を返します.public boolean setText(String t, boolean undoable)
t
- テキストundoable
- アンドゥ可能性true
,失敗した場合は false
を返します.boolean insider_setText(String t, boolean undoable)
public boolean setText(String t)
setText
in class EdbEditorObject
public boolean undo(Object o)
undo
in interface EdbUndo.Undoable
public String getText()
getText
in class EdbEditorObject
public void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized
in interface DragGestureListener
dge
- ジェスチャーを記述するイベントpublic boolean edbDnDDropTargetIsReady()
edbDnDDropTargetIsReady
in interface EdbDnDDropTarget
public void edbDnDDropTargetSelected(boolean sel)
edbDnDDropTargetSelected
in interface EdbDnDDropTarget
sel
- セレクション状態.public void edbDnDDropString(String s)
edbDnDDropString
in interface EdbDnDStringDropTarget
public void lostOwnership(Clipboard cb, Transferable tr)
lostOwnership
in interface ClipboardOwner
cb
- もう所有されていないクリップボードtr
- このオーナが所有していたクリップボード上の内容public void cut()
public void copy()
public boolean pastable()
public void paste()
public void delete()
EDB Working Group at Tue Jun 10 17:08:59 JST 2025