facets.core.app
Class DialogActionDefaults

java.lang.Object
  extended by facets.core.app.DialogSurface.DialogActions
      extended by facets.core.app.DialogActionDefaults

public abstract class DialogActionDefaults
extends DialogSurface.DialogActions

Convenience extension of DialogSurface.DialogActions.

DialogActionDefaults extends its superclass by defining a range of STriggers representing commonly required top-level dialog actions; class methods return instances defining convenience combinations.


Constructor Summary
DialogActionDefaults()
           
 
Method Summary
static DialogSurface.DialogActions newApplyOkCancel()
           
static DialogSurface.DialogActions newCancel()
           
static DialogSurface.DialogActions newOk()
           
static DialogSurface.DialogActions newOkCancel()
           
protected  STrigger newTrigger(int type)
          Returns triggers for various actions.
 
Methods inherited from class facets.core.app.DialogSurface.DialogActions
attachSurface, newTriggers, surface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogActionDefaults

public DialogActionDefaults()
Method Detail

newOkCancel

public static final DialogSurface.DialogActions newOkCancel()

newCancel

public static final DialogSurface.DialogActions newCancel()

newOk

public static final DialogSurface.DialogActions newOk()

newApplyOkCancel

public static final DialogSurface.DialogActions newApplyOkCancel()

newTrigger

protected STrigger newTrigger(int type)
Returns triggers for various actions.

The method can be overridden to implement further action types.

Parameters:
type - constant determining the action to be performed