当前位置: 首页>>代码示例>>Java>>正文


Java GuiUtils.enableChildren方法代码示例

本文整理汇总了Java中com.intellij.ui.GuiUtils.enableChildren方法的典型用法代码示例。如果您正苦于以下问题:Java GuiUtils.enableChildren方法的具体用法?Java GuiUtils.enableChildren怎么用?Java GuiUtils.enableChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ui.GuiUtils的用法示例。


在下文中一共展示了GuiUtils.enableChildren方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: contextItemSourceChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void contextItemSourceChanged() {
    final boolean editorAsSource = isContextItemFromEditorEnabled();
    if (isContextItemEnabled()) {
        GuiUtils.enableChildren(contextItemEditorContent, editorAsSource);
        GuiUtils.enableChildren(contextItemPathField, ! editorAsSource);
    }
    contextItemEditorContent.invalidate();
    contextItemPathField.invalidate();
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:10,代码来源:ContextItemPanel.java

示例2: enableChildren

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
protected final void enableChildren(JComponent container, boolean enabled) {
    final Set<JComponent> excluded = new HashSet<JComponent>();
    GuiUtils.iterateChildren(container, new Consumer<Component>() {
        public void consume(Component component) {
            if ((component instanceof JComponent) && (((JComponent) component).getClientProperty(ROOT) != null)) {
                excluded.add((JComponent) component);
            }
        }
    });
    excluded.remove(container);
    GuiUtils.enableChildren(container, enabled, excluded.toArray(new JComponent[excluded.size()]));
}
 
开发者ID:consulo,项目名称:consulo-javaee,代码行数:13,代码来源:JavaeeBaseEditor.java

示例3: enabledChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enabledChanged() {
  final boolean pathEnabled = isPathEnabled();
  GuiUtils.enableChildren(myPathField, pathEnabled);
  myFieldWithHistory.invalidate(); //need to revalidate inner component
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AlternativeJREPanel.java

示例4: useUnscramblerChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void useUnscramblerChanged() {
  boolean selected = myUseUnscrambler.isSelected();
  GuiUtils.enableChildren(myUnscramblePanel, selected, myUseUnscrambler);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:UnscrambleDialog.java

示例5: updateAfterBreakpointHitPanel

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void updateAfterBreakpointHitPanel() {
  boolean enable = myMasterBreakpointChooser.getSelectedBreakpoint() != null;
  GuiUtils.enableChildren(enable, myAfterBreakpointHitPanel);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XMasterBreakpointPanel.java

示例6: enableCachePanel

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enableCachePanel() {
  GuiUtils.enableChildren(myCacheSettings, myUpdateCheckBox.isSelected());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TaskConfigurable.java

示例7: enableTimeTrackingPanel

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enableTimeTrackingPanel() {
  GuiUtils.enableChildren(myTimeTrackingSettings, myEnableTimeTrackingCheckBox.isSelected());
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:TimeTrackingConfigurable.java

示例8: contextItemEnabledChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void contextItemEnabledChanged() {
    final boolean pathEnabled = isContextItemEnabled();
    GuiUtils.enableChildren(contextItemOptionsPanel, pathEnabled);
    contextItemSourceChanged();
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:6,代码来源:ContextItemPanel.java

示例9: enabledChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enabledChanged() {
    final boolean pathEnabled = isPathEnabled();
    GuiUtils.enableChildren(myPathField, pathEnabled);
    myFieldWithHistory.invalidate(); //need to revalidate inner component
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:6,代码来源:AlternativeJREPanel.java

示例10: useUnscramblerChanged

import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void useUnscramblerChanged()
{
	boolean selected = myUseUnscrambler.isSelected();
	GuiUtils.enableChildren(myUnscramblePanel, selected, myUseUnscrambler);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:6,代码来源:UnscrambleDialog.java


注:本文中的com.intellij.ui.GuiUtils.enableChildren方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。