01: /*
02: * ReportOptionsPanelController.java
03: *
04: * Created on Oct 15, 2007, 6:56:24 PM
05: *
06: * To change this template, choose Tools | Templates
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.reportgenerator.customization;
11:
12: import java.beans.PropertyChangeListener;
13: import java.beans.PropertyChangeSupport;
14: import javax.swing.JComponent;
15: import org.netbeans.spi.options.OptionsPanelController;
16: import org.openide.util.HelpCtx;
17: import org.openide.util.Lookup;
18:
19: /**
20: *
21: * @author radval
22: */
23: public class ReportOptionsPanelController extends
24: OptionsPanelController {
25:
26: private PropertyChangeSupport pSupport = new PropertyChangeSupport(
27: this );
28:
29: @Override
30: public void update() {
31:
32: }
33:
34: @Override
35: public void applyChanges() {
36:
37: }
38:
39: @Override
40: public void cancel() {
41:
42: }
43:
44: @Override
45: public boolean isValid() {
46: return true;
47: }
48:
49: @Override
50: public boolean isChanged() {
51: return true;
52: }
53:
54: @Override
55: public JComponent getComponent(Lookup arg0) {
56: return new ReportCustomizationPanel();
57: }
58:
59: @Override
60: public HelpCtx getHelpCtx() {
61: return HelpCtx.DEFAULT_HELP;
62: }
63:
64: @Override
65: public void addPropertyChangeListener(PropertyChangeListener arg0) {
66: pSupport.addPropertyChangeListener(arg0);
67: }
68:
69: @Override
70: public void removePropertyChangeListener(PropertyChangeListener arg0) {
71: pSupport.removePropertyChangeListener(arg0);
72: }
73:
74: }
|