com.notuvy.gui
Class GenericWindow

java.lang.Object
  extended by com.notuvy.gui.GenericWindow
All Implemented Interfaces:
PersistentLocatable
Direct Known Subclasses:
GenericDialog, GenericFrame

public abstract class GenericWindow
extends Object
implements PersistentLocatable

An abstract framework for creating a GUI window (either frame or dialog) for an application. User: murali Date: Nov 15, 2010 Time: 12:36:40 PM


Field Summary
protected  WindowLocation fWindowLocation
           
 
Constructor Summary
GenericWindow(WindowLocation pWindowLocation)
           
 
Method Summary
protected  boolean allowWindowClose()
          Subclasses can override this method to intercept the window closing event and check whether the window close should actually be allowed.
 void attemptClose()
           
protected abstract  void buildUI(Container pContainer)
           
protected abstract  Container getContentPane()
           
protected  WindowLocation getWindowLocation()
           
abstract  void handleClose()
           
protected abstract  void initializeUIComponents()
           
protected  boolean isInitialized()
           
 void launch()
           
protected  void setInitialized(boolean pInitialized)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.notuvy.gui.PersistentLocatable
giveLocatableWindow, giveWindowName
 

Field Detail

fWindowLocation

protected final WindowLocation fWindowLocation
Constructor Detail

GenericWindow

public GenericWindow(WindowLocation pWindowLocation)
Method Detail

isInitialized

protected boolean isInitialized()

getWindowLocation

protected WindowLocation getWindowLocation()

setInitialized

protected void setInitialized(boolean pInitialized)

launch

public void launch()

attemptClose

public void attemptClose()

allowWindowClose

protected boolean allowWindowClose()
Subclasses can override this method to intercept the window closing event and check whether the window close should actually be allowed.

Returns:
false if the window close should be rejected, true to let it close.

handleClose

public abstract void handleClose()

initializeUIComponents

protected abstract void initializeUIComponents()

buildUI

protected abstract void buildUI(Container pContainer)

getContentPane

protected abstract Container getContentPane()


Copyright © 2013. All Rights Reserved.