- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.plaf.basic.BasicInternalFrameTitlePane
-
- すべての実装されたインタフェース:
ImageObserver
,MenuContainer
,Serializable
- 直系の既知のサブクラス:
MetalInternalFrameTitlePane
public class BasicInternalFrameTitlePane extends JComponent
基本タイトル・バーを管理するクラスです。警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが
java.beans
パッケージに追加されています。XMLEncoder
を参照してください。- 関連項目:
- 直列化された形式
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 class
BasicInternalFrameTitlePane.CloseAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.IconifyAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.MaximizeAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.MoveAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.PropertyChangeHandler
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.RestoreAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.SizeAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.SystemMenuBar
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.TitlePaneLayout
このクラスは、「protected」内部クラスとして扱うようにしてください。-
クラス java.awt.Componentで宣言されたネストされたクラス/インタフェース
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
クラス java.awt.Containerで宣言されたネストされたクラス/インタフェース
Container.AccessibleAWTContainer
-
クラス javax.swing.JComponentで宣言されたネストされたクラス/インタフェース
JComponent.AccessibleJComponent
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected static String
CLOSE_CMD
閉じるボタンのテキスト・プロパティ。protected Action
closeAction
CloseAction
のインスタンス。protected JButton
closeButton
閉じるボタン。protected Icon
closeIcon
閉じるアイコン。protected JInternalFrame
frame
JInternalFrame
のインスタンス。protected JButton
iconButton
アイコン化ボタン。protected Icon
iconIcon
アイコン化アイコン。protected static String
ICONIFY_CMD
ボタン・テキスト・プロパティを最小化します。protected Action
iconifyAction
IconifyAction
のインスタンス。protected JButton
maxButton
最大化ボタン。protected Icon
maxIcon
最大化アイコン。protected static String
MAXIMIZE_CMD
ボタン・テキスト・プロパティを最大化します。protected Action
maximizeAction
MaximizeAction
のインスタンス。protected JMenuBar
menuBar
JMenuBar
のインスタンス。protected Icon
minIcon
最小化アイコン。protected static String
MOVE_CMD
移動ボタンのテキスト・プロパティ。protected Action
moveAction
MoveAction
のインスタンス。protected Color
notSelectedTextColor
選択されていないテキストの色です。protected Color
notSelectedTitleColor
選択されていないタイトルの色です。protected PropertyChangeListener
propertyChangeListener
PropertyChangeListener
のインスタンス。protected static String
RESTORE_CMD
リストア・ボタンのテキスト・プロパティ。protected Action
restoreAction
RestoreAction
のインスタンス。protected Color
selectedTextColor
選択されたテキストの色。protected Color
selectedTitleColor
選択したタイトルの色です。protected static String
SIZE_CMD
サイズ・ボタンのテキスト・プロパティ。protected Action
sizeAction
SizeAction
のインスタンス。protected JMenu
windowMenu
JMenu
のインスタンス。-
クラス java.awt.Componentで宣言されたフィールド
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
インタフェース java.awt.image.ImageObserverで宣言されたフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
クラス javax.swing.JComponentで宣言されたフィールド
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 BasicInternalFrameTitlePane(JInternalFrame f)
BasicInternalFrameTitlePane
の新しいインスタンスを構築します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected void
addSubComponents()
サブコンポーネントを追加します。protected void
addSystemMenuItems(JMenu systemMenu)
systemMenu
にシステム・メニュー・アイテムを追加します。protected void
assembleSystemMenu()
システム・メニューをアセンブルします。protected void
createActions()
アクションを作成します。protected void
createButtons()
ボタンを作成します。protected LayoutManager
createLayout()
レイアウト・マネージャを返します。protected PropertyChangeListener
createPropertyChangeListener()
PropertyChangeListener
のインスタンスを返します。protected JMenu
createSystemMenu()
JMenu
の新しいインスタンスを返します。protected JMenuBar
createSystemMenuBar()
JMenuBar
の新しいインスタンスを返します。protected void
enableActions()
アクションを有効にします。protected String
getTitle(String text, FontMetrics fm, int availTextWidth)
タイトルを返します。protected void
installDefaults()
デフォルトのプロパティをインストールします。protected void
installListeners()
リスナーを登録します。protected void
installTitlePane()
タイトル・ペインをインストールします。protected void
paintTitleBackground(Graphics g)
paintComponentから呼び出されます。protected void
postClosingEvent(JInternalFrame frame)
フレームにWINDOW_CLOSINGのようなイベントをポストすると、通常のFrame
のように扱うことができます。protected void
setButtonIcons()
ボタンのアイコンを設定します。protected void
showSystemMenu()
システム・メニューを表示します。protected void
uninstallDefaults()
既定のプロパティをアンインストールします。protected void
uninstallListeners()
リスナーを登録解除します。-
クラス 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
クラス java.awt.Containerで宣言されたメソッド
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
クラス javax.swing.JComponentで宣言されたメソッド
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
-
-
-
-
フィールドの詳細
-
menuBar
protected JMenuBar menuBar
JMenuBar
のインスタンス。
-
iconButton
protected JButton iconButton
アイコン化ボタン。
-
maxButton
protected JButton maxButton
最大化ボタン。
-
closeButton
protected JButton closeButton
閉じるボタン。
-
windowMenu
protected JMenu windowMenu
JMenu
のインスタンス。
-
frame
protected JInternalFrame frame
JInternalFrame
のインスタンス。
-
selectedTitleColor
protected Color selectedTitleColor
選択したタイトルの色です。
-
selectedTextColor
protected Color selectedTextColor
選択されたテキストの色。
-
notSelectedTitleColor
protected Color notSelectedTitleColor
選択されていないタイトルの色です。
-
notSelectedTextColor
protected Color notSelectedTextColor
選択されていないテキストの色です。
-
maxIcon
protected Icon maxIcon
最大化アイコン。
-
minIcon
protected Icon minIcon
最小化アイコン。
-
iconIcon
protected Icon iconIcon
アイコン化アイコン。
-
closeIcon
protected Icon closeIcon
閉じるアイコン。
-
propertyChangeListener
protected PropertyChangeListener propertyChangeListener
PropertyChangeListener
のインスタンス。
-
closeAction
protected Action closeAction
CloseAction
のインスタンス。
-
maximizeAction
protected Action maximizeAction
MaximizeAction
のインスタンス。
-
iconifyAction
protected Action iconifyAction
IconifyAction
のインスタンス。
-
restoreAction
protected Action restoreAction
RestoreAction
のインスタンス。
-
moveAction
protected Action moveAction
MoveAction
のインスタンス。
-
sizeAction
protected Action sizeAction
SizeAction
のインスタンス。
-
CLOSE_CMD
protected static final String CLOSE_CMD
閉じるボタンのテキスト・プロパティ。
-
ICONIFY_CMD
protected static final String ICONIFY_CMD
ボタン・テキスト・プロパティを最小化します。
-
RESTORE_CMD
protected static final String RESTORE_CMD
リストア・ボタンのテキスト・プロパティ。
-
MAXIMIZE_CMD
protected static final String MAXIMIZE_CMD
ボタン・テキスト・プロパティを最大化します。
-
MOVE_CMD
protected static final String MOVE_CMD
移動ボタンのテキスト・プロパティ。
-
SIZE_CMD
protected static final String SIZE_CMD
サイズ・ボタンのテキスト・プロパティ。
-
-
コンストラクタの詳細
-
BasicInternalFrameTitlePane
public BasicInternalFrameTitlePane(JInternalFrame f)
BasicInternalFrameTitlePane
の新しいインスタンスを構築します。- パラメータ:
f
-JInternalFrame
のインスタンス
-
-
メソッドの詳細
-
installTitlePane
protected void installTitlePane()
タイトル・ペインをインストールします。
-
addSubComponents
protected void addSubComponents()
サブコンポーネントを追加します。
-
createActions
protected void createActions()
アクションを作成します。
-
installListeners
protected void installListeners()
リスナーを登録します。
-
uninstallListeners
protected void uninstallListeners()
リスナーを登録解除します。
-
installDefaults
protected void installDefaults()
デフォルトのプロパティをインストールします。
-
uninstallDefaults
protected void uninstallDefaults()
既定のプロパティをアンインストールします。
-
createButtons
protected void createButtons()
ボタンを作成します。
-
setButtonIcons
protected void setButtonIcons()
ボタンのアイコンを設定します。
-
assembleSystemMenu
protected void assembleSystemMenu()
システム・メニューをアセンブルします。
-
addSystemMenuItems
protected void addSystemMenuItems(JMenu systemMenu)
systemMenu
にシステム・メニュー・アイテムを追加します。- パラメータ:
systemMenu
-JMenu
のインスタンス
-
createSystemMenu
protected JMenu createSystemMenu()
JMenu
の新しいインスタンスを返します。- 戻り値:
JMenu
の新しいインスタンス
-
createSystemMenuBar
protected JMenuBar createSystemMenuBar()
JMenuBar
の新しいインスタンスを返します。- 戻り値:
JMenuBar
の新しいインスタンス
-
showSystemMenu
protected void showSystemMenu()
システム・メニューを表示します。
-
paintTitleBackground
protected void paintTitleBackground(Graphics g)
paintComponentから呼び出されます。 タイトル・ペインのバックグラウンドをペイントします。 すると、すべてのテキストとアイコンがこのバックグラウンドの上にレンダリングされることになります。- パラメータ:
g
- バックグラウンドをレンダリングするために使用されるグラフィックス- 導入されたバージョン:
- 1.4
-
getTitle
protected String getTitle(String text, FontMetrics fm, int availTextWidth)
タイトルを返します。- パラメータ:
text
- テキストfm
-FontMetrics
のインスタンスavailTextWidth
- 使用可能なテキストの幅- 戻り値:
- タイトル。
-
postClosingEvent
protected void postClosingEvent(JInternalFrame frame)
フレームにWINDOW_CLOSINGのようなイベントをポストすると、通常のFrame
のように扱うことができます。- パラメータ:
frame
-JInternalFrame
のインスタンス
-
enableActions
protected void enableActions()
アクションを有効にします。
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
PropertyChangeListener
のインスタンスを返します。- 戻り値:
PropertyChangeListener
のインスタンス
-
createLayout
protected LayoutManager createLayout()
レイアウト・マネージャを返します。- 戻り値:
- レイアウト・マネージャ
-
-