com.l2fprod.gui.plaf.skin
Class SkinTitlePane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.plaf.basic.BasicInternalFrameTitlePane
                  extended by com.l2fprod.gui.plaf.skin.SkinTitlePane
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class SkinTitlePane
extends javax.swing.plaf.basic.BasicInternalFrameTitlePane

Description of the Class

Author:
fred
See Also:
Serialized Form

Nested Class Summary
 class SkinTitlePane.CloseAction
          This inner class is marked "public" due to a compiler bug.
 class SkinTitlePane.IconifyAction
          This inner class is marked "public" due to a compiler bug.
 class SkinTitlePane.MaximizeAction
          This inner class is marked "public" due to a compiler bug.
 class SkinTitlePane.PropertyChangeHandler
          Description of the Class
 class SkinTitlePane.RestoreAction
          This inner class is marked "public" due to a compiler bug.
 class SkinTitlePane.ShadeAction
          Description of the Class
 class SkinTitlePane.SystemMenuBar
          This inner class is marked "public" due to a compiler bug.
 class SkinTitlePane.TitlePaneLayout
          Description of the Class
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
javax.swing.plaf.basic.BasicInternalFrameTitlePane.MoveAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ALIGN_TOP_LEFT
          Align button relative to top left of window
static int ALIGN_TOP_RIGHT
          Align button relative to the top right of window
static int CLOSE_ACTION
          Description of the Field
static int ICON_OFFSET
           
protected  Window m_Window
          Description of the Field
static int MAXIMIZE_ACTION
          Description of the Field
static int MINIMIZE_ACTION
          Description of the Field
static int NO_ACTION
          Description of the Field
 
Fields inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
CLOSE_CMD, closeAction, closeButton, closeIcon, frame, iconButton, iconIcon, ICONIFY_CMD, iconifyAction, maxButton, maxIcon, MAXIMIZE_CMD, maximizeAction, menuBar, minIcon, MOVE_CMD, moveAction, notSelectedTextColor, notSelectedTitleColor, propertyChangeListener, RESTORE_CMD, restoreAction, selectedTextColor, selectedTitleColor, SIZE_CMD, sizeAction, windowMenu
 
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.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
SkinTitlePane(javax.swing.JInternalFrame f)
          Constructor for the SkinTitlePane object
SkinTitlePane(Window f)
          Constructor for the SkinTitlePane object
 
Method Summary
protected  void addButton(SkinWindowButton button)
          Adds a feature to the Button attribute of the SkinTitlePane object
protected  void addSystemMenuItems(javax.swing.JMenu systemMenu)
          Adds a feature to the SystemMenuItems attribute of the SkinTitlePane object
protected  java.beans.PropertyChangeListener createActionChangeListener(javax.swing.AbstractButton b)
          Description of the Method
protected  void createActions()
          Description of the Method
protected  void createButtons()
          Description of the Method
protected  java.awt.LayoutManager createLayout()
          Description of the Method
protected  java.beans.PropertyChangeListener createPropertyChangeListener()
          Description of the Method
protected  javax.swing.JMenuBar createSystemMenuBar()
           
protected  void enableActions()
          Description of the Method
 java.awt.Dimension getMinimumSize()
          Gets the MinimumSize attribute of the SkinTitlePane object
 java.awt.Dimension getPreferredSize()
          Gets the PreferredSize attribute of the SkinTitlePane object
 Window getWindow()
          Gets the Window attribute of the SkinTitlePane object
protected  void installDefaults()
          Same as parent class except it does not initialize the icons
protected  void installListeners()
          Overriden to register on the window
protected  void installTitlePane()
          Description of the Method
 void paintComponent(java.awt.Graphics g)
          Description of the Method
protected  void setButtonIcons()
          Sets the ButtonIcons attribute of the SkinTitlePane object
protected  void uninstallListeners()
          Overriden to unregister on the window
 
Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
addSubComponents, assembleSystemMenu, createSystemMenu, getTitle, paintTitleBackground, postClosingEvent, showSystemMenu, uninstallDefaults
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, 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, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, 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

m_Window

protected Window m_Window
Description of the Field


ICON_OFFSET

