javax.swing.plaf.basic
public class BasicInternalFrameTitlePane extends JComponent
Nested Class Summary | |
---|---|
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.
|
Field Summary | |
---|---|
protected Action | closeAction The action associated with closing the JInternalFrame. |
protected JButton | closeButton The button that closes the JInternalFrame. |
protected Icon | closeIcon The icon displayed in the close button. |
protected static String | CLOSE_CMD The action command for the Close action. |
protected JInternalFrame | frame The JInternalFrame that this TitlePane is used in. |
protected JButton | iconButton The button that iconifies the JInternalFrame. |
protected Action | iconifyAction The action associated with iconifying the JInternalFrame. |
protected Icon | iconIcon The icon displayed in the iconify button. |
protected static String | ICONIFY_CMD The action command for the Minimize action. |
protected JButton | maxButton The button that maximizes the JInternalFrame. |
protected Action | maximizeAction The action associated with maximizing the JInternalFrame. |
protected Icon | maxIcon The icon displayed in the maximize button. |
protected JMenuBar | menuBar The JMenuBar that is located at the top left of the Title Pane. |
protected Icon | minIcon The icon displayed in the restore button. |
protected Action | moveAction The action associated with moving the JInternalFrame. |
protected static String | MAXIMIZE_CMD The action command for the Maximize action. |
protected static String | MOVE_CMD The action command for the Move action. |
protected Color | notSelectedTextColor
The text color of the TitlePane when the JInternalFrame is not selected. |
protected Color | notSelectedTitleColor
The background color of the TitlePane when the JInternalFrame is not
selected. |
protected PropertyChangeListener | propertyChangeListener The Property Change listener that listens to the JInternalFrame. |
protected Action | restoreAction The action associated with restoring the JInternalFrame. |
protected static String | RESTORE_CMD The action command for the Restore action. |
protected Color | selectedTextColor The text color of the titlePane when the JInternalFrame is selected. |
protected Color | selectedTitleColor
The background color of the TitlePane when the JInternalFrame is
selected. |
protected Action | sizeAction The action associated with resizing the JInternalFrame. |
protected static String | SIZE_CMD The action command for the Size action. |
protected JMenu | windowMenu The JMenu inside the menuBar. |
Constructor Summary | |
---|---|
BasicInternalFrameTitlePane(JInternalFrame f)
Creates a new BasicInternalFrameTitlePane object that is used in the
given JInternalFrame.
|
Method Summary | |
---|---|
protected void | addSubComponents()
This method adds the sub components to the TitlePane. |
protected void | addSystemMenuItems(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 LayoutManager | createLayout()
This method creates a new LayoutManager for the TitlePane.
|
protected PropertyChangeListener | createPropertyChangeListener()
This method creates a new PropertyChangeListener.
|
protected JMenu | createSystemMenu()
This method creates a new JMenu.
|
protected 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 String | getTitle(String text, 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(Graphics g)
This method paints the TitlePane.
|
protected void | paintTitleBackground(Graphics g)
This method paints the TitlePane's background.
|
protected void | postClosingEvent(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. |
Parameters: f The JInternalFrame this BasicInternalFrameTitlePane will be used in.
Parameters: systemMenu The JMenu to add MenuItems to.
Returns: A new LayoutManager.
Returns: A new PropertyChangeListener.
Returns: A new JMenu.
Returns: A new JMenuBar.
Parameters: text The desired title. fm The FontMetrics of the font used. availableWidth The available width.
Returns: The allowable string.
Parameters: g The Graphics object to paint with.
Parameters: g The Graphics object to paint with.
Parameters: frame The JInternalFrame that is being closed.