OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 17 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
182 ilm 4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
17 ilm 5
 *
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
13
 
14
 /*
15
 * Created on 21 mai 2005
16
 *
17
 * To change the template for this generated file go to
18
 * Window>Preferences>Java>Code Generation>Code and Comments
19
 */
20
package org.openconcerto.laf;
21
 
22
import java.awt.Component;
23
 
24
import javax.swing.Icon;
25
import javax.swing.JComponent;
26
import javax.swing.UIDefaults;
27
import javax.swing.plaf.metal.MetalLookAndFeel;
28
 
29
public class ILookAndFeel extends MetalLookAndFeel {
30
 
31
	/* (non-Javadoc)
32
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#createDefaultTheme()
33
	 */
34
	protected void createDefaultTheme() {
35
		// TODO Auto-generated method stub
36
		super.createDefaultTheme();
37
	}
38
 
39
	/* (non-Javadoc)
40
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getDefaults()
41
	 */
42
	public UIDefaults getDefaults() {
43
		// TODO Auto-generated method stub
44
		return super.getDefaults();
45
	}
46
 
47
	/* (non-Javadoc)
48
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getDescription()
49
	 */
50
	public String getDescription() {
51
 
52
		return "It will make you feel Java power";
53
	}
54
 
55
	/* (non-Javadoc)
56
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getDisabledIcon(javax.swing.JComponent, javax.swing.Icon)
57
	 */
58
	/*public Icon getDisabledIcon(JComponent arg0, Icon arg1) {
59
		// TODO Auto-generated method stub
60
		return super.getDisabledIcon(arg0, arg1);
61
	}*/
62
 
63
	/* (non-Javadoc)
64
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getDisabledSelectedIcon(javax.swing.JComponent, javax.swing.Icon)
65
	 */
66
	/*public Icon getDisabledSelectedIcon(JComponent arg0, Icon arg1) {
67
		// TODO Auto-generated method stub
68
		return super.getDisabledSelectedIcon(arg0, arg1);
69
	}*/
70
 
71
	/* (non-Javadoc)
72
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getID()
73
	 */
74
	public String getID() {
75
		return "ILAF";
76
	}
77
 
78
	/* (non-Javadoc)
79
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getName()
80
	 */
81
	public String getName() {
82
		return "ILAF";
83
	}
84
 
85
	/* (non-Javadoc)
86
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#getSupportsWindowDecorations()
87
	 */
88
	public boolean getSupportsWindowDecorations() {
89
		// TODO Auto-generated method stub
90
		return super.getSupportsWindowDecorations();
91
	}
92
 
93
	/* (non-Javadoc)
94
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#initClassDefaults(javax.swing.UIDefaults)
95
	 */
96
	protected void initClassDefaults(UIDefaults table) {
97
 
98
		 super.initClassDefaults(table);
99
		    table.putDefaults(new Object[]
100
		    {
101
		      "ButtonUI", "org.openconcerto.laf.IButtonUI",
102
		      "ScrollBarUI", "org.openconcerto.laf.IScrollBarUI",
103
		      "ComboBoxUI", "org.openconcerto.laf.IComboBoxUI",
104
		      /*,
105
		      "CheckBoxUI", "com.stefankrause.xplookandfeel.XPCheckBoxUI",
106
		      "TextFieldUI", "com.stefankrause.xplookandfeel.XPTextFieldUI",
107
		      "FormattedTextFieldUI", "com.stefankrause.xplookandfeel.XPTextFieldUI",
108
		      "SliderUI", "com.stefankrause.xplookandfeel.XPSliderUI",
109
		      "SpinnerUI", "com.stefankrause.xplookandfeel.XPSpinnerUI",
110
		      "ToolBarUI", "com.stefankrause.xplookandfeel.XPToolBarUI",
111
		      "MenuBarUI", "com.stefankrause.xplookandfeel.XPMenuBarUI",
112
		      "MenuUI", "com.stefankrause.xplookandfeel.XPMenuUI",
113
		      "MenuItemUI", "com.stefankrause.xplookandfeel.XPMenuItemUI",
114
		 	  "CheckBoxMenuItemUI", "com.stefankrause.xplookandfeel.XPCheckBoxMenuItemUI",
115
		      "RadioButtonMenuItemUI", "com.stefankrause.xplookandfeel.XPRadioButtonMenuItemUI",
116
 
117
		      "TabbedPaneUI", "com.stefankrause.xplookandfeel.XPTabbedPaneUI",
118
		      "ToggleButtonUI", "com.stefankrause.xplookandfeel.XPButtonUI",
119
		      "ScrollPaneUI", "com.stefankrause.xplookandfeel.XPScrollPaneUI",
120
		      "ProgressBarUI", "com.stefankrause.xplookandfeel.XPProgressBarUI",
121
		      "InternalFrameUI", "com.stefankrause.xplookandfeel.XPInternalFrameUI",
122
		      "RadioButtonUI", "com.stefankrause.xplookandfeel.XPRadioButtonUI",
123
		       "PopupMenuSeparatorUI","com.stefankrause.xplookandfeel.XPPopupMenuSeparatorUI",
124
		      "SplitPaneUI","com.stefankrause.xplookandfeel.XPSplitPaneUI",
125
		      "FileChooserUI", "com.stefankrause.xplookandfeel.XPFileChooserUI",
126
		  */  });
127
	}
128
 
129
	/* (non-Javadoc)
130
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#initComponentDefaults(javax.swing.UIDefaults)
131
	 */
132
	protected void initComponentDefaults(UIDefaults arg0) {
133
		// TODO Auto-generated method stub
134
		super.initComponentDefaults(arg0);
135
	}
136
 
137
	/* (non-Javadoc)
138
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#initSystemColorDefaults(javax.swing.UIDefaults)
139
	 */
140
	protected void initSystemColorDefaults(UIDefaults arg0) {
141
		// TODO Auto-generated method stub
142
		super.initSystemColorDefaults(arg0);
143
	}
144
 
145
	/* (non-Javadoc)
146
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#isNativeLookAndFeel()
147
	 */
148
	public boolean isNativeLookAndFeel() {
149
		return false;
150
	}
151
 
152
	/* (non-Javadoc)
153
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#isSupportedLookAndFeel()
154
	 */
155
	public boolean isSupportedLookAndFeel() {
156
		return true;
157
	}
158
 
159
	/* (non-Javadoc)
160
	 * @see javax.swing.plaf.metal.MetalLookAndFeel#provideErrorFeedback(java.awt.Component)
161
	 */
162
	public void provideErrorFeedback(Component arg0) {
163
		// TODO Auto-generated method stub
164
		super.provideErrorFeedback(arg0);
165
	}
166
 
167
}