org.japura.controller
Interface ModalPanelFactory

All Known Implementing Classes:
DefaultModalPanelFactory

public interface ModalPanelFactory

Build standards panels for modal.

Copyright (C) 2009, 2010 Carlos Eduardo Leite de Andrade

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/

For more information, contact: www.japura.org

Author:
Carlos Eduardo Leite de Andrade

Method Summary
 javax.swing.JComponent buildConfirmationPanel(Controller<?> controller, java.lang.String title, java.lang.String confirmation, ModalAction confirmAction, ModalAction cancelAction)
          Build a confirmation message modal.
 javax.swing.JComponent buildErrorPanel(Controller<?> controller, java.lang.String title, java.lang.String error)
          Build a error message modal.
 javax.swing.JComponent buildInformationPanel(Controller<?> controller, java.lang.String title, java.lang.String info)
          Build a information message modal.
 javax.swing.JComponent buildQuestionPanel(Controller<?> controller, java.lang.String title, java.lang.String question, ModalAction yesAction, ModalAction noAction)
          Build a question message modal.
 javax.swing.JComponent buildWarningPanel(Controller<?> controller, java.lang.String title, java.lang.String warning)
          Build a warning message modal.
 

Method Detail

buildErrorPanel

javax.swing.JComponent buildErrorPanel(Controller<?> controller,
                                       java.lang.String title,
                                       java.lang.String error)
Build a error message modal.

Parameters:
controller - the controller
title - title for the modal
error - the error

buildWarningPanel

javax.swing.JComponent buildWarningPanel(Controller<?> controller,
                                         java.lang.String title,
                                         java.lang.String warning)
Build a warning message modal.

Parameters:
controller - the controller
title - title for the modal
warning - the warning

buildInformationPanel

javax.swing.JComponent buildInformationPanel(Controller<?> controller,
                                             java.lang.String title,
                                             java.lang.String info)
Build a information message modal.

Parameters:
controller - the controller
title - title for the modal
info - the information

buildQuestionPanel

javax.swing.JComponent buildQuestionPanel(Controller<?> controller,
                                          java.lang.String title,
                                          java.lang.String question,
                                          ModalAction yesAction,
                                          ModalAction noAction)
Build a question message modal.

Parameters:
controller - the controller
title - title for the modal
question - the question
yesAction - action for the confirmation button
noAction - action for the cancel button

buildConfirmationPanel

javax.swing.JComponent buildConfirmationPanel(Controller<?> controller,
                                              java.lang.String title,
                                              java.lang.String confirmation,
                                              ModalAction confirmAction,
                                              ModalAction cancelAction)
Build a confirmation message modal.

Parameters:
controller - the controller
title - title for the modal
confirmation - the confirmation
confirmAction - action for the confirmation button
cancelAction - action for the cancel button