public static final int ICON_OFFSET
See Also:
Constant Field Values

ALIGN_TOP_LEFT

public static final int ALIGN_TOP_LEFT
Align button relative to top left of window

See Also:
Constant Field Values

ALIGN_TOP_RIGHT

public static final int ALIGN_TOP_RIGHT
Align button relative to the top right of window

See Also:
Constant Field Values

CLOSE_ACTION

public static final int CLOSE_ACTION
Description of the Field

See Also:
Constant Field Values

MAXIMIZE_ACTION

public static final int MAXIMIZE_ACTION
Description of the Field

See Also:
Constant Field Values

MINIMIZE_ACTION

public static final int MINIMIZE_ACTION
Description of the Field

See Also:
Constant Field Values

NO_ACTION

public static final int NO_ACTION
Description of the Field

See Also:
Constant Field Values
Constructor Detail

SkinTitlePane

public SkinTitlePane(javax.swing.JInternalFrame f)
Constructor for the SkinTitlePane object

Parameters:
f - Description of Parameter

SkinTitlePane

public SkinTitlePane(Window f)
Constructor for the SkinTitlePane object

Parameters:
f - Description of Parameter
Method Detail

getWindow

public Window getWindow()
Gets the Window attribute of the SkinTitlePane object

Returns:
The Window value

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the PreferredSize attribute of the SkinTitlePane object

Overrides:
getPreferredSize in class javax.swing.JComponent
Returns:
The PreferredSize value

getMinimumSize

public java.awt.Dimension getMinimumSize()
Gets the MinimumSize attribute of the SkinTitlePane object

Overrides:
getMinimumSize in class javax.swing.JComponent
Returns:
The MinimumSize value

paintComponent

public void paintComponent(java.awt.Graphics g)
Description of the Method

Overrides:
paintComponent in class javax.swing.plaf.basic.BasicInternalFrameTitlePane
Parameters:
g - Description of Parameter

setButtonIcons

protected void setButtonIcons()
Sets the ButtonIcons attribute of the SkinTitlePane object

Overrides:
setButtonIcons in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

installTitlePane

protected void installTitlePane()
Description of the Method

Overrides:
installTitlePane in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

createActions

protected void createActions()
Description of the Method

Overrides:
createActions in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

installListeners

protected void installListeners()
Overriden to register on the window

Overrides:
installListeners in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

uninstallListeners

protected void uninstallListeners()
Overriden to unregister on the window

Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

installDefaults

protected void installDefaults()
Same as parent class except it does not initialize the icons

Overrides:
installDefaults in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

createButtons

protected void createButtons()
Description of the Method

Overrides:
createButtons in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

addButton

protected void addButton(SkinWindowButton button)
Adds a feature to the Button attribute of the SkinTitlePane object

Parameters:
button - The feature to be added to the Button attribute

addSystemMenuItems

protected void addSystemMenuItems(javax.swing.JMenu systemMenu)
Adds a feature to the SystemMenuItems attribute of the SkinTitlePane object

Overrides:
addSystemMenuItems in class javax.swing.plaf.basic.BasicInternalFrameTitlePane
Parameters:
systemMenu - The feature to be added to the SystemMenuItems attribute

createSystemMenuBar

protected javax.swing.JMenuBar createSystemMenuBar()
Overrides:
createSystemMenuBar in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

enableActions

protected void enableActions()
Description of the Method

Overrides:
enableActions in class javax.swing.plaf.basic.BasicInternalFrameTitlePane

createPropertyChangeListener

protected java.beans.PropertyChangeListener createPropertyChangeListener()
Description of the Method

Overrides:
createPropertyChangeListener in class javax.swing.plaf.basic.BasicInternalFrameTitlePane
Returns:
Description of the Returned Value

createLayout

protected java.awt.LayoutManager createLayout()
Description of the Method

Overrides:
createLayout in class javax.swing.plaf.basic.BasicInternalFrameTitlePane
Returns:
Description of the Returned Value

createActionChangeListener

protected java.beans.PropertyChangeListener createActionChangeListener(javax.swing.AbstractButton b)
Description of the Method

Parameters:
b - Description of Parameter
Returns:
Description of the Returned Value