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.BasicInternalFrameTitlePaneDescription of the Class- Author:
- fred
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSkinTitlePane.CloseActionThis inner class is marked "public" due to a compiler bug.classSkinTitlePane.IconifyActionThis inner class is marked "public" due to a compiler bug.classSkinTitlePane.MaximizeActionThis inner class is marked "public" due to a compiler bug.classSkinTitlePane.PropertyChangeHandlerDescription of the ClassclassSkinTitlePane.RestoreActionThis inner class is marked "public" due to a compiler bug.classSkinTitlePane.ShadeActionDescription of the ClassclassSkinTitlePane.SystemMenuBarThis inner class is marked "public" due to a compiler bug.classSkinTitlePane.TitlePaneLayoutDescription 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 intALIGN_TOP_LEFTAlign button relative to top left of windowstatic intALIGN_TOP_RIGHTAlign button relative to the top right of windowstatic intCLOSE_ACTIONDescription of the Fieldstatic intICON_OFFSETprotected Windowm_WindowDescription of the Fieldstatic intMAXIMIZE_ACTIONDescription of the Fieldstatic intMINIMIZE_ACTIONDescription of the Fieldstatic intNO_ACTIONDescription 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 voidaddButton(SkinWindowButton button)Adds a feature to the Button attribute of the SkinTitlePane objectprotected voidaddSystemMenuItems(javax.swing.JMenu systemMenu)Adds a feature to the SystemMenuItems attribute of the SkinTitlePane objectprotected java.beans.PropertyChangeListenercreateActionChangeListener(javax.swing.AbstractButton b)Description of the Methodprotected voidcreateActions()Description of the Methodprotected voidcreateButtons()Description of the Methodprotected java.awt.LayoutManagercreateLayout()Description of the Methodprotected java.beans.PropertyChangeListenercreatePropertyChangeListener()Description of the Methodprotected javax.swing.JMenuBarcreateSystemMenuBar()protected voidenableActions()Description of the Methodjava.awt.DimensiongetMinimumSize()Gets the MinimumSize attribute of the SkinTitlePane objectjava.awt.DimensiongetPreferredSize()Gets the PreferredSize attribute of the SkinTitlePane objectWindowgetWindow()Gets the Window attribute of the SkinTitlePane objectprotected voidinstallDefaults()Same as parent class except it does not initialize the iconsprotected voidinstallListeners()Overriden to register on the windowprotected voidinstallTitlePane()Description of the MethodvoidpaintComponent(java.awt.Graphics g)Description of the Methodprotected voidsetButtonIcons()Sets the ButtonIcons attribute of the SkinTitlePane objectprotected voiduninstallListeners()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:
getPreferredSizein classjavax.swing.JComponent- Returns:
- The PreferredSize value
-
getMinimumSize
public java.awt.Dimension getMinimumSize()
Gets the MinimumSize attribute of the SkinTitlePane object- Overrides:
getMinimumSizein classjavax.swing.JComponent- Returns:
- The MinimumSize value
-
paintComponent
public void paintComponent(java.awt.Graphics g)
Description of the Method- Overrides:
paintComponentin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane- Parameters:
g- Description of Parameter
-
setButtonIcons
protected void setButtonIcons()
Sets the ButtonIcons attribute of the SkinTitlePane object- Overrides:
setButtonIconsin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installTitlePane
protected void installTitlePane()
Description of the Method- Overrides:
installTitlePanein classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createActions
protected void createActions()
Description of the Method- Overrides:
createActionsin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installListeners
protected void installListeners()
Overriden to register on the window- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
uninstallListeners
protected void uninstallListeners()
Overriden to unregister on the window- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
installDefaults
protected void installDefaults()
Same as parent class except it does not initialize the icons- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createButtons
protected void createButtons()
Description of the Method- Overrides:
createButtonsin 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:
addSystemMenuItemsin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane- Parameters:
systemMenu- The feature to be added to the SystemMenuItems attribute
-
createSystemMenuBar
protected javax.swing.JMenuBar createSystemMenuBar()
- Overrides:
createSystemMenuBarin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
enableActions
protected void enableActions()
Description of the Method- Overrides:
enableActionsin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane
-
createPropertyChangeListener
protected java.beans.PropertyChangeListener createPropertyChangeListener()
Description of the Method- Overrides:
createPropertyChangeListenerin classjavax.swing.plaf.basic.BasicInternalFrameTitlePane- Returns:
- Description of the Returned Value
-
createLayout
protected java.awt.LayoutManager createLayout()
Description of the Method- Overrides:
createLayoutin 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
-
-