gwt-ext : remplacer un component dans un "basic border layout"
Bonjour,
c'est encore moi ^^!
Encore une fois tout est dans le titre!:D
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
final Panel borderPanel = new Panel();
borderPanel.setLayout(new BorderLayout());
borderPanel.add(panel1, new BorderLayoutData(RegionPosition.WEST));
borderPanel.add(panel2, new BorderLayoutData(RegionPosition.CENTER));
Panel panel3 =new Panel();
Button btnIdentifier = new Button("s'identifier");
btnIdentifier.addListener(new ButtonListenerAdapter(){
public void onClick(Button button, EventObject e)
{
borderPanel.remove(panel1, true);
borderPanel.add(panel4, new BorderLayoutData(RegionPosition.WEST));
}
});
panel3.add(btnIdentifier);
borderPanel.add(panel3, new BorderLayoutData(RegionPosition.SOUTH)); |
un truc dans le genre mais j'y arrive pas!
j'ai peur que ca soit impossible!
Merci et a bientot!