Search in sources :

Example 1 with ResourceGroupComboBox

use of com.microsoft.azure.toolkit.intellij.common.component.resourcegroup.ResourceGroupComboBox 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)

Aggregations

ValidationDebouncedTextInput (com.microsoft.azure.toolkit.intellij.common.ValidationDebouncedTextInput)1 RegionComboBox (com.microsoft.azure.toolkit.intellij.common.component.RegionComboBox)1 SubscriptionComboBox (com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox)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