Search in sources :

Example 1 with RegionComboBox

use of com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox in project azure-tools-for-java by Microsoft.

the class ApplicationInsightsNewDialog method createUIComponents.

private void createUIComponents() {
    this.comboSub = new SubscriptionComboBox();
    this.comboReg = new RegionComboBox();
}
Also used : SubscriptionComboBox(com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox) RegionComboBox(com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox)

Example 2 with RegionComboBox

use of com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox in project azure-tools-for-java by Microsoft.

the class CreateRedisCacheForm method createUIComponents.

private void createUIComponents() {
    this.cbSubs = new SubscriptionComboBox();
    this.cbLocations = new RegionComboBox();
}
Also used : SubscriptionComboBox(com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox) RegionComboBox(com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox)

Example 3 with RegionComboBox

use of com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox in project azure-tools-for-java by Microsoft.

the class RedisCreationDialog method createUIComponents.

private void createUIComponents() {
    this.subscriptionComboBox = new SubscriptionComboBox();
    this.resourceGroupComboBox = new ResourceGroupComboBox();
    this.regionComboBox = new RegionComboBox() {

        protected List<? extends Region> loadItems() {
            if (Objects.nonNull(this.subscription)) {
                return Azure.az(AzureRedis.class).listSupportedRegions(subscription.getId());
            }
            return Collections.emptyList();
        }
    };
    this.redisNameTextField = new ValidationDebouncedTextInput();
    this.pricingComboBox = new AzureComboBoxSimple<>(PricingTier::values);
}
Also used : ResourceGroupComboBox(com.microsoft.azure.toolkit.intellij.common.component.resourcegroup.ResourceGroupComboBox) SubscriptionComboBox(com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox) Region(com.microsoft.azure.toolkit.lib.common.model.Region) List(java.util.List) RegionComboBox(com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox) ValidationDebouncedTextInput(com.microsoft.azure.toolkit.intellij.common.ValidationDebouncedTextInput)

Example 4 with RegionComboBox

use of com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox in project azure-tools-for-java by Microsoft.

the class CreateDeploymentForm method createUIComponents.

private void createUIComponents() {
    this.subscriptionCb = new SubscriptionComboBox();
    this.regionCb = new RegionComboBox();
}
Also used : SubscriptionComboBox(com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox) RegionComboBox(com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox)

Aggregations

RegionComboBox (com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox)4 SubscriptionComboBox (com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox)4 ValidationDebouncedTextInput (com.microsoft.azure.toolkit.intellij.common.ValidationDebouncedTextInput)1 ResourceGroupComboBox (com.microsoft.azure.toolkit.intellij.common.component.resourcegroup.ResourceGroupComboBox)1 Region (com.microsoft.azure.toolkit.lib.common.model.Region)1 List (java.util.List)1