APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifInternalFrameTitlePane

extends BasicInternalFrameTitlePane
implements LayoutManager, ActionListener, PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener, java.awt.event.ActionListener, java.awt.LayoutManager
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.border.*, javax.swing.event.InternalFrameEvent, javax.swing.plaf.basic.*, java.util.EventListener, java.beans.PropertyChangeListener, .PropertyChangeEvent, .VetoableChangeListener, .PropertyVetoException, sun.awt.AWTAccessor, .AWTAccessor.MouseEventAccessor

Class that manages a Motif title bar
Since
1.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract class
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
public static final int
pack-priv static Dimension
pack-priv Color
pack-priv Color
pack-priv MotifInternalFrameTitlePane.MaximizeButton
pack-priv MotifInternalFrameTitlePane.MinimizeButton
pack-priv Color
pack-priv MotifInternalFrameTitlePane.SystemButton
pack-priv JPopupMenu
pack-priv MotifInternalFrameTitlePane.Title
Inherited from javax.swing.plaf.basic.BasicInternalFrameTitlePane:
CLOSE_CMDcloseActioncloseButtoncloseIconframeiconButtoniconIconICONIFY_CMDiconifyActionmaxButtonmaxIconMAXIMIZE_CMDmaximizeActionmenuBarminIconMOVE_CMDmoveActionnotSelectedTextColornotSelectedTitleColorpropertyChangeListenerRESTORE_CMDrestoreActionselectedTextColorselectedTitleColorSIZE_CMDsizeActionwindowMenu

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

