com.japisoft.framework.dialog
Interface DialogFooter

All Known Implementing Classes:
BasicDialogFooter

public interface DialogFooter

This is the bottom part of the dialog for showing the available actions like OK / CANCEL ...

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Method Summary
 void dialogHidden()
          Called once when the dialog is hidden
 void dialogShown()
          Called once when the dialog is shown
 void dispose()
          Freeing any inner resource
 javax.swing.JComponent getView()
           
 void invokeAction(int actionId)
          Invoke the following action.
 boolean isDialogActionSelected(int actionId)
           
 void setDialogTarget(DialogComponent dialog)
          Reset the dialog that will have this dialog footer
 void setEnabled(int actionId, boolean enabled)
          Enabled/Disabled an action
 void setModel(DialogActionModel model)
          Reset the model for the buttons
 

Method Detail

setModel

public void setModel(DialogActionModel model)
Reset the model for the buttons


getView

public javax.swing.JComponent getView()
Returns:
the footer view with the buttons

setDialogTarget

public void setDialogTarget(DialogComponent dialog)
Reset the dialog that will have this dialog footer


dialogShown

public void dialogShown()
Called once when the dialog is shown


dialogHidden

public void dialogHidden()
Called once when the dialog is hidden


isDialogActionSelected

public boolean isDialogActionSelected(int actionId)
Returns:
true if the following action is selected

setEnabled

public void setEnabled(int actionId,
                       boolean enabled)
Enabled/Disabled an action

Parameters:
actionId - a dialog action id
enabled - enabled or disable this action

invokeAction

public void invokeAction(int actionId)
Invoke the following action. A runtime exception can be thrown for an unknown actionId


dispose

public void dispose()
Freeing any inner resource