@Override public boolean isPaintable() { return notSet ? false : ed.isPaintable(); }
/** * @return true if the editor is paintable */ @Override public boolean isPaintable() { return editor.isPaintable(); }
/** * {@inheritDoc} */ @Override public boolean isPaintable() { return delegate.isPaintable(); }
public boolean isPaintable() { return pe.isPaintable(); }
public boolean isPaintable() { return notSet ? false : ed.isPaintable(); }
public boolean isPaintable() { return notSet ? false : ed.isPaintable(); }
@Override public boolean isPaintable() { return getPropertyEditor().isPaintable(); }
public void paintChildren(Graphics g) { if (editor != null && !hasFocus() && editor.isPaintable()) { return; } else { super.paintChildren(g); } }
@Override public void paintChildren(Graphics g) { if ((editor != null) && !hasFocus() && editor.isPaintable()) { return; } else { super.paintChildren(g); } }
public void paintChildren(Graphics g) { if (editor != null && !hasFocus() && editor.isPaintable()) { return; } else { super.paintChildren(g); } }
public boolean isPaintable() { if (isUseDelegatePropertyEditor()) { if (delegatePropertyEditor != null) { return delegatePropertyEditor.isPaintable(); } } if (isValueBindingValue()) { // special handling of Boolean or boolean typed property to avoid ClassCastException in NetBeans propertysheet code Class c = designProperty.getPropertyDescriptor().getPropertyType(); if ((c == Boolean.class) || (c == boolean.class)) { return true; } } return false; }
protected void paintComponent( final Graphics g ) { final PropertyEditor propertyEditor = getPropertyEditor(); if ( propertyEditor == null ) { return; } if ( propertyEditor.isPaintable() == false ) { return; } propertyEditor.paintValue( g, new Rectangle( 0, 0, getWidth(), getHeight() ) ); } }
protected void checkIsPaintable() { assertThat( editor.isPaintable(), is( equalTo( false ) ) ); }
public void paintComponent (Graphics g) { //For property panel usage, allow the editor to paint if (editor != null && !hasFocus() && editor.isPaintable()) { Insets ins = getInsets(); Color c = g.getColor(); try { g.setColor(getBackground()); g.fillRect(0,0,getWidth(),getHeight()); } finally { g.setColor(c); } ins.left += PropUtils.getTextMargin(); editor.paintValue(g, new Rectangle(ins.left, ins.top, getWidth() - (ins.right + ins.left), getHeight() - (ins.top + ins.bottom))); } else { super.paintComponent(g); } }
public void paintComponent (Graphics g) { //For property panel usage, allow the editor to paint if (editor != null && !hasFocus() && editor.isPaintable()) { Insets ins = getInsets(); Color c = g.getColor(); try { g.setColor(getBackground()); g.fillRect(0,0,getWidth(),getHeight()); } finally { g.setColor(c); } ins.left += PropUtils.getTextMargin(); editor.paintValue(g, new Rectangle(ins.left, ins.top, getWidth() - (ins.right + ins.left), getHeight() - (ins.top + ins.bottom))); } else { super.paintComponent(g); } } }
private JComponent prepareString(PropertyEditor editor, PropertyEnv env) { InplaceEditor ren = (tableUI || editor.isPaintable()) ? (InplaceEditor) stringRenderer() : (InplaceEditor) textFieldRenderer(); ren.clear(); ren.getComponent().setEnabled(true); ren.connect(editor, env); return ren.getComponent(); }
private JComponent prepareString(PropertyEditor editor, PropertyEnv env) { InplaceEditor ren = tableUI || editor.isPaintable() ? (InplaceEditor)stringRenderer() : (InplaceEditor)textFieldRenderer(); ren.clear(); ren.getComponent().setEnabled(true); ren.connect(editor, env); return ren.getComponent(); }
private JComponent prepareString(PropertyEditor editor, PropertyEnv env) { InplaceEditor ren = tableUI || editor.isPaintable() ? (InplaceEditor)stringRenderer() : (InplaceEditor)textFieldRenderer(); ren.clear(); ren.getComponent().setEnabled(true); ren.connect(editor, env); return ren.getComponent(); }
public void connect(PropertyEditor p, PropertyEnv env) { setActionCommand(COMMAND_SUCCESS); this.env = env; if (editor == p) return; editor = p; boolean editable = PropUtils.checkEnabled(this, p, env); setEnabled(editable); //Undocumented, but in NB 3.5 and earlier, getAsText() returning null for //paintable editors was yet another way to disable a property editor if (p.getTags() == null && p.getAsText() == null && p.isPaintable()) { editable = false; } setEditable(editable); reset(); added = false; }
public void connect(PropertyEditor p, PropertyEnv env) { setActionCommand(COMMAND_SUCCESS); this.env = env; if (editor == p) return; editor = p; boolean editable = PropUtils.checkEnabled(this, p, env); setEnabled(editable); //Undocumented, but in NB 3.5 and earlier, getAsText() returning null for //paintable editors was yet another way to disable a property editor if (p.getTags() == null && p.getAsText() == null && p.isPaintable()) { editable = false; } setEditable(editable); reset(); added = false; }