# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -169,6 +169,23 @@ } /** + * Select component without open()'ing or requestVisible()'ing it's + * container. + *

+ * Will only work if provider provides {@link IOContainer.SelectProvider}. + * @param comp component to operate on + */ + public void selectLite(JComponent comp) { + log("selectLite()", comp); + if (provider instanceof Lookup.Provider) { + Lookup.Provider p = (Lookup.Provider) provider; + SelectProvider sp = p.getLookup().lookup(SelectProvider.class); + if (sp != null) + sp.selectLite(comp); + } + } + + /** * Gets currently selected component in parent container * @return selected tab */ @@ -317,6 +334,19 @@ } /** + * Capability of an IOContainer.Provider to select a component + * without open()'ing or requestVisible()'ing it's container. + */ + public interface SelectProvider { + /** + * Select component without open()'ing or requestVisible()'ing it's + * container. + * @param comp component to operate on + */ + void selectLite(JComponent comp); + } + + /** * Callbacks from IOContainer to child component corresponding to IO *

* {@link IOProvider} implementations can optionally pass Callbacks