Search in sources :

Example 1 with EntityModelCheckBoxWidget

use of org.ovirt.engine.ui.common.widget.EntityModelCheckBoxWidget in project ovirt-engine by oVirt.

the class AbstractVmRemoveConfimationPopup method addItemText.

@SuppressWarnings("unchecked")
@Override
protected void addItemText(Object item) {
    Entry<Guid, EntityModel<Boolean>> entry = (Entry<Guid, EntityModel<Boolean>>) item;
    EntityModelCheckBoxWidget cb = new EntityModelCheckBoxWidget(Align.RIGHT, "- " + entry.getValue().getMessage(), // $NON-NLS-1$
    entry.getValue().getTitle());
    cb.edit(entry.getValue());
    itemColumn.add(cb);
}
Also used : Entry(java.util.Map.Entry) EntityModelCheckBoxWidget(org.ovirt.engine.ui.common.widget.EntityModelCheckBoxWidget) EntityModel(org.ovirt.engine.ui.uicommonweb.models.EntityModel) Guid(org.ovirt.engine.core.compat.Guid)

Aggregations

Entry (java.util.Map.Entry)1 Guid (org.ovirt.engine.core.compat.Guid)1 EntityModelCheckBoxWidget (org.ovirt.engine.ui.common.widget.EntityModelCheckBoxWidget)1 EntityModel (org.ovirt.engine.ui.uicommonweb.models.EntityModel)1