田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
package com.vci.client.ui.swing.components;
 
import java.awt.Component;
 
import javax.swing.JButton;
import javax.swing.JSplitPane;
import javax.swing.UIManager;
 
import com.vci.client.ui.swing.VCISwingUtil;
 
public class VCIJSplitPane extends JSplitPane {
 
    /**
     * 
     */
    private static final long serialVersionUID = 4749386021836113169L;
 
    public VCIJSplitPane(){
         this(JSplitPane.HORIZONTAL_SPLIT, false,
                    new JButton(UIManager.getString("SplitPane.leftButtonText")),
                    new JButton(UIManager.getString("SplitPane.rightButtonText")));
    }
 
    public VCIJSplitPane(int newOrientation) {
        this(newOrientation, false);
    }
 
    public VCIJSplitPane(int newOrientation, boolean newContinuousLayout) {
         this(newOrientation, newContinuousLayout, null, null);
    }
 
    public VCIJSplitPane(int newOrientation, Component newLeftComponent,
            Component newRightComponent) {
        this(newOrientation, false, newLeftComponent, newRightComponent);
    }
 
    public VCIJSplitPane(int newOrientation, boolean newContinuousLayout,
            Component newLeftComponent, Component newRightComponent) {
        super(newOrientation, newContinuousLayout, newLeftComponent,
                newRightComponent);
        customConstructor();
    }
 
    private void customConstructor(){
        setFont(VCISwingUtil.FONT_DEFAULT);
    }
    private Object obj =  null;
    public Object getObj() {
        return obj;
    }
    public void setObj(Object obj) {
        this.obj = obj;
    }
}