/** Set whether the action should be enabled. * @param value <code>true</code> to enable it */ public void setEnabled(boolean value) { putProperty(PROP_ENABLED, value ? Boolean.TRUE : Boolean.FALSE, true); }
/** Set a property in the singleton. This property is common for all instances * of the same class. * * @param name the name of the property * @param value the value */ public final void putValue(String name, Object value) { putProperty(name, value, true); // Could handle putValue (SMALL_ICON, ImageIcon icon) but not // really that important. }
/** Set the action's display icon. * @param icon the icon */ public final void setIcon(Icon icon) { putProperty(PROP_ICON, icon, true); putProperty(PROP_ICON_TEXTUAL, icon); }
/** Initialize the action. * The default implementation just enabled it. */ @Override protected void initialize() { putProperty(PROP_ENABLED, Boolean.TRUE); super.initialize(); }
putProperty(PROP_ICON, img); putProperty(PROP_ICON_TEXTUAL, img); putProperty(PROP_ICON_TEXTUAL, img); } else { putProperty(PROP_ICON, null);
/** Set a property in the singleton. This property is common for all instances * of the same class. * * @param name the name of the property * @param value the value */ public final void putValue(String name, Object value) { putProperty(name, value, true); // Could handle putValue (SMALL_ICON, ImageIcon icon) but not // really that important. }
/** Set whether the action should be enabled. * @param value <code>true</code> to enable it */ public void setEnabled(boolean value) { putProperty(PROP_ENABLED, value ? Boolean.TRUE : Boolean.FALSE, true); }
/** Set the action's display icon. * @param icon the icon */ public final void setIcon(Icon icon) { putProperty(PROP_ICON, icon, true); putProperty(PROP_ICON_TEXTUAL, icon); }
/** Initialize the action. * The default implementation just enabled it. */ @Override protected void initialize() { putProperty(PROP_ENABLED, Boolean.TRUE); super.initialize(); }
putProperty(PROP_ICON, img); putProperty(PROP_ICON_TEXTUAL, img); putProperty(PROP_ICON_TEXTUAL, img); } else { putProperty(PROP_ICON, null);
/** Set the action's display icon. * @param icon the icon */ public final void setIcon(Icon icon) { putProperty(PROP_ICON, icon, true); putProperty(PROP_ICON_TEXTUAL, icon); }
/** Set the action's display icon. * @param icon the icon */ public final void setIcon(Icon icon) { putProperty(PROP_ICON, icon, true); putProperty(PROP_ICON_TEXTUAL, icon); }
/** Set whether the action should be enabled. * @param value <code>true</code> to enable it */ public void setEnabled(boolean value) { putProperty(PROP_ENABLED, value ? Boolean.TRUE : Boolean.FALSE, true); }
/** Set whether the action should be enabled. * @param value <code>true</code> to enable it */ public void setEnabled(boolean value) { putProperty (PROP_ENABLED, value ? Boolean.TRUE : Boolean.FALSE, true); }
/** Set the action's display icon. * @param icon the icon */ public final void setIcon (Icon icon) { putProperty (PROP_ICON, icon, true); putProperty (PROP_ICON_TEXTUAL, icon); }
/** Set a property in the singleton. This property is common for all instances * of the same class. * * @param name the name of the property * @param value the value */ public final void putValue(String name, Object value) { putProperty(name, value, true); // Could handle putValue (SMALL_ICON, ImageIcon icon) but not // really that important. }
/** Set whether the action should be enabled. * @param value <code>true</code> to enable it */ public void setEnabled(boolean value) { putProperty (PROP_ENABLED, value ? Boolean.TRUE : Boolean.FALSE, true); }
/** Set the action's display icon. * @param icon the icon */ public final void setIcon (Icon icon) { putProperty (PROP_ICON, icon, true); putProperty (PROP_ICON_TEXTUAL, icon); }
/** Initialize the action. * The default implementation just enabled it. */ @Override protected void initialize() { putProperty(PROP_ENABLED, Boolean.TRUE); super.initialize(); }
/** Initialize the action. * The default implementation just enabled it. */ protected void initialize () { putProperty (PROP_ENABLED, Boolean.TRUE); super.initialize (); }