This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 39583
Collapse All | Expand All

(-)FilterNode.java (-1 / +26 lines)
Lines 80-85 Link Here
80
    protected static final int DELEGATE_GET_ACTIONS = 1 << 7;
80
    protected static final int DELEGATE_GET_ACTIONS = 1 << 7;
81
    /** Whether to delegate <code>getContextActions</code>. */
81
    /** Whether to delegate <code>getContextActions</code>. */
82
    protected static final int DELEGATE_GET_CONTEXT_ACTIONS = 1 << 8;
82
    protected static final int DELEGATE_GET_CONTEXT_ACTIONS = 1 << 8;
83
    /** Whether to delegate <code>setValue</code>. */
84
    protected static final int DELEGATE_SET_VALUE = 1 << 9;
85
    /** Whether to delegate <code>getValue</code>. */
86
    protected static final int DELEGATE_GET_VALUE = 1 << 10;
87
    
88
    
83
    /** Mask indicating delegation of all possible methods. */
89
    /** Mask indicating delegation of all possible methods. */
84
    private static final int DELEGATE_ALL = DELEGATE_SET_NAME |
90
    private static final int DELEGATE_ALL = DELEGATE_SET_NAME |
85
                                            DELEGATE_GET_NAME |
91
                                            DELEGATE_GET_NAME |
Lines 89-95 Link Here
89
                                            DELEGATE_GET_SHORT_DESCRIPTION |
95
                                            DELEGATE_GET_SHORT_DESCRIPTION |
90
                                            DELEGATE_DESTROY |
96
                                            DELEGATE_DESTROY |
91
                                            DELEGATE_GET_ACTIONS |
97
                                            DELEGATE_GET_ACTIONS |
92
                                            DELEGATE_GET_CONTEXT_ACTIONS;
98
                                            DELEGATE_GET_CONTEXT_ACTIONS |
99
                                            DELEGATE_SET_VALUE |
100
                                            DELEGATE_GET_VALUE;
93
101
94
    /** Is PropertyChangeListener attached to original node */
102
    /** Is PropertyChangeListener attached to original node */
95
    private boolean pchlAttached = false;
103
    private boolean pchlAttached = false;
Lines 364-369 Link Here
364
372
365
    // ------------- START OF DELEGATED METHODS ------------
373
    // ------------- START OF DELEGATED METHODS ------------
366
374
375
    public void setValue(String attributeName, Object value) {
376
        if (delegating (DELEGATE_SET_VALUE)) {
377
            original.setValue (attributeName, value);
378
        } else {
379
            super.setValue (attributeName, value);
380
        }
381
    }
382
383
    public Object getValue(String attributeName) {
384
        if (delegating (DELEGATE_GET_VALUE)) {
385
            return original.getValue (attributeName);
386
        } else {
387
            return super.getValue (attributeName);
388
        }
389
    }
390
391
    
367
    /* Setter for system name. Fires info about property change.
392
    /* Setter for system name. Fires info about property change.
368
    * @param s the string
393
    * @param s the string
369
    */
394
    */

Return to bug 39583