|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel jp.go.aist.dmrc.platform.beans.gui.text.PFTextArea
複数行のテキストを編集するためのコンポーネント。
このコンポーネントから以下のイベントが発生します。
トリガー | 対象データ | イベント番号 |
---|---|---|
setText(String) 呼出 |
設定されたテキスト String |
0 |
トリガー | 対象データ | 更新データ | イベント番号 |
---|---|---|---|
テキストが変更されたとき | テキスト String |
テキスト String |
0 |
入れ子クラスの概要 |
クラス javax.swing.JPanel から継承した入れ子クラス |
javax.swing.JPanel.AccessibleJPanel |
クラス javax.swing.JComponent から継承した入れ子クラス |
javax.swing.JComponent.AccessibleJComponent |
クラス java.awt.Container から継承した入れ子クラス |
java.awt.Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した入れ子クラス |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
フィールドの概要 |
クラス 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.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
PFTextArea()
コンストラクタ。 |
メソッドの概要 | |
void |
addPFDataSetListener(PFDataSetListener lis)
引数で与えられたイベントリスナを登録し、 データ設定イベント発生時に処理を行う対象とする。 |
void |
addPFDataUpdateListener(PFDataUpdateListener lis)
引数で与えられたイベントリスナを登録し、 データ更新イベント発生時に処理を行う対象とする。 |
void |
append(java.lang.String text)
指定された文字列をテキストの一番うしろに追加する。 |
void |
appendLine(java.lang.String text)
指定された文字列を改行コード付でテキストの一番うしろに追加する。 |
void |
appendLineToScrolls(java.lang.String text)
文字列を末尾に追加・改行してスクロール |
void |
appendToScrolls(java.lang.String text)
文字列を末尾に追加してスクロール |
protected void |
firePFDataSet(PFDataSetEvent event)
テーブル設定をリスナーに通知する。 |
protected void |
firePFDataUpdated(PFDataUpdateEvent event)
データ更新イベントを通知する。 |
java.awt.Color |
getBackground()
背景色を取得する。 |
java.awt.Color |
getCaretColor()
キャレットの色を返す。 |
int |
getCaretPosition()
キャレットの位置を返す。 |
int |
getColumns()
テキストエリアの列数を返す。 |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。 |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
java.awt.Color |
getDisabledTextColor()
無効時のテキストの色を取得する。 |
java.awt.Font |
getFont()
フォントを取得する。 |
java.awt.Color |
getForeground()
前景色を取得する。 |
int |
getHorizontalScrollBarPolicy()
水平方向スクロールバーの表示方法を返す。 |
int |
getLineCount()
テキストの行数を返す。 |
boolean |
getLineWrap()
テキストエリアの右端でテキストを折り返すかどうかを返す。 |
PFMultiLocaleString |
getMultiLocaleToolTipText()
マルチロケールツールチップテキストを取得する。 |
java.util.Iterator |
getPFDataSetListenerList()
データ設定イベントリスナ配列を取得する。 |
java.util.Iterator |
getPFDataUpdateListenerList()
データ更新イベントリスナ配列を取得する。 |
protected javax.swing.JPopupMenu |
getPopupMenu()
ポップアップメニューを生成する。 |
boolean |
getPropertyEditable()
画面上から属性が編集可能かどうかを取得する。 |
int |
getRows()
テキストエリアの行数を返す。 |
java.lang.String |
getSelectedText()
現在選択されているテキストを返す。 |
java.awt.Color |
getSelectedTextColor()
選択されているテキストの色を返す。 |
java.awt.Color |
getSelectionColor()
選択領域の色を返す。 |
int |
getSelectionEnd()
選択終了位置を返す。 |
int |
getSelectionStart()
選択開始位置を返す。 |
int |
getTabSize()
タブを展開するのに使う文字数を返す。 |
java.lang.String |
getText()
テキストを返す。 |
java.lang.String |
getToolTipText()
ツールチップテキストを取得する。 |
int |
getVerticalScrollBarPolicy()
垂直方向スクロールバーの表示方法を返す。 |
boolean |
getWrapStyleWord()
テキストエリアの右端でテキストを単語単位で折り返すかどうかを返す。 |
protected void |
init()
イベントリスナ登録 |
void |
inputFocus()
テキストエリアにフォーカスを当てる. |
void |
insert(java.lang.String text,
int pos)
指定された文字列を、テキストの指定された位置に追加する。 |
void |
insertLine(java.lang.String text,
int pos)
指定された文字列を改行コード付で、テキストの指定された位置に追加する。 |
boolean |
isBackgroundSet()
背景色設定有無を取得する。 |
boolean |
isEditable()
編集可能かどうかを返す。 |
boolean |
isEnabled()
有効/無効を取得する。 |
boolean |
isFontSet()
フォント設定有無を取得する。 |
boolean |
isForegroundSet()
前景色設定有無を取得する。 |
void |
localeUpdated()
ロケール更新への対応 |
void |
newLine()
改行コードを追加する。 |
void |
readExternal(java.io.ObjectInput in)
コンポーネントのデシリアライズ。 |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
void |
removePFDataSetListener(PFDataSetListener lis)
引数で与えられたイベントリスナを削除し、 データ設定イベント発生時に処理を行う対象から外す。 |
void |
removePFDataUpdateListener(PFDataUpdateListener lis)
引数で与えられたイベントリスナを削除し、 データ更新イベント発生時に処理を行う対象から外す。 |
void |
replaceRange(java.lang.String text,
int start,
int end)
指定された開始位置から終了位置までのテキストを、指定された文字列に 置き換える。 |
void |
scrollsForEnd()
末尾へのスクロール |
void |
scrollsForTop()
先頭へのスクロール |
void |
select(int start,
int end)
指定された開始位置から終了位置までのテキストを選択状態にする。 |
void |
selectAll()
全テキストを選択状態にする。 |
void |
setBackground(java.awt.Color color)
背景色を設定する。 |
void |
setCaretColor(java.awt.Color color)
キャレットの色を設定する。 |
void |
setCaretPosition(int position)
キャレットの位置を設定する。 |
void |
setColumns(int columns)
テキストエリアの列数を設定する。 |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントキーを設定する。 |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setDisabledTextColor(java.awt.Color color)
無効時のテキストの色を設定する。 |
void |
setEditable(boolean editable)
編集可能かどうかを設定する。 |
void |
setEnabled(boolean enable)
有効/無効を設定する。 |
void |
setFont(java.awt.Font font)
フォントを設定する。 |
void |
setForeground(java.awt.Color color)
前景色を設定する。 |
void |
setHorizontalScrollBarPolicy(int policy)
水平方向スクロールバーの表示方法を設定する。 |
void |
setLineWrap(boolean wrap)
テキストエリアの右端でテキストを折り返すかどうかを設定する。 |
void |
setMultiLocaleToolTipText(PFMultiLocaleString text)
マルチロケールツールチップテキストを設定する。 |
void |
setPreferredSize(java.awt.Dimension size)
推奨サイズを設定する。 |
void |
setPropertyEditable(boolean flag)
画面上から属性が編集可能かどうかを設定する。 |
void |
setRows(int rows)
テキストエリアの行数を設定する。 |
void |
setSelectedTextColor(java.awt.Color color)
選択されているテキストの色を設定する。 |
void |
setSelectionColor(java.awt.Color color)
選択領域の色を設定する。 |
void |
setSelectionEnd(int end)
選択終了位置を設定する。 |
void |
setSelectionStart(int start)
選択開始位置を設定する。 |
void |
setTabSize(int size)
タブを展開するのに使う文字数を設定する。 |
void |
setText(java.lang.String text)
テキストを設定する。 |
void |
setToolTipText(java.lang.String text)
ツールチップテキストを設定する。 |
void |
setVerticalScrollBarPolicy(int policy)
垂直方向スクロールバーの表示方法を設定する。 |
void |
setWrapStyleWord(boolean wrap)
テキストエリアの右端でテキストを単語単位で折り返すかどうかを設定する。 |
void |
writeExternal(java.io.ObjectOutput out)
コンポーネントのシリアライズ。 |
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力. |
クラス 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, 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, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, 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, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, 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, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, 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 |
コンストラクタの詳細 |
public PFTextArea()
メソッドの詳細 |
public java.lang.String getComponentName()
PFComponent
内の getComponentName
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- コンポーネントキーpublic PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
public void setComponentID(int id)
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDpublic java.lang.String getComponentString()
PFComponent
内の getComponentString
public boolean getPropertyEditable()
PFPropertyEditableComponent
内の getPropertyEditable
public void setPropertyEditable(boolean flag)
PFPropertyEditableComponent
内の setPropertyEditable
flag
- 編集可否(true/false)public java.util.Iterator getPFDataSetListenerList()
PFDataSetEventSource
内の getPFDataSetListenerList
public void addPFDataSetListener(PFDataSetListener lis)
PFDataSetEventSource
内の addPFDataSetListener
lis
- 追加対象イベントリスナpublic void removePFDataSetListener(PFDataSetListener lis)
PFDataSetEventSource
内の removePFDataSetListener
lis
- 削除対象イベントリスナprotected void firePFDataSet(PFDataSetEvent event)
event
- データ設定イベントpublic java.util.Iterator getPFDataUpdateListenerList()
PFDataUpdateEventSource
内の getPFDataUpdateListenerList
public void addPFDataUpdateListener(PFDataUpdateListener lis)
PFDataUpdateEventSource
内の addPFDataUpdateListener
lis
- 追加対象イベントリスナpublic void removePFDataUpdateListener(PFDataUpdateListener lis)
PFDataUpdateEventSource
内の removePFDataUpdateListener
lis
- 削除対象イベントリスナprotected void firePFDataUpdated(PFDataUpdateEvent event)
public void localeUpdated()
PFComponent
内の localeUpdated
public java.lang.String getToolTipText()
public void setToolTipText(java.lang.String text)
text
- ツールチップテキストpublic PFMultiLocaleString getMultiLocaleToolTipText()
public void setMultiLocaleToolTipText(PFMultiLocaleString text)
text
- マルチロケールツールチップテキストpublic int getHorizontalScrollBarPolicy()
public void setHorizontalScrollBarPolicy(int policy)
policy
- 表示方法public int getVerticalScrollBarPolicy()
public void setVerticalScrollBarPolicy(int policy)
policy
- 表示方法public void setPreferredSize(java.awt.Dimension size)
size
- 推奨サイズpublic boolean isFontSet()
public java.awt.Font getFont()
java.awt.MenuContainer
内の getFont
public void setFont(java.awt.Font font)
font
- フォントpublic boolean isForegroundSet()
public java.awt.Color getForeground()
public void setForeground(java.awt.Color color)
color
- 前景色public boolean isBackgroundSet()
public java.awt.Color getBackground()
public void setBackground(java.awt.Color color)
color
- 背景色public boolean isEnabled()
public void setEnabled(boolean enable)
enable
- 有効の場合truepublic java.lang.String getText()
public void setText(java.lang.String text)
text
- テキストpublic void append(java.lang.String text)
text
- 文字列public void appendLine(java.lang.String text)
text
- 文字列public void newLine()
public void insert(java.lang.String text, int pos)
text
- 文字列pos
- 追加する位置public void insertLine(java.lang.String text, int pos)
text
- 文字列pos
- 追加する位置public void replaceRange(java.lang.String text, int start, int end)
text
- 文字列start
- 開始位置end
- 終了位置public void select(int start, int end)
start
- 開始位置end
- 終了位置public void selectAll()
public int getSelectionStart()
public void setSelectionStart(int start)
start
- 開始位置public int getSelectionEnd()
public void setSelectionEnd(int end)
end
- 終了位置public java.lang.String getSelectedText()
public boolean isEditable()
public void setEditable(boolean editable)
editable
- 編集可能のときtruepublic int getRows()
public void setRows(int rows)
rows
- テキストエリアの行数public int getColumns()
public void setColumns(int columns)
columns
- テキストエリアの列数public int getLineCount()
public boolean getLineWrap()
public void setLineWrap(boolean wrap)
wrap
- 右端で折り返すときtruepublic boolean getWrapStyleWord()
public void setWrapStyleWord(boolean wrap)
wrap
- 折り返すときtruepublic int getTabSize()
public void setTabSize(int size)
size
- 文字数public int getCaretPosition()
public void setCaretPosition(int position)
position
- キャレットの位置public java.awt.Color getSelectionColor()
public void setSelectionColor(java.awt.Color color)
color
- 選択領域の色public java.awt.Color getSelectedTextColor()
public void setSelectedTextColor(java.awt.Color color)
color
- 選択時のテキストの色public java.awt.Color getDisabledTextColor()
public void setDisabledTextColor(java.awt.Color color)
color
- 無効時のテキストの色public java.awt.Color getCaretColor()
public void setCaretColor(java.awt.Color color)
color
- キャレットの色public void scrollsForTop()
public void scrollsForEnd()
public void appendToScrolls(java.lang.String text)
public void appendLineToScrolls(java.lang.String text)
protected void init()
protected javax.swing.JPopupMenu getPopupMenu()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.Externalizable
内の readExternal
in
- 入力元ストリーム
java.io.IOException
- I/Oエラー
java.lang.ClassNotFoundException
- クラスが見つからないpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.Externalizable
内の writeExternal
out
- 出力先ストリーム
java.io.IOException
- I/Oエラーpublic void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
public void inputFocus()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |