org.jdesktop.swingx.util.OS.getWindowsVisualStyle()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(13.3k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中org.jdesktop.swingx.util.OS.getWindowsVisualStyle()方法的一些代码示例,展示了OS.getWindowsVisualStyle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OS.getWindowsVisualStyle()方法的具体详情如下:
包路径:org.jdesktop.swingx.util.OS
类名称:OS
方法名:getWindowsVisualStyle

OS.getWindowsVisualStyle介绍

[英]Returns the name of the current Windows visual style.

  • it looks for a property name "win.xpstyle.name" in UIManager and if not found
  • it queries the win.xpstyle.colorName desktop property ( Toolkit#getDesktopProperty(java.lang.String))
    [中]返回当前Windows视觉样式的名称。
    *它会在UIManager中查找属性名“win.xpstyle.name”,如果找不到该名称
    *它质疑胜利。xpstyle。colorName桌面属性(Toolkit#getDesktopProperty(java.lang.String))

代码示例

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

new ColorUIResource(Color.decode("#005C5C"))));
} else if (addon instanceof WindowsLookAndFeelAddons) {     
 String xpStyle = OS.getWindowsVisualStyle();
 ColorUIResource background;
 Color backgroundGradientStart;

代码示例来源:origin: org.swinglabs.swingx/swingx-core

new ColorUIResource(Color.decode("#005C5C"))));
} else if (addon instanceof WindowsLookAndFeelAddons) {     
 String xpStyle = OS.getWindowsVisualStyle();
 ColorUIResource background;
 Color backgroundGradientStart;

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

new ColorUIResource(Color.decode("#005C5C"))));
} else if (addon instanceof WindowsLookAndFeelAddons) {     
 String xpStyle = OS.getWindowsVisualStyle();
 ColorUIResource background;
 Color backgroundGradientStart;

代码示例来源:origin: org.swinglabs.swingx/swingx-all

new ColorUIResource(Color.decode("#005C5C"))));
} else if (addon instanceof WindowsLookAndFeelAddons) {     
 String xpStyle = OS.getWindowsVisualStyle();
 ColorUIResource background;
 Color backgroundGradientStart;

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

new ColorUIResource(Color.decode("#005C5C"))));
} else if (addon instanceof WindowsLookAndFeelAddons) {     
 String xpStyle = OS.getWindowsVisualStyle();
 ColorUIResource background;
 Color backgroundGradientStart;

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
  protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    if (OS.isUsingWindowsVisualStyles()) {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsStatusBarUI");
      
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE.equalsIgnoreCase(xpStyle)
          || WindowsLookAndFeelAddons.VISTA_VISUAL_STYLE.equalsIgnoreCase(xpStyle)) {
        defaults.add("StatusBar.leftImage", "resources/silver-statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/silver-statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/silver-statusbar-right.png");
      } else {
        defaults.add("StatusBar.leftImage", "resources/statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/statusbar-right.png");
      }
    } else {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsClassicStatusBarUI");
    }
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
  protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    if (OS.isUsingWindowsVisualStyles()) {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsStatusBarUI");
      
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE.equalsIgnoreCase(xpStyle)
          || WindowsLookAndFeelAddons.VISTA_VISUAL_STYLE.equalsIgnoreCase(xpStyle)) {
        defaults.add("StatusBar.leftImage", "resources/silver-statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/silver-statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/silver-statusbar-right.png");
      } else {
        defaults.add("StatusBar.leftImage", "resources/statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/statusbar-right.png");
      }
    } else {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsClassicStatusBarUI");
    }
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  
  if (OS.isUsingWindowsVisualStyles()) {
    String xpStyle = OS.getWindowsVisualStyle();
    
    if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(228, 231, 219));
    } else if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(235, 235, 236));
    } else {
      // default blue
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(224, 233, 246));
    }
    
  } else {
    defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(218, 222, 233));
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  
  if (OS.isUsingWindowsVisualStyles()) {
    String xpStyle = OS.getWindowsVisualStyle();
    
    if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(228, 231, 219));
    } else if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(235, 235, 236));
    } else {
      // default blue
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(224, 233, 246));
    }
    
  } else {
    defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(218, 222, 233));
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  
  if (OS.isUsingWindowsVisualStyles()) {
    String xpStyle = OS.getWindowsVisualStyle();
    
    if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(228, 231, 219));
    } else if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(235, 235, 236));
    } else {
      // default blue
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(224, 233, 246));
    }
    
  } else {
    defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(218, 222, 233));
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
   * {@inheritDoc}
   */
  @Override
  protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    
    if (OS.isUsingWindowsVisualStyles()) {
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
          .equalsIgnoreCase(xpStyle)) {
        defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(228, 231, 219));
      } else if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE
          .equalsIgnoreCase(xpStyle)) {
        defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(235, 235, 236));
      } else {
        // default blue
        defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(224, 233, 246));
      }
      
    } else {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(218, 222, 233));
    }
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  
  if (OS.isUsingWindowsVisualStyles()) {
    String xpStyle = OS.getWindowsVisualStyle();
    
    if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(228, 231, 219));
    } else if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE
        .equalsIgnoreCase(xpStyle)) {
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(235, 235, 236));
    } else {
      // default blue
      defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(224, 233, 246));
    }
    
  } else {
    defaults.add("UIColorHighlighter.stripingBackground", new ColorUIResource(218, 222, 233));
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
  protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    if (OS.isUsingWindowsVisualStyles()) {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsStatusBarUI");
      
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE.equalsIgnoreCase(xpStyle)
          || WindowsLookAndFeelAddons.VISTA_VISUAL_STYLE.equalsIgnoreCase(xpStyle)) {
        defaults.add("StatusBar.leftImage", "resources/silver-statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/silver-statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/silver-statusbar-right.png");
      } else {
        defaults.add("StatusBar.leftImage", "resources/statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/statusbar-right.png");
      }
    } else {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsClassicStatusBarUI");
    }
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
  protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    if (OS.isUsingWindowsVisualStyles()) {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsStatusBarUI");
      
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE.equalsIgnoreCase(xpStyle)
          || WindowsLookAndFeelAddons.VISTA_VISUAL_STYLE.equalsIgnoreCase(xpStyle)) {
        defaults.add("StatusBar.leftImage", "resources/silver-statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/silver-statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/silver-statusbar-right.png");
      } else {
        defaults.add("StatusBar.leftImage", "resources/statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/statusbar-right.png");
      }
    } else {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsClassicStatusBarUI");
    }
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addWindowsDefaults(addon, defaults);
    if (OS.isUsingWindowsVisualStyles()) {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsStatusBarUI");
      
      String xpStyle = OS.getWindowsVisualStyle();
      
      if (WindowsLookAndFeelAddons.SILVER_VISUAL_STYLE.equalsIgnoreCase(xpStyle)) {
        defaults.add("StatusBar.leftImage", "resources/silver-statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/silver-statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/silver-statusbar-right.png");
      } else {
        defaults.add("StatusBar.leftImage", "resources/statusbar-left.png");
        defaults.add("StatusBar.middleImage", "resources/statusbar-middle.png");
        defaults.add("StatusBar.rightImage", "resources/statusbar-right.png");
      }
    } else {
      defaults.add(JXStatusBar.uiClassID,
          "org.jdesktop.swingx.plaf.windows.WindowsClassicStatusBarUI");
    }
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

defaults.add(JXTaskPane.uiClassID, "org.jdesktop.swingx.plaf.windows.WindowsTaskPaneUI");
String xpStyle = OS.getWindowsVisualStyle();
if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
 .equalsIgnoreCase(xpStyle)) {

代码示例来源:origin: org.swinglabs.swingx/swingx-core

defaults.add(JXTaskPane.uiClassID, "org.jdesktop.swingx.plaf.windows.WindowsTaskPaneUI");
String xpStyle = OS.getWindowsVisualStyle();
if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
 .equalsIgnoreCase(xpStyle)) {

代码示例来源:origin: org.swinglabs.swingx/swingx-all

defaults.add(JXTaskPane.uiClassID, "org.jdesktop.swingx.plaf.windows.WindowsTaskPaneUI");
String xpStyle = OS.getWindowsVisualStyle();
if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
 .equalsIgnoreCase(xpStyle)) {

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

defaults.add(JXTaskPane.uiClassID, "org.jdesktop.swingx.plaf.windows.WindowsTaskPaneUI");
String xpStyle = OS.getWindowsVisualStyle();
if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
 .equalsIgnoreCase(xpStyle)) {

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

defaults.add(JXTaskPane.uiClassID, "org.jdesktop.swingx.plaf.windows.WindowsTaskPaneUI");
String xpStyle = OS.getWindowsVisualStyle();
if (WindowsLookAndFeelAddons.HOMESTEAD_VISUAL_STYLE
 .equalsIgnoreCase(xpStyle)) {

相关文章