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 184894
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +31 lines)
Line  Link Here
0
-- Base (BASE)
0
++ Locally Modified (Based On LOCAL)
Lines 169-174 Link Here
169
    }
169
    }
170
170
171
    /**
171
    /**
172
     * Select component without open()'ing or requestVisible()'ing it's
173
     * container.
174
     * <p>
175
     * Will only work if provider provides {@link IOContainer.SelectProvider}.
176
     * @param comp component to operate on
177
     */
178
    public void selectLite(JComponent comp) {
179
        log("selectLite()", comp);
180
	if (provider instanceof Lookup.Provider) {
181
	    Lookup.Provider p = (Lookup.Provider) provider;
182
	    SelectProvider sp = p.getLookup().lookup(SelectProvider.class);
183
	    if (sp != null)
184
		sp.selectLite(comp);
185
	}
186
    }
187
188
    /**
172
     * Gets currently selected component in parent container
189
     * Gets currently selected component in parent container
173
     * @return selected tab
190
     * @return selected tab
174
     */
191
     */
Lines 317-322 Link Here
317
    }
334
    }
318
335
319
    /**
336
    /**
337
     * Capability of an IOContainer.Provider to select a component
338
     * without open()'ing or requestVisible()'ing it's container.
339
     */
340
    public interface SelectProvider {
341
	/**
342
	 * Select component without open()'ing or requestVisible()'ing it's
343
	 * container.
344
	 * @param comp component to operate on
345
	 */
346
	void selectLite(JComponent comp);
347
    }
348
349
    /**
320
     * Callbacks from IOContainer to child component corresponding to IO
350
     * Callbacks from IOContainer to child component corresponding to IO
321
     * <p>
351
     * <p>
322
     * {@link IOProvider} implementations can optionally pass <code>Callbacks</code>
352
     * {@link IOProvider} implementations can optionally pass <code>Callbacks</code>

Return to bug 184894