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.BasicTextFieldUI;
08: import java.awt.*;
09:
10: ///CLOVER:OFF
11:
12: public class UISpecTextFieldUI extends BasicTextFieldUI {
13: public static ComponentUI createUI(JComponent component) {
14: return new UISpecTextFieldUI();
15: }
16:
17: protected void paintBackground(Graphics g) {
18: }
19:
20: protected void paintSafely(Graphics g) {
21: }
22:
23: public void update(Graphics g, JComponent c) {
24: }
25:
26: protected void maybeUpdateLayoutState() {
27: }
28:
29: public Dimension getPreferredSize(JComponent c) {
30: return Empty.NULL_DIMENSION;
31: }
32:
33: public Dimension getMaximumSize(JComponent c) {
34: return Empty.NULL_DIMENSION;
35: }
36:
37: public Dimension getMinimumSize(JComponent c) {
38: return Empty.NULL_DIMENSION;
39: }
40: }
|