/** * Whether to show media in the center section, that is, behind the decorated Canvas. * * * @return Boolean */ public Boolean getShowCenter() { return getAttributeAsBoolean("showCenter"); }
/** * Height in pixels for bottom corners and edges. Defaults to edgeSize when unset. * * * @return Integer */ public Integer getEdgeBottom() { return getAttributeAsInt("edgeBottom"); }
/** * Background color for the center section only. Can be used as a surrogate background color for the decorated Canvas, if * the Canvas is set to partially overlap the edges and hence can't show a background color itself without occluding media. * * * @return String */ public String getCenterBackgroundColor() { return getAttributeAsString("centerBackgroundColor"); }
/** * If specified, the {@link com.smartgwt.client.widgets.EdgedCanvas#getEdgeStyleName edgeStyleName} will be treated as a * base style name and appended with following suffixes to support separate styling per cell: <P> <code>_TL</code> (top * left cell)<br> <code>_T</code> (top center cell)<br> <code>_TR</code> (top right cell)<br> <code>_L</code> (middle left * cell)<br> <code>_C</code> (center cell)<br> <code>_R</code> (middle right cell)<br> <code>_BL</code> (bottom left * cell)<br> <code>_B</code> (bottom center cell)<br> <code>_BR</code> (bottom right cell) * * @param addEdgeStyleSuffix addEdgeStyleSuffix Default value is false */ public void setAddEdgeStyleSuffix(Boolean addEdgeStyleSuffix) { setAttribute("addEdgeStyleSuffix", addEdgeStyleSuffix, true); }
public static EdgedCanvas getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (EdgedCanvas) obj; } else { return new EdgedCanvas(jsObj); } }
/** * Height in pixels for bottom corners and edges. Defaults to edgeSize when unset. * * @param edgeBottom edgeBottom Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setEdgeBottom(Integer edgeBottom) throws IllegalStateException { setAttribute("edgeBottom", edgeBottom, false); }
/** * Whether to show media in the center section, that is, behind the decorated Canvas. * * @param showCenter showCenter Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowCenter(Boolean showCenter) throws IllegalStateException { setAttribute("showCenter", showCenter, false); }
/** * Height in pixels for left corners and edges. Defaults to edgeSize when unset. * * * @return Integer */ public Integer getEdgeLeft() { return getAttributeAsInt("edgeLeft"); }
/** * Standard skin directory for edge images (sides and corners). * * * @return String */ public String getSkinImgDir() { return getAttributeAsString("skinImgDir"); }
/** * If specified, the {@link com.smartgwt.client.widgets.EdgedCanvas#getEdgeStyleName edgeStyleName} will be treated as a * base style name and appended with following suffixes to support separate styling per cell: <P> <code>_TL</code> (top * left cell)<br> <code>_T</code> (top center cell)<br> <code>_TR</code> (top right cell)<br> <code>_L</code> (middle left * cell)<br> <code>_C</code> (center cell)<br> <code>_R</code> (middle right cell)<br> <code>_BL</code> (bottom left * cell)<br> <code>_B</code> (bottom center cell)<br> <code>_BR</code> (bottom right cell) * * * @return Boolean */ public Boolean getAddEdgeStyleSuffix() { return getAttributeAsBoolean("addEdgeStyleSuffix"); }
/** * Standard skin directory for edge images (sides and corners). * * @param skinImgDir skinImgDir Default value is "images/edges/" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setSkinImgDir(String skinImgDir) throws IllegalStateException { setAttribute("skinImgDir", skinImgDir, false); }
/** * Amount the contained Canvas should be offset from the bottom. Defaults to the size for the bottom edge. Set smaller to * allow the contained Canvas to overlap the edge and corner media. * * * @return Integer */ public Integer getEdgeOffsetBottom() { return getAttributeAsInt("edgeOffsetBottom"); }
/** * Base name of images for edges. Extensions for each corner or edge piece will be added to this image URL, before the * extension. For example, with the default base name of "edge.gif", the top-left corner image will be "edge_TL.gif". <P> * The full list of extensions is: "_TL", "_TR", "_BL", "_BR", "_T", "_L", "_B", "_R", "_center". * * * @return String */ public String getEdgeImage() { return getAttributeAsString("edgeImage"); }
/** * Amount the contained Canvas should be offset from the right. Defaults to the size for the right edge. Set smaller to * allow the contained Canvas to overlap the edge and corner media. * <p><b>Note : </b> This is an advanced setting</p> * * @param edgeOffsetRight edgeOffsetRight Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setEdgeOffsetRight(Integer edgeOffsetRight) throws IllegalStateException { setAttribute("edgeOffsetRight", edgeOffsetRight, false); }
/** * Amount the contained Canvas should be offset from the top. Defaults to the size for the top edge. Set smaller to * allow the contained Canvas to overlap the edge and corner media. * * * @return Integer */ public Integer getEdgeOffsetTop() { return getAttributeAsInt("edgeOffsetTop"); }
/** * Optional property specifying the CSS ClassName to apply to the various parts of this edged canvas (top, bottom, corners, * sides and center). To apply separate styles for each part, use {@link * com.smartgwt.client.widgets.EdgedCanvas#getAddEdgeStyleSuffix addEdgeStyleSuffix}. * * * @return String */ public String getEdgeStyleName() { return getAttributeAsString("edgeStyleName"); }
/** * CSS color (WITHOUT "#") for the edges. If specified, will be used as part of image names. Example: * "edge_88FF88_TL.gif". * * @param edgeColor edgeColor Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setEdgeColor(String edgeColor) throws IllegalStateException { setAttribute("edgeColor", edgeColor, false); }
/** * Height in pixels for right corners and edges. Defaults to edgeSize when unset. * * * @return Integer */ public Integer getEdgeRight() { return getAttributeAsInt("edgeRight"); }
/** * CSS color (WITHOUT "#") for the edges. If specified, will be used as part of image names. Example: * "edge_88FF88_TL.gif". * * * @return String */ public String getEdgeColor() { return getAttributeAsString("edgeColor"); }
/** * Base name of images for edges. Extensions for each corner or edge piece will be added to this image URL, before the * extension. For example, with the default base name of "edge.gif", the top-left corner image will be "edge_TL.gif". <P> * The full list of extensions is: "_TL", "_TR", "_BL", "_BR", "_T", "_L", "_B", "_R", "_center". * * @param edgeImage edgeImage Default value is "[SKIN]/rounded/frame/FFFFFF/6.png" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setEdgeImage(String edgeImage) throws IllegalStateException { setAttribute("edgeImage", edgeImage, false); }