GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
public class BasicInternalFrameTitlePane
extends JComponent
Nested Class Summary | |
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
Nested classes/interfaces inherited from class javax.swing.JComponent | |
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container | |
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component | |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
Field Summary | |
protected static String |
|
protected static String |
|
protected static String |
|
protected static String |
|
protected static String |
|
protected static String |
|
protected Action |
|
protected JButton |
|
protected Icon |
|
protected JInternalFrame |
|
protected JButton |
|
protected Icon |
|
protected Action |
|
protected JButton |
|
protected Icon |
|
protected Action |
|
protected JMenuBar |
|
protected Icon |
|
protected Action |
|
protected Color |
|
protected Color |
|
protected PropertyChangeListener |
|
protected Action |
|
protected Color |
|
protected Color |
|
protected Action |
|
protected JMenu |
|
Fields inherited from class javax.swing.JComponent | |
TOOL_TIP_TEXT_KEY , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW , accessibleContext , listenerList , ui |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver | |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
Constructor Summary | |
|
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 |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
protected Action iconifyAction
The action associated with iconifying the JInternalFrame.
protected Action maximizeAction
The action associated with maximizing the JInternalFrame.
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 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.
public BasicInternalFrameTitlePane(JInternalFrame f)
Creates a new BasicInternalFrameTitlePane object that is used in the given JInternalFrame.
- Parameters:
f
- The JInternalFrame this BasicInternalFrameTitlePane will be used in.
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.
- Parameters:
systemMenu
- The JMenu to add MenuItems to.
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 LayoutManager createLayout()
This method creates a new LayoutManager for the TitlePane.
- Returns:
- A new LayoutManager.
protected PropertyChangeListener createPropertyChangeListener()
This method creates a new PropertyChangeListener.
- Returns:
- A new PropertyChangeListener.
protected JMenu createSystemMenu()
This method creates a new JMenu.
- Returns:
- A new JMenu.
protected JMenuBar createSystemMenuBar()
This method creates a new JMenubar.
- Returns:
- 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.
- Parameters:
text
- The desired title.fm
- The FontMetrics of the font used.availableWidth
- The available width.
- Returns:
- The allowable string.
protected void installDefaults()
This method installs the defaults determined by the look and feel.
protected void installTitlePane()
This method installs the TitlePane onto the JInternalFrameTitlePane. It also creates any children components that need to be created and adds listeners to the appropriate components.
public void paintComponent(Graphics g)
This method paints the TitlePane.
- Overrides:
- paintComponent in interface JComponent
- Parameters:
g
- The Graphics object to paint with.
protected void paintTitleBackground(Graphics g)
This method paints the TitlePane's background.
- Parameters:
g
- The Graphics object to paint with.
protected void postClosingEvent(JInternalFrame frame)
This method fires something similar to a WINDOW_CLOSING event.
- Parameters:
frame
- The JInternalFrame that is being closed.
protected void setButtonIcons()
Set icons for the minimize-, maximize- and close-buttons.
protected void uninstallListeners()
This method is used to uninstall the listeners.
GNU Classpath (0.95) |