private PropertyPanel getEditor(Property<?> p, Node n) { int prefs = PropertyPanel.PREF_TABLEUI; if (editor == null) { editor = new PropertyPanel(p, prefs); editor.putClientProperty("flat", Boolean.TRUE); //NOI18N editor.putClientProperty("beanBridgeIdentifier", this); //NOI18N //Intentionally set the property again so it will look up the //bean bridge editor.setProperty(p); return editor; } editor.setProperty(p); //Okay, the property panel has already grabbed the beans, clear //them so no references are held. return editor; }
private PropertyPanel getEditor(Property p, Node n) { int prefs = PropertyPanel.PREF_TABLEUI; TTVEnvBridge bridge = TTVEnvBridge.getInstance(this); //workaround for issue 38132 - use env bridge to pass the //node to propertypanel so it can call PropertyEnv.setBeans() //with it. The sad thing is almost nobody uses PropertyEnv.getBeans(), //but we have to do it for all cases. bridge.setCurrentBeans(new Node[] { n }); if (editor == null) { editor = new PropertyPanel(p, prefs); editor.putClientProperty("flat", Boolean.TRUE); //NOI18N editor.putClientProperty("beanBridgeIdentifier", this); //NOI18N editor.setProperty(p); return editor; } editor.setProperty(p); //Okay, the property panel has already grabbed the beans, clear //them so no references are held. return editor; }
private PropertyPanel getEditor(Property p, Node n) { int prefs = PropertyPanel.PREF_TABLEUI; TTVEnvBridge bridge = TTVEnvBridge.getInstance(this); //workaround for issue 38132 - use env bridge to pass the //node to propertypanel so it can call PropertyEnv.setBeans() //with it. The sad thing is almost nobody uses PropertyEnv.getBeans(), //but we have to do it for all cases. bridge.setCurrentBeans(new Node[] {n}); if (editor == null) { editor = new PropertyPanel(p, prefs); editor.putClientProperty("flat", Boolean.TRUE); //NOI18N editor.putClientProperty("beanBridgeIdentifier", this); //NOI18N //Intentionally set the property again so it will look up the //bean bridge editor.setProperty(p); return editor; } editor.setProperty(p); //Okay, the property panel has already grabbed the beans, clear //them so no references are held. return editor; }
private PropertyPanel getEditor(Property p, Node n) { int prefs = PropertyPanel.PREF_TABLEUI; TTVEnvBridge bridge = TTVEnvBridge.getInstance(this); //workaround for issue 38132 - use env bridge to pass the //node to propertypanel so it can call PropertyEnv.setBeans() //with it. The sad thing is almost nobody uses PropertyEnv.getBeans(), //but we have to do it for all cases. bridge.setCurrentBeans(new Node[] {n}); if (editor == null) { editor = new PropertyPanel(p, prefs); editor.putClientProperty("flat", Boolean.TRUE); //NOI18N editor.putClientProperty("beanBridgeIdentifier", this); //NOI18N //Intentionally set the property again so it will look up the //bean bridge editor.setProperty(p); return editor; } editor.setProperty(p); //Okay, the property panel has already grabbed the beans, clear //them so no references are held. return editor; }
private PropertyPanel getEditor(Property p, Node n) { int prefs = PropertyPanel.PREF_TABLEUI; TTVEnvBridge bridge = TTVEnvBridge.getInstance(this); //workaround for issue 38132 - use env bridge to pass the //node to propertypanel so it can call PropertyEnv.setBeans() //with it. The sad thing is almost nobody uses PropertyEnv.getBeans(), //but we have to do it for all cases. bridge.setCurrentBeans(new Node[] {n}); if (editor == null) { editor = new PropertyPanel(p, prefs); editor.putClientProperty("flat", Boolean.TRUE); //NOI18N editor.putClientProperty("beanBridgeIdentifier", this); //NOI18N //Intentionally set the property again so it will look up the //bean bridge editor.setProperty(p); return editor; } editor.setProperty(p); //Okay, the property panel has already grabbed the beans, clear //them so no references are held. return editor; }