|
From: <de...@us...> - 2003-05-19 14:21:23
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/dialog
In directory sc8-pr-cvs1:/tmp/cvs-serv25784/org/fudaa/ebli/dialog
Modified Files:
EbliSimpleDialog.java
Log Message:
Modif mineure
Index: EbliSimpleDialog.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/dialog/EbliSimpleDialog.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EbliSimpleDialog.java 1 Apr 2003 15:15:30 -0000 1.3
--- EbliSimpleDialog.java 19 May 2003 14:21:19 -0000 1.4
***************
*** 8,21 ****
*/
package org.fudaa.ebli.dialog;
! import java.awt.*;
! import java.awt.event.*;
! import javax.swing.*;
! import javax.swing.border.*;
!
! import org.fudaa.ebli.commun.EbliLib;
! import com.memoire.bu.*;
/**
--- 8,35 ----
*/
package org.fudaa.ebli.dialog;
! import java.awt.Color;
! import java.awt.Component;
! import java.awt.Dialog;
! import java.awt.FlowLayout;
! import java.awt.Frame;
! import java.awt.event.ActionEvent;
! import java.awt.event.ActionListener;
! import java.awt.event.WindowEvent;
! import java.awt.event.WindowListener;
+ import javax.swing.BorderFactory;
+ import javax.swing.JDialog;
+ import javax.swing.JOptionPane;
+ import com.memoire.bu.BuBorderLayout;
+ import com.memoire.bu.BuButton;
+ import com.memoire.bu.BuCharValidator;
+ import com.memoire.bu.BuLabel;
+ import com.memoire.bu.BuPanel;
+ import com.memoire.bu.BuStringValidator;
+ import com.memoire.bu.BuTextField;
+ import com.memoire.bu.BuValueValidator;
! import org.fudaa.ebli.commun.EbliLib;
/**
***************
*** 59,66 ****
--- 73,101 ----
response_ = JOptionPane.CANCEL_OPTION;
}
+
+
+ /**
+ * Permet d'initialiser ce dialogue a l'aide d'une chaine. Envoie une exception si non implante.
+ */
+ public void setValue(String _f)
+ {
+ throw new NoSuchMethodError("Methode non implantee");
+ }
+
+ /**
+ * Renvoie la chaine caracterisant le contenu de ce dialogue.
+ */
+ public String getValue()
+ {
+ throw new NoSuchMethodError("Methode non implantee");
+ }
+
+
+
public void setModale(boolean _modale)
{
modale_ = _modale;
}
+
public boolean valide()
{
***************
*** 148,152 ****
{
createDialog(_parent,_titre);
! dialog_.setModal(true);
return afficheDialog(_parent);
}
--- 183,187 ----
{
createDialog(_parent,_titre);
! modale_=true;
return afficheDialog(_parent);
}
***************
*** 160,166 ****
{
createDialog(_parent,_titre);
! dialog_.setModal(true);
return afficheDialog(_parent);
}
public void addEmptyBorder(int _b)
--- 195,213 ----
{
createDialog(_parent,_titre);
! modale_=true;
return afficheDialog(_parent);
}
+
+ /**
+ * Affiche le panel dans une boite de dialogue modale.
+ * @param _parent la fenetre parent
+ * @param _titre le titre de la boite de dialogue
+ */
+ public int afficheModale(Component _parent, String _titre)
+ {
+ createDialog(_titre);
+ modale_=true;
+ return afficheDialog(_parent);
+ }
public void addEmptyBorder(int _b)
|