public class MetalInternalFrameTitlePane extends javax.swing.plaf.basic.BasicInternalFrameTitlePane
JInternalFrame (see
MetalInternalFrameUI.createNorthPane(JInternalFrame)). This can
be displayed in two styles: one for regular internal frames, and the other
for "palette" style internal frames.javax.swing.plaf.basic.BasicInternalFrameTitlePane.CloseAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.IconifyAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.MaximizeAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.MoveAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.PropertyChangeHandler, javax.swing.plaf.basic.BasicInternalFrameTitlePane.RestoreAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.SystemMenuBar, javax.swing.plaf.basic.BasicInternalFrameTitlePane.TitlePaneLayoutjavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPalette
A flag indicating whether the title pane uses the palette style.
|
protected javax.swing.Icon |
paletteCloseIcon
The icon used for the close button - this is fetched from the look and
feel defaults using the key
InternalFrame.paletteCloseIcon. |
protected int |
paletteTitleHeight
The height of the title pane when
isPalette is
true. |
CLOSE_CMD, closeAction, closeButton, closeIcon, frame, iconButton, iconIcon, ICONIFY_CMD, iconifyAction, maxButton, maxIcon, MAXIMIZE_CMD, maximizeAction, menuBar, minIcon, MOVE_CMD, moveAction, notSelectedTextColor, notSelectedTitleColor, propertyChangeListener, RESTORE_CMD, restoreAction, selectedTextColor, selectedTitleColor, SIZE_CMD, sizeAction, windowMenuaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
MetalInternalFrameTitlePane(javax.swing.JInternalFrame f)
Creates a new title pane for the specified frame.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSubComponents()
Adds the sub components of the title pane.
|
protected void |
addSystemMenuItems(javax.swing.JMenu systemMenu)
Overridden to do nothing.
|
protected void |
createButtons()
Calls the super class to create the buttons, then calls
setBorderPainted(false) and
setContentAreaFilled(false) for each button. |
protected java.awt.LayoutManager |
createLayout()
Creates a new instance of
MetalTitlePaneLayout (not part of
the public API). |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates and returns a property change handler for the title pane.
|
protected void |
installDefaults()
Fetches the colors used in the title pane.
|
void |
paintComponent(java.awt.Graphics g)
Paints a representation of the current state of the internal frame.
|
void |
paintPalette(java.awt.Graphics g)
Draws the title pane in the palette style.
|
void |
setPalette(boolean b)
Sets the flag that controls whether the title pane is drawn in the
palette style or the regular style.
|
protected void |
showSystemMenu()
Overridden to do nothing.
|
protected void |
uninstallDefaults()
Clears the colors used for the title pane.
|
assembleSystemMenu, createActions, createSystemMenu, createSystemMenuBar, enableActions, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, setButtonIcons, uninstallListenersaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, 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, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected boolean isPalette
protected javax.swing.Icon paletteCloseIcon
InternalFrame.paletteCloseIcon.protected int paletteTitleHeight
isPalette is
true. This value is fetched from the look and feel defaults
using the key InternalFrame.paletteTitleHeight.public MetalInternalFrameTitlePane(javax.swing.JInternalFrame f)
f - the internal frame.protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void createButtons()
setBorderPainted(false) and
setContentAreaFilled(false) for each button.createButtons in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void addSystemMenuItems(javax.swing.JMenu systemMenu)
addSystemMenuItems in class javax.swing.plaf.basic.BasicInternalFrameTitlePanesystemMenu - The JMenu to add MenuItems to.protected void showSystemMenu()
showSystemMenu in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void addSubComponents()
addSubComponents in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected java.awt.LayoutManager createLayout()
MetalTitlePaneLayout (not part of
the public API).createLayout in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneMetalTitlePaneLayout.public void paintPalette(java.awt.Graphics g)
g - the graphics device.paintComponent(Graphics)public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneg - the graphics device.JComponent.paint(java.awt.Graphics),
JComponent.paintBorder(java.awt.Graphics),
JComponent.paintChildren(java.awt.Graphics)public void setPalette(boolean b)
b - the new value of the flag.protected java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicInternalFrameTitlePane