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を参照してください。 
- 
ネストされたクラスのサマリーネストされたクラス 修飾子と型 クラス 説明 classBasicInternalFrameTitlePane.CloseActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.IconifyActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.MaximizeActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.MoveActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.PropertyChangeHandlerこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.RestoreActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.SizeActionこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.SystemMenuBarこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicInternalFrameTitlePane.TitlePaneLayoutこのクラスは、「protected」内部クラスとして扱うようにしてください。クラス java.awt.Componentで宣言されたネストされたクラス/インタフェースComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
- 
フィールドのサマリーフィールド 修飾子と型 フィールド 説明 protected static StringCLOSE_CMD閉じるボタンのテキスト・プロパティ。protected ActioncloseActionCloseActionのインスタンス。protected JButtoncloseButton閉じるボタン。protected IconcloseIcon閉じるアイコン。protected JInternalFrameframeJInternalFrameのインスタンス。protected JButtoniconButtonアイコン化ボタン。protected IconiconIconアイコン化アイコン。protected static StringICONIFY_CMDボタン・テキスト・プロパティを最小化します。protected ActioniconifyActionIconifyActionのインスタンス。protected JButtonmaxButton最大化ボタン。protected IconmaxIcon最大化アイコン。protected static StringMAXIMIZE_CMDボタン・テキスト・プロパティを最大化します。protected ActionmaximizeActionMaximizeActionのインスタンス。protected JMenuBarmenuBarJMenuBarのインスタンス。protected IconminIcon最小化アイコン。protected static StringMOVE_CMD移動ボタンのテキスト・プロパティ。protected ActionmoveActionMoveActionのインスタンス。protected ColornotSelectedTextColor選択されていないテキストの色です。protected ColornotSelectedTitleColor選択されていないタイトルの色です。protected PropertyChangeListenerpropertyChangeListenerPropertyChangeListenerのインスタンス。protected static StringRESTORE_CMDリストア・ボタンのテキスト・プロパティ。protected ActionrestoreActionRestoreActionのインスタンス。protected ColorselectedTextColor選択されたテキストの色。protected ColorselectedTitleColor選択したタイトルの色です。protected static StringSIZE_CMDサイズ・ボタンのテキスト・プロパティ。protected ActionsizeActionSizeActionのインスタンス。protected JMenuwindowMenuJMenuのインスタンス。クラス javax.swing.JComponentで宣言されたフィールドlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWクラス 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
- 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 BasicInternalFrameTitlePane(JInternalFrame f)BasicInternalFrameTitlePaneの新しいインスタンスを構築します。
- 
メソッドのサマリー修飾子と型 メソッド 説明 protected voidaddSubComponents()サブコンポーネントを追加します。protected voidaddSystemMenuItems(JMenu systemMenu)systemMenuにシステム・メニュー・アイテムを追加します。protected voidassembleSystemMenu()システム・メニューをアセンブルします。protected voidcreateActions()アクションを作成します。protected voidcreateButtons()ボタンを作成します。protected LayoutManagercreateLayout()レイアウト・マネージャを返します。protected PropertyChangeListenercreatePropertyChangeListener()PropertyChangeListenerのインスタンスを返します。protected JMenucreateSystemMenu()JMenuの新しいインスタンスを返します。protected JMenuBarcreateSystemMenuBar()JMenuBarの新しいインスタンスを返します。protected voidenableActions()アクションを有効にします。protected StringgetTitle(String text, FontMetrics fm, int availTextWidth)タイトルを返します。protected voidinstallDefaults()デフォルトのプロパティをインストールします。protected voidinstallListeners()リスナーを登録します。protected voidinstallTitlePane()タイトル・ペインをインストールします。protected voidpaintTitleBackground(Graphics g)paintComponentから呼び出されます。protected voidpostClosingEvent(JInternalFrame frame)フレームにWINDOW_CLOSINGのようなイベントをポストすると、通常のFrameのように扱うことができます。protected voidsetButtonIcons()ボタンのアイコンを設定します。protected voidshowSystemMenu()システム・メニューを表示します。protected voiduninstallDefaults()デフォルト・プロパティをアンインストールします。protected voiduninstallListeners()リスナーの登録を解除します。クラス 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, hide, 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クラス 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クラス 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, 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
- 
フィールド詳細- 
menuBarprotected JMenuBar menuBarJMenuBarのインスタンス。
- 
iconButtonprotected JButton iconButtonアイコン化ボタン。
- 
maxButtonprotected JButton maxButton最大化ボタン。
- 
closeButtonprotected JButton closeButton閉じるボタン。
- 
windowMenuprotected JMenu windowMenuJMenuのインスタンス。
- 
frameprotected JInternalFrame frameJInternalFrameのインスタンス。
- 
selectedTitleColorprotected Color selectedTitleColor選択したタイトルの色です。
- 
selectedTextColorprotected Color selectedTextColor選択されたテキストの色。
- 
notSelectedTitleColorprotected Color notSelectedTitleColor選択されていないタイトルの色です。
- 
notSelectedTextColorprotected Color notSelectedTextColor選択されていないテキストの色です。
- 
maxIconprotected Icon maxIcon最大化アイコン。
- 
minIconprotected Icon minIcon最小化アイコン。
- 
iconIconprotected Icon iconIconアイコン化アイコン。
- 
closeIconprotected Icon closeIcon閉じるアイコン。
- 
propertyChangeListenerprotected PropertyChangeListener propertyChangeListenerPropertyChangeListenerのインスタンス。
- 
closeActionprotected Action closeActionCloseActionのインスタンス。
- 
maximizeActionprotected Action maximizeActionMaximizeActionのインスタンス。
- 
iconifyActionprotected Action iconifyActionIconifyActionのインスタンス。
- 
restoreActionprotected Action restoreActionRestoreActionのインスタンス。
- 
moveActionprotected Action moveActionMoveActionのインスタンス。
- 
sizeActionprotected Action sizeActionSizeActionのインスタンス。
- 
CLOSE_CMDprotected static final String CLOSE_CMD閉じるボタンのテキスト・プロパティ。
- 
ICONIFY_CMDprotected static final String ICONIFY_CMDボタン・テキスト・プロパティを最小化します。
- 
RESTORE_CMDprotected static final String RESTORE_CMDリストア・ボタンのテキスト・プロパティ。
- 
MAXIMIZE_CMDprotected static final String MAXIMIZE_CMDボタン・テキスト・プロパティを最大化します。
- 
MOVE_CMDprotected static final String MOVE_CMD移動ボタンのテキスト・プロパティ。
- 
SIZE_CMDprotected static final String SIZE_CMDサイズ・ボタンのテキスト・プロパティ。
 
