public void paintComponent(Graphics g) { //Hack for issue 38132 - Beans are set via TTVBridge as a package //private property on the parent PropertyPanel (if there is one). //FindBeans() will locate the beans either in the model or as a //property of the PropertyPanel (if an esoteric undocumented client property //is set on the PropertyPanel). RendererFactory will set the env //value (if there is an env) to the value of ReusablePropertyEnv.NODE //(a performance hack to avoid creating 1 property env for each property //painted each time we paint). Cool, huh? reusableEnv.setNode(EditorPropertyDisplayer.findBeans(this)); JComponent comp = getRenderer(this); prepareRenderer(comp); comp.setBounds(0,0,getWidth(),getHeight()); if (comp instanceof InplaceEditor) { Component inner = findInnermostRenderer(comp); SwingUtilities.paintComponent (g, comp, this, 0, 0, getWidth(), getHeight()); return; } comp.paint(g); }
public void paintComponent(Graphics g) { //Hack for issue 38132 - Beans are set via TTVBridge as a package //private property on the parent PropertyPanel (if there is one). //FindBeans() will locate the beans either in the model or as a //property of the PropertyPanel (if an esoteric undocumented client property //is set on the PropertyPanel). RendererFactory will set the env //value (if there is an env) to the value of ReusablePropertyEnv.NODE //(a performance hack to avoid creating 1 property env for each property //painted each time we paint). Cool, huh? reusableEnv.setNode(EditorPropertyDisplayer.findBeans(this)); JComponent comp = getRenderer(this); prepareRenderer(comp); comp.setBounds(0,0,getWidth(),getHeight()); if (comp instanceof InplaceEditor) { Component inner = findInnermostRenderer(comp); SwingUtilities.paintComponent (g, comp, this, 0, 0, getWidth(), getHeight()); return; } comp.paint(g); }
public void paintComponent(Graphics g) { //Hack for issue 38132 - Beans are set via TTVBridge as a package //private property on the parent PropertyPanel (if there is one). //FindBeans() will locate the beans either in the model or as a //property of the PropertyPanel (if an esoteric undocumented client property //is set on the PropertyPanel). RendererFactory will set the env //value (if there is an env) to the value of ReusablePropertyEnv.NODE //(a performance hack to avoid creating 1 property env for each property //painted each time we paint). Cool, huh? reusableEnv.setNode(EditorPropertyDisplayer.findBeans(this)); JComponent comp = getRenderer(this); prepareRenderer(comp); comp.setBounds(0, 0, getWidth(), getHeight()); if (comp instanceof InplaceEditor) { Component inner = findInnermostRenderer(comp); SwingUtilities.paintComponent(g, comp, this, 0, 0, getWidth(), getHeight()); removeAll(); return; } comp.paint(g); }