01: /*
02: * @(#)VsnetLookAndFeel.java
03: *
04: * Copyright 2002 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.plaf.vsnet;
07:
08: import com.jidesoft.utils.SystemInfo;
09: import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
10:
11: import javax.swing.*;
12:
13: /**
14: * WindowsLookAndFeel with Visual Studio .NET extension
15: *
16: * @deprecated Due to the change in LookAndFeelFactory, this class is no longer needed.
17: * The best way to set any L&F is to use UIManager.setLookAndFeel() as usual. then call
18: * installJideExtension() or installJideExtension(int style) to add UIDefaults needed by JIDE products.
19: */
20: public class VsnetWindowsLookAndFeel extends WindowsLookAndFeel {
21: @Override
22: public String getName() {
23: return "Visual Studio .NET";
24: }
25:
26: @Override
27: public String getDescription() {
28: return "The Microsoft Visual Studio .NET Look And Feel";
29: }
30:
31: @Override
32: public String getID() {
33: return "Visual Studio .NET";
34: }
35:
36: @Override
37: public boolean isSupportedLookAndFeel() {
38: return isNativeLookAndFeel();
39: }
40:
41: @Override
42: public boolean isNativeLookAndFeel() {
43: return SystemInfo.isWindows();
44: }
45:
46: @Override
47: protected void initClassDefaults(UIDefaults table) {
48: super .initClassDefaults(table);
49: VsnetWindowsUtils.initClassDefaultsWithMenu(table);
50: }
51:
52: @Override
53: protected void initComponentDefaults(UIDefaults table) {
54: super.initComponentDefaults(table);
55: VsnetWindowsUtils.initComponentDefaultsWithMenu(table);
56: }
57: }
|