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

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

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

OS.isMacOSX介绍

暂无

代码示例

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isMacOSX();
  }
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isMacOSX();
  }
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isMacOSX();
  }
}

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

/**
   * Overridden for performance reasons.
   * See the <a href="#override">Implementation Note</a>
   * for more information.
   */
  @Override
  public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    if (OS.isMacOSX()) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
   * Overridden for performance reasons.
   * See the <a href="#override">Implementation Note</a>
   * for more information.
   */
  @Override
  public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    if (OS.isMacOSX()) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
   * Overridden for performance reasons.
   * See the <a href="#override">Implementation Note</a>
   * for more information.
   */
  @Override
  public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    if (OS.isMacOSX()) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
   * Overridden for performance reasons.
   * See the <a href="#override">Implementation Note</a>
   * for more information.
   */
  @Override
  public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    if (OS.isMacOSX()) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
 * @return <code>true</code> if we run Leopard and the Mac Look And Feel.
 */
public static boolean isNativeSearchFieldSupported() {
  try {
    String versionString = System.getProperty("os.version");
    // Mac versions have the format 10.x or 10.x.x
    if (versionString.length() < 4) {
      return false;
    }
    // only the part 10.x is important
    versionString = versionString.substring(0, 4);
    return OS.isMacOSX() && Float.parseFloat(versionString) >= 10.5
        && UIManager.getLookAndFeel().getName().equals("Mac OS X");
  } catch (Exception e) {
    // in case the os.version cannot be parsed, we are surely not
    // running mac os x.
    return false;
  }
}

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

/**
 * @return <code>true</code> if we run Leopard and the Mac Look And Feel.
 */
public static boolean isNativeSearchFieldSupported() {
  try {
    String versionString = System.getProperty("os.version");
    // Mac versions have the format 10.x or 10.x.x
    if (versionString.length() < 4) {
      return false;
    }
    // only the part 10.x is important
    versionString = versionString.substring(0, 4);
    return OS.isMacOSX() && Float.parseFloat(versionString) >= 10.5
        && UIManager.getLookAndFeel().getName().equals("Mac OS X");
  } catch (Exception e) {
    // in case the os.version cannot be parsed, we are surely not
    // running mac os x.
    return false;
  }
}

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

/**
 * @return <code>true</code> if we run Leopard and the Mac Look And Feel.
 */
public static boolean isNativeSearchFieldSupported() {
  try {
    String versionString = System.getProperty("os.version");
    // Mac versions have the format 10.x or 10.x.x
    if (versionString.length() < 4) {
      return false;
    }
    // only the part 10.x is important
    versionString = versionString.substring(0, 4);
    return OS.isMacOSX() && Float.parseFloat(versionString) >= 10.5
        && UIManager.getLookAndFeel().getName().equals("Mac OS X");
  } catch (Exception e) {
    // in case the os.version cannot be parsed, we are surely not
    // running mac os x.
    return false;
  }
}

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

/**
 * @return <code>true</code> if we run Leopard and the Mac Look And Feel.
 */
public static boolean isNativeSearchFieldSupported() {
  try {
    String versionString = System.getProperty("os.version");
    // Mac versions have the format 10.x or 10.x.x
    if (versionString.length() < 4) {
      return false;
    }
    // only the part 10.x is important
    versionString = versionString.substring(0, 4);
    return OS.isMacOSX() && Float.parseFloat(versionString) >= 10.5
        && UIManager.getLookAndFeel().getName().equals("Mac OS X");
  } catch (Exception e) {
    // in case the os.version cannot be parsed, we are surely not
    // running mac os x.
    return false;
  }
}

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

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a>
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  if (OS.isMacOSX()) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  } else {
    // Strings get interned...
    if ("document".equals(propertyName)) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a>
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  if (OS.isMacOSX()) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  } else {
    // Strings get interned...
    if ("document".equals(propertyName)) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a>
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  if (OS.isMacOSX()) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  } else {
    // Strings get interned...
    if ("document".equals(propertyName)) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a>
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  if (OS.isMacOSX()) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  } else {
    // Strings get interned...
    if ("document".equals(propertyName)) {
      super.firePropertyChange(propertyName, oldValue, newValue);
    }
  }
}

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

/**
 * Gets the addon best suited for the operating system where the
 * virtual machine is running.
 *
 * @return the addon matching the native operating system platform.
 */
public static String getSystemAddonClassName() {
 String addon = WindowsClassicLookAndFeelAddons.class.getName();
 if (OS.isMacOSX()) {
  addon = MacOSXLookAndFeelAddons.class.getName();
 } else if (OS.isWindows()) {
  // see whether of not visual styles are used
  if (OS.isUsingWindowsVisualStyles()) {
   addon = WindowsLookAndFeelAddons.class.getName();
  } else {
   addon = WindowsClassicLookAndFeelAddons.class.getName();
  }
 } else if (OS.isLinux()) {
  addon = LinuxLookAndFeelAddons.class.getName();
 }
 return addon;
}

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

if(OS.isMacOSX() && colorwell != null) {
  Insets ins = new Insets(5,5,5,5);
  GraphicsUtilities.tileStretchPaint(g, this, colorwell, ins);

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

if(OS.isMacOSX() && colorwell != null) {
  Insets ins = new Insets(5,5,5,5);
  ColorUtil.tileStretchPaint(g, this, colorwell, ins);

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

if(OS.isMacOSX() && colorwell != null) {
  Insets ins = new Insets(5,5,5,5);
  GraphicsUtilities.tileStretchPaint(g, this, colorwell, ins);

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

if(OS.isMacOSX() && colorwell != null) {
  Insets ins = new Insets(5,5,5,5);
  GraphicsUtilities.tileStretchPaint(g, this, colorwell, ins);

相关文章