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
Direct Known Subclasses:
SkinWindowList

public class SkinWindow
extends com.l2fprod.gui.grieves.graphics.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.6 $, $Date: 2002/04/27 11:45:57 $
See Also:
Serialized Form

Inner Class Summary
 class SkinWindow.SkinDesktopIcon
          Description of the Class
 
Field Summary
static int ICONIFIED
          Description of the Field
static int NORMAL
          Description of the Field
 
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
 
Constructor Summary
SkinWindow()
          Constructor for the SkinWindow object
SkinWindow(java.lang.String title)
          Constructor for the SkinWindow object
 
Method Summary
 void addWindowListener(com.l2fprod.gui.event.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()
          Gets the DesktopIcon attribute of the SkinWindow object
 int getState()
          Gets the state of this frame.
 boolean isShaded()
          Gets the Shaded attribute of the SkinWindow object
 void putClientProperty(java.lang.Object key, java.lang.Object value)
          Add an arbitrary key/value "client property" to this component.
 void removeWindowListener(com.l2fprod.gui.event.SkinWindowListener l)
          Removes the specified window listener so that it no longer receives window events from this window.
 void setShaded(boolean b)
          Sets the Shaded attribute of the SkinWindow object
 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
 
Methods inherited from class java.awt.Window
addNotify, addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, postEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFont, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
Description of the Field

ICONIFIED

public static final int ICONIFIED
Description of the Field
Constructor Detail

SkinWindow

public SkinWindow()
Constructor for the SkinWindow object

SkinWindow

public SkinWindow(java.lang.String title)
Constructor for the SkinWindow object
Parameters:
title - Description of Parameter
Method Detail

setShaded

public void setShaded(boolean b)
Sets the Shaded attribute of the SkinWindow object
Parameters:
b - The new Shaded value

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.

getDesktopIcon

public SkinWindow.SkinDesktopIcon getDesktopIcon()
Gets the DesktopIcon attribute of the SkinWindow object
Returns:
The DesktopIcon value

isShaded

public boolean isShaded()
Gets the Shaded attribute of the SkinWindow object
Returns:
The Shaded value

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.
Parameters:
key - Description of Parameter
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.

Parameters:
key - Description of Parameter
value - Description of Parameter
See Also:
getClientProperty(java.lang.Object), Component.addPropertyChangeListener(java.beans.PropertyChangeListener)

addWindowListener

public void addWindowListener(com.l2fprod.gui.event.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(com.l2fprod.gui.event.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


Copyright © 2000-2002 L2FProd.com. All Rights Reserved.