/** * Sets the short description of the action. This will also * set the long description value is it is null. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.SHORT_DESCRIPTION</code> key. * * @param desc the short description; can be <code>null</code>w * @see Action#SHORT_DESCRIPTION * @see Action#putValue */ public void setShortDescription(String desc) { putValue(Action.SHORT_DESCRIPTION, desc); if (desc != null && getLongDescription() == null) { setLongDescription(desc); } }
/** * Sets the short description of the action. This will also * set the long description value is it is null. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.SHORT_DESCRIPTION</code> key. * * @param desc the short description; can be <code>null</code>w * @see Action#SHORT_DESCRIPTION * @see Action#putValue */ public void setShortDescription(String desc) { putValue(Action.SHORT_DESCRIPTION, desc); if (desc != null && getLongDescription() == null) { setLongDescription(desc); } }
/** * Sets the short description of the action. This will also * set the long description value is it is null. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.SHORT_DESCRIPTION</code> key. * * @param desc the short description; can be <code>null</code>w * @see Action#SHORT_DESCRIPTION * @see Action#putValue */ public void setShortDescription(String desc) { putValue(Action.SHORT_DESCRIPTION, desc); if (desc != null && getLongDescription() == null) { setLongDescription(desc); } }
/** * Sets the short description of the action. This will also * set the long description value is it is null. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.SHORT_DESCRIPTION</code> key. * * @param desc the short description; can be <code>null</code>w * @see Action#SHORT_DESCRIPTION * @see Action#putValue */ public void setShortDescription(String desc) { putValue(Action.SHORT_DESCRIPTION, desc); if (desc != null && getLongDescription() == null) { setLongDescription(desc); } }