public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled(this, editor, env)); super.paintComponent(g); clear(); }
public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled (this, editor, env)); super.paintComponent(g); clear(); }
/** Overridden to clear state after painting once */ public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled(this, editor, env)); super.paintComponent(g); clear(); }
public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled (this, editor, env)); super.paintComponent(g); clear(); }
/** Overridden to clear state after painting once */ public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled (this, editor, env)); super.paintComponent(g); clear(); }
/** Overridden to clear state after painting once */ public void paintComponent(Graphics g) { setEnabled(PropUtils.checkEnabled (this, editor, env)); super.paintComponent(g); clear(); }
/** Overridden to clear state after painting once */ public void paintComponent(Graphics g) { setEnabled(isEnabled() && PropUtils.checkEnabled (this, editor, this.env)); //We may paint without a parent in PropertyPanel, so do a layout to //ensure there's something to paint doLayout();//just in case some L&F will render directly super.paintComponent(g); //Clear cached values clear(); }
/** Overridden to clear state after painting once */ public void paintComponent(Graphics g) { setEnabled(isEnabled() && PropUtils.checkEnabled (this, editor, this.env)); //We may paint without a parent in PropertyPanel, so do a layout to //ensure there's something to paint doLayout();//just in case some L&F will render directly super.paintComponent(g); //Clear cached values clear(); }
public void paint (Graphics g) { if (editor != null) { setEnabled(PropUtils.checkEnabled (this, editor, env));
public void paint (Graphics g) { if (editor != null) { setEnabled(PropUtils.checkEnabled (this, editor, env));
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; }
public void paint(Graphics g) { if (editor != null) { setEnabled(PropUtils.checkEnabled(this, editor, env));
@Override public void connect(PropertyEditor p, PropertyEnv env) { setActionCommand(COMMAND_SUCCESS); this.env = env; if(PropUtils.supportsValueIncrement( env ) ) { PropUtils.wrapUpDownArrowActions( this, this ); } 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; }
protected void prepareComponent (InplaceEditor inplace) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); JComponent comp = innermost.getComponent(); if (!isTableUI() && inplace.supportsTextEntry()) { comp.setBackground(PropUtils.getTextFieldBackground()); comp.setForeground(PropUtils.getTextFieldForeground()); } else { comp.setBackground(getBackground()); if (!isEnabled() || !prop.canWrite()) { comp.setForeground(UIManager.getColor("textInactiveText")); } else { comp.setForeground(getForeground()); } } comp.setEnabled(isEnabled() && PropUtils.checkEnabled(this, inplace.getPropertyEditor(), getPropertyEnv())); }
protected void prepareComponent (InplaceEditor inplace) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); JComponent comp = innermost.getComponent(); if (!isTableUI() && inplace.supportsTextEntry()) { comp.setBackground(PropUtils.getTextFieldBackground()); comp.setForeground(PropUtils.getTextFieldForeground()); } else { comp.setBackground(getBackground()); if (!isEnabled() || !prop.canWrite()) { comp.setForeground(UIManager.getColor("textInactiveText")); } else { comp.setForeground(getForeground()); } } comp.setEnabled(isEnabled() && PropUtils.checkEnabled(this, inplace.getPropertyEditor(), getPropertyEnv())); }
protected void prepareComponent(InplaceEditor inplace) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); JComponent comp = innermost.getComponent(); if (!isTableUI() && inplace.supportsTextEntry()) { comp.setBackground(PropUtils.getTextFieldBackground()); comp.setForeground(PropUtils.getTextFieldForeground()); } else { comp.setBackground(getBackground()); if (!isEnabled() || !prop.canWrite()) { comp.setForeground(UIManager.getColor("textInactiveText")); } else { comp.setForeground(getForeground()); } } if( comp instanceof ComboInplaceEditor ) comp.setEnabled( isEnabled() && getPropertyEnv().isEditable() ); else comp.setEnabled(isEnabled() && PropUtils.checkEnabled(this, inplace.getPropertyEditor(), getPropertyEnv())); }