/** Sets whether or not this component is enabled. * * all panel components gets disabled when enabled parameter is set false * @param enabled flag defining the action. */ public void setEnabled(boolean enabled) { // System.err.println("SET ENABLED:" + enabled); Component custEditor = (Container) getComponent(); if (custEditor instanceof Container) { setEnabled((Container) custEditor, enabled); } custEditor.setEnabled(enabled); }
/** Sets whether or not this component is enabled. * * all panel components gets disabled when enabled parameter is set false * @param enabled flag defining the action. */ public void setEnabled(boolean enabled) { // System.err.println("SET ENABLED:" + enabled); Component custEditor = (Container) getComponent(); if (custEditor instanceof Container) { setEnabled((Container) custEditor, enabled); } custEditor.setEnabled(enabled); }
/** Sets whether or not this component is enabled. * * all panel components gets disabled when enabled parameter is set false * @param enabled flag defining the action. */ public void setEnabled(boolean enabled) { // System.err.println("SET ENABLED:" + enabled); Component custEditor = (Container) getComponent(); if (custEditor instanceof Container) { setEnabled((Container) custEditor, enabled); } custEditor.setEnabled(enabled); }
public void setEnabled(Container c, boolean enabled) { Component[] comp = c.getComponents(); for (int i = 0; i < comp.length; i++) { if (!(comp[i] instanceof JScrollBar)) { comp[i].setEnabled(false); } else { ((JScrollBar) comp[i]).setFocusable(enabled); } if (comp[i] instanceof Container) { boolean ignore = false; if (comp[i] instanceof JComponent) { //Issue 38065 - form editor doesn't want checkbox enabled, //but for compatibility we need to drill through the entire //subtree (otherwise JFileChoosers, etc., will have enabled //components even though setEnabled(false) was called on them). Boolean val = (Boolean) ((JComponent) comp[i]).getClientProperty("dontEnableMe"); //NOI18N if (val != null) { ignore = val.booleanValue(); } } if (!ignore) { setEnabled((Container) comp[i], enabled); } } } c.setEnabled(enabled); }
public void setEnabled (Container c, boolean enabled) { Component[] comp = c.getComponents(); for (int i=0; i < comp.length; i++) { if (!(comp[i] instanceof JScrollBar)) { comp[i].setEnabled(false); } else { ((JScrollBar)comp[i]).setFocusable(enabled); } if (comp[i] instanceof Container) { boolean ignore = false; if (comp[i] instanceof JComponent) { //Issue 38065 - form editor doesn't want checkbox enabled, //but for compatibility we need to drill through the entire //subtree (otherwise JFileChoosers, etc., will have enabled //components even though setEnabled(false) was called on them). Boolean val = (Boolean) ((JComponent) comp[i]). getClientProperty ( "dontEnableMe"); //NOI18N if (val != null) { ignore = val.booleanValue(); } } if (!ignore) { setEnabled((Container) comp[i], enabled); } } } c.setEnabled(enabled); }
public void setEnabled (Container c, boolean enabled) { Component[] comp = c.getComponents(); for (int i=0; i < comp.length; i++) { if (!(comp[i] instanceof JScrollBar)) { comp[i].setEnabled(false); } else { ((JScrollBar)comp[i]).setFocusable(enabled); } if (comp[i] instanceof Container) { boolean ignore = false; if (comp[i] instanceof JComponent) { //Issue 38065 - form editor doesn't want checkbox enabled, //but for compatibility we need to drill through the entire //subtree (otherwise JFileChoosers, etc., will have enabled //components even though setEnabled(false) was called on them). Boolean val = (Boolean) ((JComponent) comp[i]). getClientProperty ( "dontEnableMe"); //NOI18N if (val != null) { ignore = val.booleanValue(); } } if (!ignore) { setEnabled((Container) comp[i], enabled); } } } c.setEnabled(enabled); }
((CustomEditorDisplayer) result).setEnabled(false); } else if (result instanceof PropertyDisplayer_Editable) { if (!isEnabled()) {
((CustomEditorDisplayer) result).setEnabled(false); } else if (result instanceof PropertyDisplayer_Editable) { if (!isEnabled()) {
((CustomEditorDisplayer) result).setEnabled(false); } else if (result instanceof PropertyDisplayer_Editable) { if (!isEnabled()) {