/** * Returns the value of the HTML "align" attribute.<p> * * @return the value of the HTML "align" attribute */ public String getAlign() { return getAttribute(ATTR_ALIGN); }
/** * Sets the value of the HTML "longdesc" attribute.<p> * * @param value the value of the HTML "longdesc" attribute to set */ public void setLongdesc(String value) { setAttribute(ATTR_LONGDESC, value); }
switch (SCALER_ATTRS_LIST.indexOf(key)) { case 0: // scaleColor setScaleColor(value); break; case 1: // scaleFilter setScaleFilter(value); break; case 2: // height setHeight(value); break; case 3: // partialTag setPartialTag(value); break; case 4: // scalePosition setScalePosition(value); break; case 5: // scaleQuality setScaleQuality(value); break; case 6: // scaleRendermode setScaleRendermode(value); break; case 7: // src setSrc(value); break; case 8: // scaleType setScaleType(value); break; case 9: // width
switch (SCALER_ATTRS_LIST.indexOf(key)) { case 0: // scaleColor setScaleColor(value); break; case 1: // scaleFilter setScaleFilter(value); break; case 2: // height setHeight(value); break; case 3: // partialTag setPartialTag(value); break; case 4: // scalePosition setScalePosition(value); break; case 5: // scaleQuality setScaleQuality(value); break; case 6: // scaleRendermode setScaleRendermode(value); break; case 7: // src setSrc(value); break; case 8: // scaleType setScaleType(value); break; case 9: // width
imageTag = imageTagAction(m_src, m_scaler, m_attributes, m_partialTag, m_noDim, req); } catch (CmsException e) { release(); return EVAL_PAGE;
/** * Internal action method to create the tag content.<p> * * @param src the image source * @param scaler the image scaleing parameters * @param attributes the additional image HTML attributes * @param partialTag if <code>true</code>, the opening <code><img</code> and closing <code> /></code> is omitted * @param req the current request * * @return the created <img src> tag content * * @throws CmsException in case something goes wrong */ public static String imageTagAction( String src, CmsImageScaler scaler, Map<String, String> attributes, boolean partialTag, ServletRequest req) throws CmsException { return imageTagAction(src, scaler, attributes, partialTag, false, req); }
imageTag = imageTagAction(m_src, m_scaler, m_attributes, m_partialTag, req); } catch (CmsException e) { release();
/** * Returns the HTML for an <code><img src="..." /></code> tag that includes the given image scaling parameters.<p> * * @param target the target URI of the file in the OpenCms VFS * @param scaler the image scaler to use for scaling the image * @param attributes a map of additional HTML attributes that are added to the output * @param partialTag if <code>true</code>, the opening <code><img</code> and closing <code> /></code> is omitted * * @return the HTML for an <code><img src></code> tag that includes the given image scaling parameters */ public String img(String target, CmsImageScaler scaler, Map attributes, boolean partialTag) { try { return CmsJspTagImage.imageTagAction(target, scaler, attributes, partialTag, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container( Messages.GUI_ERR_IMG_SCALE_2, target, scaler == null ? "null" : scaler.toString()); return getMessage(msgContainer); }
/** * Sets the value of the HTML "alt" attribute.<p> * * @param value the value of the HTML "alt" attribute to set */ public void setAlt(String value) { setAttribute(ATTR_ALT, value, true); }
/** * Returns the value of the HTML "alt" attribute.<p> * * @return the value of the HTML "alt" attribute */ public String getAlt() { return getAttribute(ATTR_ALT); }
/** * Returns the HTML for an <code><img src="..." /></code> tag that includes the given image scaling parameters.<p> * * @param target the target URI of the file in the OpenCms VFS * @param scaler the image scaler to use for scaling the image * @param attributes a map of additional HTML attributes that are added to the output * @param partialTag if <code>true</code>, the opening <code><img</code> and closing <code> /></code> is omitted * * @return the HTML for an <code><img src></code> tag that includes the given image scaling parameters */ public String img(String target, CmsImageScaler scaler, Map<String, String> attributes, boolean partialTag) { try { return CmsJspTagImage.imageTagAction(target, scaler, attributes, partialTag, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container( Messages.GUI_ERR_IMG_SCALE_2, target, scaler == null ? "null" : scaler.toString()); return getMessage(msgContainer); }
/** * Sets the value of the HTML "hspace" attribute.<p> * * @param value the value of the HTML "hspace" attribute to set */ public void setHspace(String value) { setAttribute(ATTR_HSPACE, value); }
/** * Returns the value of the HTML "vspace" attribute.<p> * * @return the value of the HTML "vspace" attribute */ public String getVspace() { return getAttribute(ATTR_VSPACE); }
/** * Sets the value of the HTML "name" attribute.<p> * * @param value the value of the HTML "name" attribute to set */ public void setName(String value) { setAttribute(ATTR_NAME, value); }
/** * Returns the value of the HTML "class" attribute.<p> * * @return the value of the HTML "class" attribute */ public String getCssclass() { return getAttribute(ATTR_CLASS); }
/** * Sets the value of the HTML "title" attribute.<p> * * @param value the value of the HTML "title" attribute to set */ public void setTitle(String value) { setAttribute(ATTR_TITLE, value); }
/** * Returns the value of the HTML "style" attribute.<p> * * @return the value of the HTML "style" attribute */ public String getStyle() { return getAttribute(ATTR_STYLE); }
/** * Sets the given key with the given value in the attribute map.<p> * * @param key the key to set * @param value the value to set */ private void setAttribute(String key, String value) { setAttribute(key, value, false); }
/** * Returns the value of the HTML "name" attribute.<p> * * @return the value of the HTML "name" attribute */ public String getName() { return getAttribute(ATTR_NAME); }
/** * Sets the value of the HTML "id" attribute.<p> * * @param value the value of the HTML "id" attribute to set */ @Override public void setId(String value) { setAttribute(ATTR_ID, value); }