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