01: package org.uispec4j.interception.ui;
02:
03: import org.uispec4j.interception.toolkit.Empty;
04:
05: import javax.swing.*;
06: import javax.swing.plaf.ComponentUI;
07: import javax.swing.plaf.basic.BasicFileChooserUI;
08: import java.awt.*;
09:
10: ///CLOVER:OFF
11:
12: public class UISpecFileChooserUI extends BasicFileChooserUI {
13: public static ComponentUI createUI(JComponent component) {
14: return new UISpecFileChooserUI((JFileChooser) component);
15: }
16:
17: public UISpecFileChooserUI(JFileChooser b) {
18: super (b);
19: }
20:
21: public void paint(Graphics g, JComponent c) {
22: }
23:
24: protected void maybeUpdateLayoutState() {
25: }
26:
27: public Dimension getPreferredSize(JComponent c) {
28: return Empty.NULL_DIMENSION;
29: }
30:
31: public Dimension getMaximumSize(JComponent c) {
32: return Empty.NULL_DIMENSION;
33: }
34:
35: public Dimension getMinimumSize(JComponent c) {
36: return Empty.NULL_DIMENSION;
37: }
38: }
|