SkinLF
Version 1.1

com.l2fprod.gui
Class SkinWindow

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--javax.swing.JWindow
                          |
                          +--com.l2fprod.gui.grieves.graphics.JExternalFrame
                                |
                                +--com.l2fprod.gui.SkinWindow
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
Direct Known Subclasses:
SkinPreviewWindow, SkinWindowList

public class SkinWindow
extends JExternalFrame

Skin Window.
By extending javax.swing.JWindow, SkinWindow looks like JInternalFrame when using Skin Look And Feel.



Created on 15/04/2000 by Frederic Lavigne, fred@L2FProd.com

Version:
$Revision: 1.4 $, $Date: 2001/06/10 18:27:38 $
Author:
$Author: l2fprod $
See Also:
Serialized Form

Nested Class Summary
 class SkinWindow.SkinDesktopIcon
           
 
Field Summary
static int ICONIFIED
           
static int NORMAL
           
 
Fields inherited from class com.l2fprod.gui.grieves.graphics.JExternalFrame
SCREEN_HEIGHT, SCREEN_WIDTH
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SkinWindow()
           
SkinWindow(java.lang.String title)
           
 
Method Summary
 void addWindowListener(SkinWindowListener l)
          Adds the specified window listener to receive window events from this window.
 java.lang.Object getClientProperty(java.lang.Object key)
          Returns the value of the property with the specified key.
 SkinWindow.SkinDesktopIcon getDesktopIcon()
           
 int getState()
          Gets the state of this frame.
 boolean isShaded()
           
 void putClientProperty(java.lang.Object key, java.lang.Object value)
          Add an arbitrary key/value "client property" to this component.
 void removeWindowListener(SkinWindowListener l)
          Removes the specified window listener so that it no longer receives window events from this window.
 void setShaded(boolean b)
           
 void setState(int state)
          Sets the state of this frame.
 
Methods inherited from class com.l2fprod.gui.grieves.graphics.JExternalFrame
getContentPane, getDefaultCloseOperation, getFrameIcon, getJMenuBar, getTitle, isClosable, isClosed, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isSelected, pack, setBounds, setClosable, setClosed, setDefaultCloseOperation, setFrameIcon, setIcon, setIconifiable, setJMenuBar, setMaximizable, setMaximum, setResizable, setSelected, setTitle, setVisible
 
Methods inherited from class javax.swing.JWindow
getAccessibleContext, getGlassPane, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, update
 
Methods inherited from class java.awt.Window
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

ICONIFIED

public static final int ICONIFIED
See Also:
Constant Field Values
Constructor Detail

SkinWindow

public SkinWindow()

SkinWindow

public SkinWindow(java.lang.String title)
Method Detail

getDesktopIcon

public SkinWindow.SkinDesktopIcon getDesktopIcon()

isShaded

public boolean isShaded()

setShaded

public void setShaded(boolean b)

setState

public void setState(int state)
Sets the state of this frame.

Parameters:
state - SkinWindow.ICONIFIED if this frame is in iconic state; SkinWindow.NORMAL if this frame is in normal state.

getState

public int getState()
Gets the state of this frame.

Returns:
Frame.ICONIFIED if frame in iconic state; Frame.NORMAL if frame is in normal state.

getClientProperty

public final java.lang.Object getClientProperty(java.lang.Object key)
Returns the value of the property with the specified key. Only properties added with putClientProperty will return a non-null value.

Returns:
the value of this property or null
See Also:
putClientProperty(java.lang.Object, java.lang.Object)

putClientProperty

public final void putClientProperty(java.lang.Object key,
                                    java.lang.Object value)
Add an arbitrary key/value "client property" to this component.

The get/putClientProperty methods provide access to a small per-instance hashtable. Callers can use get/putClientProperty to annotate components that were created by another module, e.g. a layout manager might store per child constraints this way. For example:

 componentA.putClientProperty("to the left of", componentB);
 

If value is null this method will remove the property. Changes to client properties are reported with PropertyChange events. The name of the property (for the sake of PropertyChange events) is key.toString().

The clientProperty dictionary is not intended to support large scale extensions to JComponent nor should be it considered an alternative to subclassing when designing a new component.

See Also:
getClientProperty(java.lang.Object), Window.addPropertyChangeListener(java.beans.PropertyChangeListener)

addWindowListener

public void addWindowListener(SkinWindowListener l)
Adds the specified window listener to receive window events from this window. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the window listener

removeWindowListener

public void removeWindowListener(SkinWindowListener l)
Removes the specified window listener so that it no longer receives window events from this window. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the window listener

SkinLF
Version 1.1

www.L2FProd.com
© 2000-2001 L2FProd.com