1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| public ListeNiveauMaturitePanel()
{
this.setIconStyle("icon-niveauMat");
this.setHeading("Liste des niveaux de maturité");
this.setResizable(true);
this.setMaximizable(true);
this.setMinimizable(true);
this.setShadow(true);
ToolBar tb = new ToolBar();
TextToolItem tiAjout = new TextToolItem ();
tiAjout.setIconStyle("icon-add");
tiAjout.setText("Ajouter");
tiAjout.addSelectionListener(new SelectionListener<ComponentEvent>()
{
public void componentSelected(ComponentEvent ce)
{
MessageBox.alert("Alert", " Ajouter ", null);
};
});
tb.add(tiAjout);//Ajout
TextToolItem tiModification = new TextToolItem ();
tiModification.setIconStyle("icon-mod");
tiModification.setText("Modifier");
tiModification.addSelectionListener(new SelectionListener<ComponentEvent>()
{
public void componentSelected(ComponentEvent ce)
{
MessageBox.alert("Alert", " Modifier ", null);
};
});
tb.add(tiModification);//Modification
TextToolItem tiSuppression = new TextToolItem ();
tiSuppression.setIconStyle("icon-supp");
tiSuppression.setText("Supprimer");
tiSuppression.addSelectionListener(new SelectionListener<ComponentEvent>()
{
public void componentSelected(ComponentEvent ce)
{
MessageBox.alert("Alert", " Supprimer ", null);
};
});
tb.add(tiSuppression);//Suppression
this.setTopComponent(tb);
this.setVisible(true);
} |
Partager