This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.plaf.basic
class BasicInternalFrameTitlePane
- All Implemented Interfaces:
- MenuContainer, ImageObserver, Serializable, TransferHandler.HasGetTransferHandler
- Direct Known Subclasses:
- MetalInternalFrameTitlePane
public class BasicInternalFrameTitlePane
extends JComponent
The class that manages a basic title bar
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
class |
This class should be treated as a "protected" inner class. |
Method Summary |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected LayoutManager |
|
protected PropertyChangeListener |
|
protected JMenu |
|
protected JMenuBar |
|
protected void |
|
protected String |
|
protected void |
|
protected void |
|
protected void |
|
void |
Calls the UI delegate's paint method, if the UI delegate
is non-null .
|
protected void |
Invoked from paintComponent.
|
protected void |
Post a WINDOW_CLOSING-like event to the frame, so that it can
be treated like a regular Frame.
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
Methods inherited from class 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, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
closeAction
protected Action closeAction
-
closeButton
protected JButton closeButton
-
closeIcon
protected Icon closeIcon
-
CLOSE_CMD
protected static final String CLOSE_CMD
-
frame
protected JInternalFrame frame
-
iconButton
protected JButton iconButton
-
iconIcon
protected Icon iconIcon
-
iconifyAction
protected Action iconifyAction
-
ICONIFY_CMD
protected static final String ICONIFY_CMD
-
maxButton
protected JButton maxButton
-
maxIcon
protected Icon maxIcon
-
maximizeAction
protected Action maximizeAction
-
MAXIMIZE_CMD
protected static final String MAXIMIZE_CMD
-
menuBar
protected JMenuBar menuBar
-
minIcon
protected Icon minIcon
-
moveAction
protected Action moveAction
-
MOVE_CMD
protected static final String MOVE_CMD
-
notSelectedTextColor
protected Color notSelectedTextColor
-
notSelectedTitleColor
protected Color notSelectedTitleColor
-
propertyChangeListener
protected PropertyChangeListener propertyChangeListener
-
restoreAction
protected Action restoreAction
-
RESTORE_CMD
protected static final String RESTORE_CMD
-
selectedTextColor
protected Color selectedTextColor
-
selectedTitleColor
protected Color selectedTitleColor
-
sizeAction
protected Action sizeAction
-
SIZE_CMD
protected static final String SIZE_CMD
-
windowMenu
protected JMenu windowMenu
-
BasicInternalFrameTitlePane
public BasicInternalFrameTitlePane(JInternalFrame f)
-
- Parameters:
f
addSubComponents
protected void addSubComponents()
-
addSystemMenuItems
protected void addSystemMenuItems(JMenu systemMenu)
-
- Parameters:
systemMenu
assembleSystemMenu
protected void assembleSystemMenu()
-
createActions
protected void createActions()
-
createButtons
protected void createButtons()
-
createLayout
protected LayoutManager createLayout()
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
-
createSystemMenu
protected JMenu createSystemMenu()
-
createSystemMenuBar
protected JMenuBar createSystemMenuBar()
-
enableActions
protected void enableActions()
-
getTitle
protected String getTitle(String text,
FontMetrics fm,
int availTextWidth)
-
- Parameters:
text
fm
availTextWidth
installDefaults
protected void installDefaults()
-
installListeners
protected void installListeners()
-
installTitlePane
protected void installTitlePane()
-
paintComponent
public void paintComponent(Graphics g)
-
- Overrides:
paintComponent
in class JComponent
- Parameters:
g
paintTitleBackground
protected void paintTitleBackground(Graphics g)
-
Invoked from paintComponent.
Paints the background of the titlepane. All text and icons will
then be rendered on top of this background.
- Parameters:
g
- the graphics to use to render the background
postClosingEvent
protected void postClosingEvent(JInternalFrame frame)
-
Post a WINDOW_CLOSING-like event to the frame, so that it can
be treated like a regular Frame.
- Parameters:
frame
setButtonIcons
protected void setButtonIcons()
-
showSystemMenu
protected void showSystemMenu()
-
uninstallDefaults
protected void uninstallDefaults()
-
uninstallListeners
protected void uninstallListeners()
-
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.