- 
- 
コンストラクタの詳細- 
BasicInternalFrameTitlePanepublic BasicInternalFrameTitlePane(JInternalFrame f)BasicInternalFrameTitlePaneの新しいインスタンスを構築します。- パラメータ:
- f-- JInternalFrameのインスタンス
 
 
- 
- 
メソッドの詳細- 
installTitlePaneprotected void installTitlePane()タイトル・ペインをインストールします。
- 
addSubComponentsprotected void addSubComponents()サブコンポーネントを追加します。
- 
createActionsprotected void createActions()アクションを作成します。
- 
installListenersprotected void installListeners()リスナーを登録します。
- 
uninstallListenersprotected void uninstallListeners()リスナーの登録を解除します。
- 
installDefaultsprotected void installDefaults()デフォルトのプロパティをインストールします。
- 
uninstallDefaultsprotected void uninstallDefaults()デフォルト・プロパティをアンインストールします。
- 
createButtonsprotected void createButtons()ボタンを作成します。
- 
setButtonIconsprotected void setButtonIcons()ボタンのアイコンを設定します。
- 
assembleSystemMenuprotected void assembleSystemMenu()システム・メニューをアセンブルします。
- 
addSystemMenuItemsprotected void addSystemMenuItems(JMenu systemMenu)systemMenuにシステム・メニュー・アイテムを追加します。- パラメータ:
- systemMenu-- JMenuのインスタンス
 
- 
createSystemMenuprotected JMenu createSystemMenu()JMenuの新しいインスタンスを返します。- 戻り値:
- JMenuの新しいインスタンス
 
- 
createSystemMenuBarprotected JMenuBar createSystemMenuBar()JMenuBarの新しいインスタンスを返します。- 戻り値:
- JMenuBarの新しいインスタンス
 
- 
showSystemMenuprotected void showSystemMenu()システム・メニューを表示します。
- 
paintTitleBackgroundprotected void paintTitleBackground(Graphics g)paintComponentから呼び出されます。 タイトル・ペインのバックグラウンドをペイントします。 すると、すべてのテキストとアイコンがこのバックグラウンドの上にレンダリングされることになります。- パラメータ:
- g- バックグラウンドをレンダリングするために使用されるグラフィックス
- 導入されたバージョン:
- 1.4
 
- 
getTitleprotected String getTitle(String text, FontMetrics fm, int availTextWidth)タイトルを返します。- パラメータ:
- text- テキスト
- fm-- FontMetricsのインスタンス
- availTextWidth- 使用可能なテキストの幅
- 戻り値:
- タイトル。
 
- 
postClosingEventprotected void postClosingEvent(JInternalFrame frame)フレームにWINDOW_CLOSINGのようなイベントをポストすると、通常のFrameのように扱うことができます。- パラメータ:
- frame-- JInternalFrameのインスタンス
 
- 
enableActionsprotected void enableActions()アクションを有効にします。
- 
createPropertyChangeListenerprotected PropertyChangeListener createPropertyChangeListener()PropertyChangeListenerのインスタンスを返します。- 戻り値:
- PropertyChangeListenerのインスタンス
 
- 
createLayoutprotected LayoutManager createLayout()レイアウト・マネージャを返します。- 戻り値:
- レイアウト・マネージャ
 
 
-