Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action
In directory sc8-pr-cvs1:/tmp/cvs-serv28248/calque/action
Modified Files:
EbliPaletteAction.java
Log Message:
Correction bogue bgraphe
Ajout support graphe ( suivi souris)
Index: EbliPaletteAction.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/EbliPaletteAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EbliPaletteAction.java 11 Dec 2003 12:41:52 -0000 1.3
--- EbliPaletteAction.java 19 Dec 2003 12:06:41 -0000 1.4
***************
*** 23,26 ****
--- 23,28 ----
import javax.swing.JComponent;
import javax.swing.JInternalFrame;
+ import javax.swing.SwingUtilities;
+
import com.memoire.bu.BuButton;
import com.memoire.bu.BuDesktop;
***************
*** 33,37 ****
extends EbliChangeStateAction
implements VetoableChangeListener {
! private BuPalette window_;
public EbliPaletteAction(
String name,
--- 35,39 ----
extends EbliChangeStateAction
implements VetoableChangeListener {
! protected BuPalette window_;
public EbliPaletteAction(
String name,
***************
*** 46,52 ****
_c.setVisible(false);
}
! /**
! * Methode appele lorsque le bouton de cette palette change d'état (visible ou non).
! */
public void setMainButtonVisible(boolean _b) {
if (_b && isSelected())
--- 48,54 ----
_c.setVisible(false);
}
! /**
! * Methode appele lorsque le bouton de cette palette change d'état (visible ou non).
! */
public void setMainButtonVisible(boolean _b) {
if (_b && isSelected())
***************
*** 65,70 ****
}
}
!
! public JComponent getPaletteContent(){
return window_.getContent();
}
--- 67,72 ----
}
}
!
! public JComponent getPaletteContent() {
return window_.getContent();
}
***************
*** 100,107 ****
return window_.getPreferredSize();
}
!
! public void updateBeforeShow(){
!
! }
private void showWindow() {
if (loc_ == null) {
--- 102,107 ----
return window_.getPreferredSize();
}
!
! public void updateBeforeShow() {}
private void showWindow() {
if (loc_ == null) {
***************
*** 127,130 ****
--- 127,132 ----
}
private void hideWindow() {
+ if (!window_.isVisible())
+ return;
loc_= window_.getLocation();
window_.setVisible(false);
***************
*** 132,136 ****
window_.revalidate();
if (desktop_ != null)
! desktop_.removeInternalFrame(window_);
}
/**
--- 134,146 ----
window_.revalidate();
if (desktop_ != null)
! if (SwingUtilities.isEventDispatchThread())
! desktop_.removeInternalFrame(window_);
! else {
! SwingUtilities.invokeLater(new Runnable() {
! public void run() {
! desktop_.removeInternalFrame(window_);
! }
! });
! }
}
/**
|