Kagetaka

net.hizlab.kagetaka.awt.tate
クラス FileField

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張net.hizlab.kagetaka.awt.tate.FileField
すべての実装インタフェース:
ImageObserver, MenuContainer, Serializable

public class FileField
extends Container

このクラスは、一連の Checkbox ボタン用の多重排他スコープを生成します。

バージョン:
$Revision: 1.1 $
関連項目:
直列化された形式
バグ:
直列化は、リスナが保存されないため出来ません。

入れ子クラスの概要
 
クラス java.awt.Container から継承した入れ子クラス
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
 
クラス 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
 
コンストラクタの概要
FileField(Option option, ImageCreator ic)
          空のファイルフィールドを作成します。
FileField(Option option, ImageCreator ic, String file)
          指定したファイル名を含んだファイルフィールドを作成します。
FileField(Option option, ImageCreator ic, String file, int columns)
          指定したファイル名を含んだファイルフィールドを作成します。
 
メソッドの概要
 Border getBorder()
          設定されているボーダーを返します。
 String getFile()
          ファイル名を返します。
 FilenameFilter getFilenameFilter()
          ファイルを指定するフィルタを返します。
 String getName()
          コンポーネントの名前を返します。
 String getTitle()
          ファイル名を選択するダイアログのタイトルを返します。
 boolean isFocusTraversable()
          フォーカスを受け取ることが出来るかを返します。
protected  String paramString()
          このファイルフィールドのパラメータ文字列を返します。
 void setBorder(Border border)
          ボーダーを設定します。
 void setFile(String file)
          ファイル名を設定します。
 void setFilenameFilter(FilenameFilter filter)
          ファイルを指定するフィルタを設定します。
 void setName(String name)
          コンポーネントの名前を設定します。
 void setTitle(String title)
          ファイル名を選択するダイアログのタイトルを設定します。
 void update(Graphics g)
          画面をアップデートします。
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, 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, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, 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, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

FileField

public FileField(Option option,
                 ImageCreator ic)
空のファイルフィールドを作成します。

パラメータ:
option - オプション
ic - イメージクリエータ

FileField

public FileField(Option option,
                 ImageCreator ic,
                 String file)
指定したファイル名を含んだファイルフィールドを作成します。

パラメータ:
option - オプション
ic - イメージクリエータ
file - ファイル名

FileField

public FileField(Option option,
                 ImageCreator ic,
                 String file,
                 int columns)
指定したファイル名を含んだファイルフィールドを作成します。

パラメータ:
option - オプション
ic - イメージクリエータ
file - ファイル名
columns - 列数
メソッドの詳細

getBorder

public Border getBorder()
設定されているボーダーを返します。

戻り値:
ボーダー

getFile

public String getFile()
ファイル名を返します。

戻り値:
ファイル名

getFilenameFilter

public FilenameFilter getFilenameFilter()
ファイルを指定するフィルタを返します。

戻り値:
フィルタ

getName

public String getName()
コンポーネントの名前を返します。

戻り値:
名前

getTitle

public String getTitle()
ファイル名を選択するダイアログのタイトルを返します。

戻り値:
タイトル

isFocusTraversable

public boolean isFocusTraversable()
フォーカスを受け取ることが出来るかを返します。

戻り値:
このコンポーネントはフォーカスを受け取れるので、 true を返します。

paramString

protected String paramString()
このファイルフィールドのパラメータ文字列を返します。

戻り値:
パラメータ文字列

setBorder

public void setBorder(Border border)
ボーダーを設定します。

パラメータ:
border - ボーダー

setFile

public void setFile(String file)
ファイル名を設定します。

パラメータ:
file - ファイル名

setFilenameFilter

public void setFilenameFilter(FilenameFilter filter)
ファイルを指定するフィルタを設定します。 ここで指定されるフィルタは、参照ボタンによるファイル選択ダイアログで 利用されます。テキストフィールドへの直接入力は、 このフィルタに関係なく入力することが出来ます。

パラメータ:
filter - フィルタ

setName

public void setName(String name)
コンポーネントの名前を設定します。

パラメータ:
name - 名前

setTitle

public void setTitle(String title)
ファイル名を選択するダイアログのタイトルを設定します。

パラメータ:
title - タイトル

update

public void update(Graphics g)
画面をアップデートします。

パラメータ:
g - グラフィックス

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'