public void
addLayoutComponent(String name, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

protected void
protected void
protected void
protected LayoutManager
protected PropertyChangeListener
private static int
pack-priv JPopupMenu
protected void
protected void
public void
layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

public Dimension
minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

public void
paintComponent(Graphics g)

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

public Dimension
preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

public void
propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

public void
removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.

pack-priv void
protected void
protected void
Inherited from javax.swing.plaf.basic.BasicInternalFrameTitlePane:
addSystemMenuItemscreateActionscreateSystemMenucreateSystemMenuBarenableActionsgetTitleinstallListenersinstallTitlePanepaintTitleBackgroundpostClosingEventsetButtonIconsuninstallDefaults

Field Detail

BUTTON_SIZEback to summary
public static final int BUTTON_SIZE
buttonDimensionback to summary
pack-priv static Dimension buttonDimension
colorback to summary
pack-priv Color color
highlightback to summary
pack-priv Color highlight
maximizeButtonback to summary
pack-priv MotifInternalFrameTitlePane.MaximizeButton maximizeButton
minimizeButtonback to summary
pack-priv MotifInternalFrameTitlePane.MinimizeButton minimizeButton
shadowback to summary
pack-priv Color shadow
systemButtonback to summary
pack-priv MotifInternalFrameTitlePane.SystemButton systemButton
systemMenuback to summary
pack-priv JPopupMenu systemMenu
titleback to summary
pack-priv MotifInternalFrameTitlePane.Title title

Constructor Detail

MotifInternalFrameTitlePaneback to summary
public MotifInternalFrameTitlePane(JInternalFrame frame)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Annotations
@Override
addLayoutComponentback to summary
public void addLayoutComponent(String name, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

Doc from java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Annotations
@Override
addSubComponentsback to summary
protected void addSubComponents()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.addSubComponents.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.addSubComponents.

Adds subcomponents.

Annotations
@Override
assembleSystemMenuback to summary
protected void assembleSystemMenu()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.assembleSystemMenu.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.assembleSystemMenu.

Assembles system menu.

Annotations
@Override
createButtonsback to summary
protected void createButtons()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.createButtons.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.createButtons.

Creates buttons.

Annotations
@Override
createLayoutback to summary
protected LayoutManager createLayout()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.createLayout.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.createLayout.

Returns a layout manager.

Annotations
@Override
createPropertyChangeListenerback to summary
protected PropertyChangeListener createPropertyChangeListener()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.createPropertyChangeListener.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.createPropertyChangeListener.

Returns an instance of PropertyChangeListener.

Annotations
@Override
getButtonMnemonicback to summary
private static int getButtonMnemonic(String button)

Hides javax.swing.plaf.basic.BasicInternalFrameTitlePane.getButtonMnemonic.

getSystemMenuback to summary
pack-priv JPopupMenu getSystemMenu()
hideSystemMenuback to summary
protected void hideSystemMenu()
installDefaultsback to summary
protected void installDefaults()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.installDefaults.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.installDefaults.

Installs default properties.

Annotations
@Override
layoutContainerback to summary
public void layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Doc from java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

Annotations
@Override
minimumLayoutSizeback to summary
public Dimension minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Doc from java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

Annotations
@Override
paintComponentback to summary
public void paintComponent(Graphics g)

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override
preferredLayoutSizeback to summary
public Dimension preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Doc from java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

Annotations
@Override
propertyChangeback to summary
public void propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Annotations
@Override
removeLayoutComponentback to summary
public void removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Doc from java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.

Annotations
@Override
setColorsback to summary
pack-priv void setColors(Color c, Color h, Color s)
showSystemMenuback to summary
protected void showSystemMenu()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.showSystemMenu.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.showSystemMenu.

Shows system menu.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicInternalFrameTitlePane.uninstallListeners.

Doc from javax.swing.plaf.basic.BasicInternalFrameTitlePane.uninstallListeners.

Unregisters listeners.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private abstract Class MotifInternalFrameTitlePane.FrameButton

extends JButton
Class Inheritance
Known Direct Subclasses
com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.MinimizeButton, com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.MaximizeButton, com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.SystemButton, com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.Title
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Dimension
getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it.

public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it.

public boolean
isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

public void
paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

public void
requestFocus()

Overrides javax.swing.JComponent.requestFocus.

Requests that this Component gets the input focus.

Inherited from javax.swing.JButton:
getAccessibleContextgetUIClassIDisDefaultButtonisDefaultCapableparamStringremoveNotifysetDefaultCapableupdateUI

Constructor Detail

FrameButtonback to summary
pack-priv FrameButton()

Method Detail

getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

Doc from javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it. If the UI delegate's getMinimumSize method returns a non-null value then return that; otherwise defer to the component's layout manager.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

Doc from javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

Annotations
@Override
isFocusTraversableback to summary
public boolean isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Doc from java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

Annotations
@Override
@SuppressWarnings:deprecation
paintComponentback to summary
public void paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override
requestFocusback to summary
public void requestFocus()

Overrides javax.swing.JComponent.requestFocus.

Doc from javax.swing.JComponent.requestFocus.

Requests that this Component gets the input focus. Refer to Component.requestFocus() for a complete description of this method.

Note that the use of this method is discouraged because its behavior is platform dependent. Instead we recommend the use of requestFocusInWindow(). If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifInternalFrameTitlePane.MaximizeButton

extends FrameButton
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

Inherited from com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton:
getMinimumSizegetPreferredSizeisFocusTraversablerequestFocus

Constructor Detail

MaximizeButtonback to summary
private MaximizeButton()

Method Detail

paintComponentback to summary
public void paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifInternalFrameTitlePane.MinimizeButton

extends FrameButton
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

Inherited from com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton:
getMinimumSizegetPreferredSizeisFocusTraversablerequestFocus

Constructor Detail

MinimizeButtonback to summary
private MinimizeButton()

Method Detail

paintComponentback to summary
public void paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifInternalFrameTitlePane.SystemButton

extends FrameButton
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
isFocusTraversable()

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.isFocusTraversable.

Returns whether this Component can become the focus owner.

public void
paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

public void
requestFocus()

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.requestFocus.

Requests that this Component gets the input focus.

Inherited from com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton:
getMinimumSizegetPreferredSize

Constructor Detail

SystemButtonback to summary
private SystemButton()

Method Detail

isFocusTraversableback to summary
public boolean isFocusTraversable()

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.isFocusTraversable.

Doc from java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

Annotations
@Override
paintComponentback to summary
public void paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override
requestFocusback to summary
public void requestFocus()

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.requestFocus.

Doc from javax.swing.JComponent.requestFocus.

Requests that this Component gets the input focus. Refer to Component.requestFocus() for a complete description of this method.

Note that the use of this method is discouraged because its behavior is platform dependent. Instead we recommend the use of requestFocusInWindow(). If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifInternalFrameTitlePane.Title

extends FrameButton
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
pack-priv
Title(String title)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

Inherited from com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton:
getMinimumSizegetPreferredSizeisFocusTraversablerequestFocus

Constructor Detail

Titleback to summary
pack-priv Title(String title)

Method Detail

forwardEventToParentback to summary
pack-priv void forwardEventToParent(MouseEvent e)
Annotations
@SuppressWarnings:deprecation
paintComponentback to summary
public void paintComponent(Graphics g)

Overrides com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane.FrameButton.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Annotations
@Override