com.alee.utils.swing
Class AbstractScreenLayout<W extends java.awt.Window,C>

java.lang.Object
  extended by com.alee.utils.swing.AbstractScreenLayout<W,C>
All Implemented Interfaces:
ScreenLayout<W,C>
Direct Known Subclasses:
NotificationsScreenLayout

public abstract class AbstractScreenLayout<W extends java.awt.Window,C>
extends java.lang.Object
implements ScreenLayout<W,C>

Author:
Mikle Garin

Field Summary
protected  java.util.Map<W,C> constraints
          Windows constraints.
protected  java.lang.Object lock
          Constraints lock.
protected  java.util.List<W> windows
          Windows added into this screen layout.
 
Constructor Summary
AbstractScreenLayout()
           
 
Method Summary
 void addWindow(W window)
          Called when window added into this layout.
 void addWindow(W window, C constraints)
          Called when window added into this layout.
 void removeWindow(W window)
          Called when window removed from this layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alee.utils.swing.ScreenLayout
layoutScreen
 

Field Detail

windows

protected final java.util.List<W extends java.awt.Window> windows
Windows added into this screen layout.


constraints

protected final java.util.Map<W extends java.awt.Window,C> constraints
Windows constraints.


lock

protected final java.lang.Object lock
Constraints lock.

Constructor Detail

AbstractScreenLayout

public AbstractScreenLayout()
Method Detail

addWindow

public void addWindow(W window)
Called when window added into this layout.

Parameters:
window - added window

addWindow

public void addWindow(W window,
                      C constraints)
Called when window added into this layout.

Specified by:
addWindow in interface ScreenLayout<W extends java.awt.Window,C>
Parameters:
window - added window
constraints - component constraints

removeWindow

public void removeWindow(W window)
Called when window removed from this layout.

Specified by:
removeWindow in interface ScreenLayout<W extends java.awt.Window,C>
Parameters:
window - removed window