Search in sources :

Example 1 with Navigation

use of com.android.resources.Navigation in project android by JetBrains.

the class ConfigureDeviceOptionsStep method createUIComponents.

private void createUIComponents() {
    myNavigationControlsCombo = new ComboBox(new EnumComboBoxModel<>(Navigation.class)) {

        @Override
        public ListCellRenderer getRenderer() {
            return new ColoredListCellRenderer() {

                @Override
                protected void customizeCellRenderer(@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) {
                    append(((Navigation) value).getShortDisplayValue());
                }
            };
        }
    };
    myHardwareSkinHelpLabel = new HyperlinkLabel("How do I create a custom hardware skin?");
    myHardwareSkinHelpLabel.setHyperlinkTarget(AvdWizardUtils.CREATE_SKIN_HELP_LINK);
    myCustomSkinPath = new SkinChooser(null, false);
    myDeviceDefinitionPreview = new DeviceDefinitionPreview(getModel().getDeviceData());
}
Also used : Navigation(com.android.resources.Navigation) ComboBox(com.intellij.openapi.ui.ComboBox)

Aggregations

Navigation (com.android.resources.Navigation)1 ComboBox (com.intellij.openapi.ui.ComboBox)1