org.perfectjpattern.core.behavioral.chainofresponsibility
Class AbstractWidget

java.lang.Object
  extended by org.perfectjpattern.core.behavioral.chainofresponsibility.AbstractWidget
All Implemented Interfaces:
IHelpAware, IPrintAware
Direct Known Subclasses:
Button, Dialog

public abstract class AbstractWidget
extends Object
implements IHelpAware, IPrintAware

Abstract base definition of a AbstractWidget. Adapts or maps the inner Handler implementation into abstract methods that can be overridden by subclasses.

Version:
$Revision: 1.0 $Date: Apr 19, 2008 12:25:59 PM $
Author:
Giovanni Azua
 

Constructor Summary
AbstractWidget()
           
 
Method Summary
protected abstract  boolean canHandleHelp()
           
protected abstract  boolean canHandlePrint()
           
 IParameterlessHandler getHelpHandler()
          
 IParameterlessHandler getPrintHandler()
          
protected abstract  void handleHelp()
           
protected abstract  void handlePrint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWidget

public AbstractWidget()
Method Detail

getHelpHandler

public IParameterlessHandler getHelpHandler()

Specified by:
getHelpHandler in interface IHelpAware

getPrintHandler

public IParameterlessHandler getPrintHandler()

Specified by:
getPrintHandler in interface IPrintAware

canHandleHelp

protected abstract boolean canHandleHelp()

handleHelp

protected abstract void handleHelp()

canHandlePrint

protected abstract boolean canHandlePrint()

handlePrint

protected abstract void handlePrint()


Copyright © 2007-2009. All Rights Reserved.