Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkInternalFrameTitlePane  view GtkInternalFrameTitlePane download GtkInternalFrameTitlePane.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byorg.gtk.java.swing.plaf.gtk.GtkInternalFrameTitlePane
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.LayoutManager, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable

class GtkInternalFrameTitlePane
extends javax.swing.JComponent
implements java.awt.LayoutManager, java.awt.event.ActionListener, java.beans.PropertyChangeListener

Package private class that manages a Gtk title bar

Version:
1.12 10/15/98

Nested Class Summary
private  class GtkInternalFrameTitlePane.FrameButton
           
private  class GtkInternalFrameTitlePane.MaximizeButton
           
private  class GtkInternalFrameTitlePane.MinimizeButton
           
private  class GtkInternalFrameTitlePane.SystemButton
           
private  class GtkInternalFrameTitlePane.Title
           
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int BUTTON_SIZE
           
(package private) static java.awt.Dimension buttonDimension
           
(package private)  int CLOSE_MENU_ITEM
           
(package private)  java.awt.Color color
           
(package private) static java.awt.Font defaultTitleFont
           
(package private)  java.awt.Color highlight
           
(package private)  javax.swing.JInternalFrame iFrame
           
(package private)  int MAXIMIZE_MENU_ITEM
           
(package private)  GtkInternalFrameTitlePane.MaximizeButton maximizeButton
           
(package private)  int MINIMIZE_MENU_ITEM
           
(package private)  GtkInternalFrameTitlePane.MinimizeButton minimizeButton
           
(package private)  int MOVE_MENU_ITEM
           
(package private)  int RESTORE_MENU_ITEM
           
(package private)  int SEPARATOR_MENU_ITEM
           
(package private)  java.awt.Color shadow
           
(package private)  int SIZE_MENU_ITEM
           
(package private)  GtkInternalFrameTitlePane.SystemButton systemButton
           
(package private)  javax.swing.JPopupMenu systemMenu
           
(package private)  GtkInternalFrameTitlePane.Title title
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
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
GtkInternalFrameTitlePane(javax.swing.JInternalFrame f)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
 void addLayoutComponent(java.lang.String name, java.awt.Component c)
          Adds the specified component to the layout group.
(package private)  javax.swing.JPopupMenu getSystemMenu()
           
protected  void hideSystemMenu()
           
 void layoutContainer(java.awt.Container c)
          Lays out the components in the given container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container c)
          Calculates the minimum size for this container, taking into account the components it contains.
 java.awt.Dimension preferredLayoutSize(java.awt.Container c)
          Calculates the preferred size for this container, taking into account the components it contains.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Fired after a Bean's property has changed.
 void removeLayoutComponent(java.awt.Component c)
          Removes the specified component from the layout group.
(package private)  void setColors(java.awt.Color c, java.awt.Color h, java.awt.Color s)
           
protected  void showSystemMenu()
           
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, 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, 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, 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, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

systemButton

GtkInternalFrameTitlePane.SystemButton systemButton

minimizeButton

GtkInternalFrameTitlePane.MinimizeButton minimizeButton

maximizeButton

GtkInternalFrameTitlePane.MaximizeButton maximizeButton

systemMenu

javax.swing.JPopupMenu systemMenu

title

GtkInternalFrameTitlePane.Title title

iFrame

javax.swing.JInternalFrame iFrame

color

java.awt.Color color

highlight

java.awt.Color highlight

shadow

java.awt.Color shadow

defaultTitleFont

static final java.awt.Font defaultTitleFont

BUTTON_SIZE

public static final int BUTTON_SIZE
See Also:
Constant Field Values

RESTORE_MENU_ITEM

final int RESTORE_MENU_ITEM
See Also:
Constant Field Values

MOVE_MENU_ITEM

final int MOVE_MENU_ITEM
See Also:
Constant Field Values

SIZE_MENU_ITEM

final int SIZE_MENU_ITEM
See Also:
Constant Field Values

MINIMIZE_MENU_ITEM

final int MINIMIZE_MENU_ITEM
See Also:
Constant Field Values

MAXIMIZE_MENU_ITEM

final int MAXIMIZE_MENU_ITEM
See Also:
Constant Field Values

SEPARATOR_MENU_ITEM

final int SEPARATOR_MENU_ITEM
See Also:
Constant Field Values

CLOSE_MENU_ITEM

final int CLOSE_MENU_ITEM
See Also:
Constant Field Values

buttonDimension

static java.awt.Dimension buttonDimension
Constructor Detail

GtkInternalFrameTitlePane

public GtkInternalFrameTitlePane(javax.swing.JInternalFrame f)
Method Detail

setColors

void setColors(java.awt.Color c,
               java.awt.Color h,
               java.awt.Color s)

getSystemMenu

javax.swing.JPopupMenu getSystemMenu()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Description copied from interface: java.beans.PropertyChangeListener
Fired after a Bean's property has changed.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component c)
Description copied from interface: java.awt.LayoutManager
Adds the specified component to the layout group.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component c)
Description copied from interface: java.awt.LayoutManager
Removes the specified component from the layout group.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container c)
Description copied from interface: java.awt.LayoutManager
Calculates the preferred size for this container, taking into account the components it contains.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container c)
Description copied from interface: java.awt.LayoutManager
Calculates the minimum size for this container, taking into account the components it contains.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container c)
Description copied from interface: java.awt.LayoutManager
Lays out the components in the given container.

Specified by:
layoutContainer in interface java.awt.LayoutManager

showSystemMenu

protected void showSystemMenu()

hideSystemMenu

protected void hideSystemMenu()