public class BasicInternalFrameTitlePane extends javax.swing.JComponent
| Modifier and Type | Class and Description |
|---|---|
class |
BasicInternalFrameTitlePane.CloseAction
The Action responsible for closing the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.IconifyAction
This Action is responsible for iconifying the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.MaximizeAction
This Action is responsible for maximizing the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.MoveAction
This Action is responsible for dragging the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.PropertyChangeHandler
This class is responsible for handling property change events from the
JInternalFrame and adjusting the Title Pane as necessary.
|
class |
BasicInternalFrameTitlePane.RestoreAction
This Action is responsible for restoring the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.SizeAction
This action is responsible for sizing the JInternalFrame.
|
class |
BasicInternalFrameTitlePane.SystemMenuBar
This class acts as the MenuBar for the TitlePane.
|
class |
BasicInternalFrameTitlePane.TitlePaneLayout
This class acts as the Layout Manager for the TitlePane.
|
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLOSE_CMD
The action command for the Close action.
|
protected javax.swing.Action |
closeAction
The action associated with closing the JInternalFrame.
|
protected javax.swing.JButton |
closeButton
The button that closes the JInternalFrame.
|
protected javax.swing.Icon |
closeIcon
The icon displayed in the close button.
|
protected javax.swing.JInternalFrame |
frame
The JInternalFrame that this TitlePane is used in.
|
protected javax.swing.JButton |
iconButton
The button that iconifies the JInternalFrame.
|
protected javax.swing.Icon |
iconIcon
The icon displayed in the iconify button.
|
protected static java.lang.String |
ICONIFY_CMD
The action command for the Minimize action.
|
protected javax.swing.Action |
iconifyAction
The action associated with iconifying the JInternalFrame.
|
protected javax.swing.JButton |
maxButton
The button that maximizes the JInternalFrame.
|
protected javax.swing.Icon |
maxIcon
The icon displayed in the maximize button.
|
protected static java.lang.String |
MAXIMIZE_CMD
The action command for the Maximize action.
|
protected javax.swing.Action |
maximizeAction
The action associated with maximizing the JInternalFrame.
|
protected javax.swing.JMenuBar |
menuBar
The JMenuBar that is located at the top left of the Title Pane.
|
protected javax.swing.Icon |
minIcon
The icon displayed in the restore button.
|
protected static java.lang.String |
MOVE_CMD
The action command for the Move action.
|
protected javax.swing.Action |
moveAction
The action associated with moving the JInternalFrame.
|
protected java.awt.Color |
notSelectedTextColor
The text color of the TitlePane when the JInternalFrame is not selected.
|
protected java.awt.Color |
notSelectedTitleColor
The background color of the TitlePane when the JInternalFrame is not
selected.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener
The Property Change listener that listens to the JInternalFrame.
|
protected static java.lang.String |
RESTORE_CMD
The action command for the Restore action.
|
protected javax.swing.Action |
restoreAction
The action associated with restoring the JInternalFrame.
|
protected java.awt.Color |
selectedTextColor
The text color of the titlePane when the JInternalFrame is selected.
|
protected java.awt.Color |
selectedTitleColor
The background color of the TitlePane when the JInternalFrame is
selected.
|
protected static java.lang.String |
SIZE_CMD
The action command for the Size action.
|
protected javax.swing.Action |
sizeAction
The action associated with resizing the JInternalFrame.
|
protected javax.swing.JMenu |
windowMenu
The JMenu inside the menuBar.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
BasicInternalFrameTitlePane(javax.swing.JInternalFrame f)
Creates a new BasicInternalFrameTitlePane object that is used in the
given JInternalFrame.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSubComponents()
This method adds the sub components to the TitlePane.
|
protected void |
addSystemMenuItems(javax.swing.JMenu systemMenu)
This method adds the MenuItems to the given JMenu.
|
protected void |
assembleSystemMenu()
This method creates the MenuBar used in the TitlePane.
|
protected void |
createActions()
This method creates the actions that are used to manipulate the
JInternalFrame.
|
protected void |
createButtons()
This method creates the buttons used in the TitlePane.
|
protected java.awt.LayoutManager |
createLayout()
This method creates a new LayoutManager for the TitlePane.
|
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
This method creates a new PropertyChangeListener.
|
protected javax.swing.JMenu |
createSystemMenu()
This method creates a new JMenu.
|
protected javax.swing.JMenuBar |
createSystemMenuBar()
This method creates a new JMenubar.
|
protected void |
enableActions()
This method enables the actions for the TitlePane given the frame's
properties.
|
protected java.lang.String |
getTitle(java.lang.String text,
java.awt.FontMetrics fm,
int availableWidth)
This method returns the title string based on the available width and the
font metrics.
|
protected void |
installDefaults()
This method installs the defaults determined by the look and feel.
|
protected void |
installListeners()
This method is used to install the listeners.
|
protected void |
installTitlePane()
This method installs the TitlePane onto the JInternalFrameTitlePane.
|
void |
paintComponent(java.awt.Graphics g)
This method paints the TitlePane.
|
protected void |
paintTitleBackground(java.awt.Graphics g)
This method paints the TitlePane's background.
|
protected void |
postClosingEvent(javax.swing.JInternalFrame frame)
This method fires something similar to a WINDOW_CLOSING event.
|
protected void |
setButtonIcons()
Set icons for the minimize-, maximize- and close-buttons.
|
protected void |
showSystemMenu()
This method programmatically shows the JMenu.
|
protected void |
uninstallDefaults()
This method uninstalls the defaults.
|
protected void |
uninstallListeners()
This method is used to uninstall the listeners.
|
addAncestorListener, 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 static final java.lang.String CLOSE_CMD
protected static final java.lang.String ICONIFY_CMD
protected static final java.lang.String MAXIMIZE_CMD
protected static final java.lang.String MOVE_CMD
protected static final java.lang.String RESTORE_CMD
protected static final java.lang.String SIZE_CMD
protected javax.swing.Action closeAction
protected javax.swing.Action iconifyAction
protected javax.swing.Action maximizeAction
protected javax.swing.Action moveAction
protected javax.swing.Action restoreAction
protected javax.swing.Action sizeAction
protected javax.swing.JButton closeButton
protected javax.swing.JButton iconButton
protected javax.swing.JButton maxButton
protected javax.swing.Icon minIcon
protected javax.swing.Icon maxIcon
protected javax.swing.Icon iconIcon
protected javax.swing.Icon closeIcon
protected javax.swing.JInternalFrame frame
protected javax.swing.JMenuBar menuBar
protected javax.swing.JMenu windowMenu
protected java.awt.Color notSelectedTextColor
protected java.awt.Color notSelectedTitleColor
protected java.awt.Color selectedTextColor
protected java.awt.Color selectedTitleColor
protected java.beans.PropertyChangeListener propertyChangeListener
public BasicInternalFrameTitlePane(javax.swing.JInternalFrame f)
f - The JInternalFrame this BasicInternalFrameTitlePane will be used
in.protected void installTitlePane()
protected void addSubComponents()
protected void createActions()
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void createButtons()
protected void setButtonIcons()
protected void assembleSystemMenu()
protected void addSystemMenuItems(javax.swing.JMenu systemMenu)
systemMenu - The JMenu to add MenuItems to.protected javax.swing.JMenuBar createSystemMenuBar()
protected javax.swing.JMenu createSystemMenu()
protected void showSystemMenu()
public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - The Graphics object to paint with.JComponent.paint(java.awt.Graphics),
JComponent.paintBorder(java.awt.Graphics),
JComponent.paintChildren(java.awt.Graphics)protected void paintTitleBackground(java.awt.Graphics g)
g - The Graphics object to paint with.protected java.lang.String getTitle(java.lang.String text, java.awt.FontMetrics fm, int availableWidth)
text - The desired title.fm - The FontMetrics of the font used.availableWidth - The available width.protected void postClosingEvent(javax.swing.JInternalFrame frame)
frame - The JInternalFrame that is being closed.protected void enableActions()
protected java.beans.PropertyChangeListener createPropertyChangeListener()
protected java.awt.LayoutManager createLayout()