Search in sources :

Example 1 with InfoIcon

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

the class AbstractVmPopupWidget method initPoolSpecificWidgets.

protected void initPoolSpecificWidgets() {
    createNumOfDesktopEditors();
    newPoolPrestartedVmsIcon = new InfoIcon(templates.italicText(messages.prestartedHelp()));
    editPoolPrestartedVmsIcon = new InfoIcon(templates.italicText(messages.prestartedHelp()));
    poolNameIcon = new InfoIcon(templates.italicText(messages.poolNameHelp()));
    newPoolMaxAssignedVmsPerUserIcon = new InfoIcon(templates.italicText(messages.maxAssignedVmsPerUserHelp()));
    editPoolMaxAssignedVmsPerUserIcon = new InfoIcon(templates.italicText(messages.maxAssignedVmsPerUserHelp()));
    // $NON-NLS-1$
    numaInfoIcon = new InfoIcon(SafeHtmlUtils.fromTrustedString(""));
    isRngEnabledInfoIcon = new InfoIcon(SafeHtmlUtils.fromTrustedString(constants.rngDevExplanation()));
}
Also used : InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon)

Example 2 with InfoIcon

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

the class RemoveBrickPopupView method initEditors.

private void initEditors() {
    migrateEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    migrateInfoIcon = new InfoIcon(templates.italicText(constants.removeBricksMigrateDataInfo()));
}
Also used : InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon) EntityModelCheckBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)

Example 3 with InfoIcon

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

the class ClusterPopupView method initInfoIcons.

private void initInfoIcons() {
    memoryOptimizationInfo = new InfoIcon(templates.italicText(constants.clusterPopupMemoryOptimizationInfo()));
    cpuThreadsInfo = new InfoIcon(templates.italicText(constants.clusterPopupCpuThreadsInfo()));
    schedulerOptimizationInfoIcon = new InfoIcon(SafeHtmlUtils.EMPTY_SAFE_HTML);
    allowOverbookingInfoIcon = new InfoIcon(SafeHtmlUtils.EMPTY_SAFE_HTML);
    fencingEnabledInfo = new InfoIcon(templates.italicText(constants.fencingEnabledInfo()));
    skipFencingIfSDActiveInfo = new InfoIcon(templates.italicText(constants.skipFencingIfSDActiveInfo()));
    skipFencingIfConnectivityBrokenInfo = new InfoIcon(templates.italicText(constants.skipFencingWhenConnectivityBrokenInfo()));
    skipFencingIfGlusterBricksUpInfo = new InfoIcon(templates.italicText(constants.skipFencingIfGlusterBricksUpInfo()));
    skipFencingIfGlusterBricksUpInfo.setVisible(false);
    skipFencingIfGlusterQuorumNotMetInfo = new InfoIcon(templates.italicText(constants.skipFencingIfGlusterQuorumNotMetInfo()));
    skipFencingIfGlusterQuorumNotMetInfo.setVisible(false);
    // $NON-NLS-1$
    isVirtioScsiEnabledInfoIcon = new InfoIcon(templates.italicText(""));
}
Also used : InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon)

Example 4 with InfoIcon

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

the class GeoRepActionConfirmPopUpView method initEditors.

private void initEditors() {
    forceEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    geoRepForceHelpIcon = new InfoIcon(templates.italicText(constants.notAvailableLabel()));
}
Also used : InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon) EntityModelCheckBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)

Example 5 with InfoIcon

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

the class HostConfigureLocalStoragePopupView method initialize.

private void initialize() {
    dataCenterVersionEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<Version>() {

        @Override
        public String renderNullSafe(Version object) {
            return object.getValue();
        }
    });
    clusterCpuTypeEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<ServerCpu>() {

        @Override
        public String renderNullSafe(ServerCpu object) {
            return object.getCpuName();
        }
    });
    // Optimization options.
    // $NON-NLS-1$
    optimizationNoneEditor = new EntityModelRadioButtonEditor("1");
    // $NON-NLS-1$
    optimizationForServerEditor = new EntityModelRadioButtonEditor("1");
    // $NON-NLS-1$
    optimizationForDesktopEditor = new EntityModelRadioButtonEditor("1");
    // $NON-NLS-1$
    optimizationCustomEditor = new EntityModelRadioButtonEditor("1");
    optimizationCustomEditor.setVisible(false);
    countThreadsAsCoresEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    memoryOptimizationInfo = new InfoIcon(templates.italicText(constants.clusterPopupMemoryOptimizationInfo()));
    memoryOptimizationInfo.setTooltipMaxWidth(TooltipWidth.W520);
    cpuThreadsInfo = new InfoIcon(templates.italicText(constants.clusterPopupCpuThreadsInfo()));
    cpuThreadsInfo.setTooltipMaxWidth(TooltipWidth.W620);
}
Also used : Version(org.ovirt.engine.core.compat.Version) InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon) NullSafeRenderer(org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer) ServerCpu(org.ovirt.engine.core.common.businessentities.ServerCpu) EntityModelCheckBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor) EntityModelRadioButtonEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor)

Aggregations

InfoIcon (org.ovirt.engine.ui.common.widget.dialog.InfoIcon)11 EntityModelCheckBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)5 EntityModelRadioButtonEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor)2 EnumRenderer (org.ovirt.engine.ui.common.widget.renderer.EnumRenderer)2 NameRenderer (org.ovirt.engine.ui.common.widget.renderer.NameRenderer)2 Context (com.google.gwt.cell.client.Cell.Context)1 GWT (com.google.gwt.core.client.GWT)1 EventBus (com.google.gwt.event.shared.EventBus)1 SafeHtml (com.google.gwt.safehtml.shared.SafeHtml)1 SafeHtmlBuilder (com.google.gwt.safehtml.shared.SafeHtmlBuilder)1 SafeHtmlUtils (com.google.gwt.safehtml.shared.SafeHtmlUtils)1 UiBinder (com.google.gwt.uibinder.client.UiBinder)1 UiField (com.google.gwt.uibinder.client.UiField)1 Column (com.google.gwt.user.cellview.client.Column)1 RadioButton (com.google.gwt.user.client.ui.RadioButton)1 Inject (com.google.inject.Inject)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Provider (org.ovirt.engine.core.common.businessentities.Provider)1 ServerCpu (org.ovirt.engine.core.common.businessentities.ServerCpu)1