Package com.l2fprod.gui.plaf.skin
Class SkinTitlePane
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.plaf.basic.BasicInternalFrameTitlePane
-
- 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
Nested Classes Modifier and Type Class Description 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 Classclass
SkinTitlePane.RestoreAction
This inner class is marked "public" due to a compiler bug.class
SkinTitlePane.ShadeAction
Description of the Classclass
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGN_TOP_LEFT
Align button relative to top left of windowstatic int
ALIGN_TOP_RIGHT
Align button relative to the top right of windowstatic int
CLOSE_ACTION
Description of the Fieldstatic int
ICON_OFFSET
protected Window
m_Window
Description of the Fieldstatic int
MAXIMIZE_ACTION
Description of the Fieldstatic int
MINIMIZE_ACTION
Description of the Fieldstatic 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
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description SkinTitlePane(Window f)
Constructor for the SkinTitlePane objectSkinTitlePane(javax.swing.JInternalFrame f)
Constructor for the SkinTitlePane object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addButton(SkinWindowButton button)
Adds a feature to the Button attribute of the SkinTitlePane objectprotected void
addSystemMenuItems(javax.swing.JMenu systemMenu)
Adds a feature to the SystemMenuItems attribute of the SkinTitlePane objectprotected java.beans.PropertyChangeListener
createActionChangeListener(javax.swing.AbstractButton b)
Description of the Methodprotected void
createActions()
Description of the Methodprotected void
createButtons()
Description of the Methodprotected java.awt.LayoutManager
createLayout()
Description of the Methodprotected java.beans.PropertyChangeListener
createPropertyChangeListener()
Description of the Methodprotected javax.swing.JMenuBar
createSystemMenuBar()
protected void
enableActions()
Description of the Methodjava.awt.Dimension
getMinimumSize()
Gets the MinimumSize attribute of the SkinTitlePane objectjava.awt.Dimension
getPreferredSize()
Gets the PreferredSize attribute of the SkinTitlePane objectWindow
getWindow()
Gets the Window attribute of the SkinTitlePane objectprotected void
installDefaults()
Same as parent class except it does not initialize the iconsprotected void
installListeners()
Overriden to register on the windowprotected void
installTitlePane()
Description of the Methodvoid
paintComponent(java.awt.Graphics g)
Description of the Methodprotected void
setButtonIcons()
Sets the ButtonIcons attribute of the SkinTitlePane objectprotected 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, 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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, getAccessibleContext, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
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 classjavax.swing.JComponent
- Returns:
- The PreferredSize value
-
getMinimumSize
public java.awt.Dimension getMinimumSize()
Gets the MinimumSize attribute of the SkinTitlePane object- Overrides:
getMinimumSize
in classjavax.swing.JComponent
- Returns:
- The MinimumSize value
-
paintComponent
public void paintComponent(java.awt.Graphics g)
Description of the Method- Overrides:
paintComponent
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
- Parameters:
g
- Description of Parameter
-
setButtonIcons
protected void setButtonIcons()
Sets the ButtonIcons attribute of the SkinTitlePane object- Overrides:
setButtonIcons
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installTitlePane
protected void installTitlePane()
Description of the Method- Overrides:
installTitlePane
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createActions
protected void createActions()
Description of the Method- Overrides:
createActions
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installListeners
protected void installListeners()
Overriden to register on the window- Overrides:
installListeners
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
uninstallListeners
protected void uninstallListeners()
Overriden to unregister on the window- Overrides:
uninstallListeners
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installDefaults
protected void installDefaults()
Same as parent class except it does not initialize the icons- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createButtons
protected void createButtons()
Description of the Method- Overrides:
createButtons
in classjavax.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 classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
- Parameters:
systemMenu
- The feature to be added to the SystemMenuItems attribute
-
createSystemMenuBar
protected javax.swing.JMenuBar createSystemMenuBar()
- Overrides:
createSystemMenuBar
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
enableActions
protected void enableActions()
Description of the Method- Overrides:
enableActions
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createPropertyChangeListener
protected java.beans.PropertyChangeListener createPropertyChangeListener()
Description of the Method- Overrides:
createPropertyChangeListener
in classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
- Returns:
- Description of the Returned Value
-
createLayout
protected java.awt.LayoutManager createLayout()
Description of the Method- Overrides:
createLayout
in classjavax.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
-
-