/** * Pixels between icon and title text. * * * @return int * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public int getIconSpacing() { return getAttributeAsInt("iconSpacing"); }
/** * Height in pixels of the icon image. <P> If unset, defaults to <code>iconSize</code> * * * @return Integer * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public Integer getIconHeight() { return getAttributeAsInt("iconHeight"); }
/** * Width in pixels of the icon image. <P> If unset, defaults to <code>iconSize</code> * * * @return Integer * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public Integer getIconWidth() { return getAttributeAsInt("iconWidth"); }
/** * How big are the end pieces by default * * * @return int * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public int getCapSize() { return getAttributeAsInt("capSize"); }
/** * Size in pixels of the icon image. <P> The <code>iconWidth</code> and <code>iconHeight</code> properties can be used to * configure width and height separately. * * * @return int * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public int getIconSize() { return getAttributeAsInt("iconSize"); }
/** * The padding for a StretchImgButton's label is determined as follows. <P> If <code>labelHPad</code> is set it will * specify the horizontal padding applied to the label. Similarly if <code>labelVPad</code> is set it will specify the * vertical padding for the label, regardless of the button's {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} setting. <P> Otherwise <code>labelLengthPad</code> * can be set to specify the label padding along the length axis (ie: horizontal padding if {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} is false, otherwise vertical padding), and * <code>labelBreadthPad</code> can be set to specify the label padding along the other axis. <P> Otherwise the padding on * the length axis will match the {@link com.smartgwt.client.widgets.StretchImgButton#getCapSize capSize} and will be set * to zero on the breadth axis. <P> So by default the label will be sized to match the center image of the * StretchImgButton, but these settings allow the label to partially or wholly overlap the caps. * * * @return Integer */ public Integer getLabelHPad() { return getAttributeAsInt("labelHPad"); }
/** * The padding for a StretchImgButton's label is determined as follows. <P> If <code>labelHPad</code> is set it will * specify the horizontal padding applied to the label. Similarly if <code>labelVPad</code> is set it will specify the * vertical padding for the label, regardless of the button's {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} setting. <P> Otherwise <code>labelLengthPad</code> * can be set to specify the label padding along the length axis (ie: horizontal padding if {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} is false, otherwise vertical padding), and * <code>labelBreadthPad</code> can be set to specify the label padding along the other axis. <P> Otherwise the padding on * the length axis will match the {@link com.smartgwt.client.widgets.StretchImgButton#getCapSize capSize} and will be set * to zero on the breadth axis. <P> So by default the label will be sized to match the center image of the * StretchImgButton, but these settings allow the label to partially or wholly overlap the caps. * * * @return Integer */ public Integer getLabelVPad() { return getAttributeAsInt("labelVPad"); }
/** * The padding for a StretchImgButton's label is determined as follows. <P> If <code>labelHPad</code> is set it will * specify the horizontal padding applied to the label. Similarly if <code>labelVPad</code> is set it will specify the * vertical padding for the label, regardless of the button's {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} setting. <P> Otherwise <code>labelLengthPad</code> * can be set to specify the label padding along the length axis (ie: horizontal padding if {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} is false, otherwise vertical padding), and * <code>labelBreadthPad</code> can be set to specify the label padding along the other axis. <P> Otherwise the padding on * the length axis will match the {@link com.smartgwt.client.widgets.StretchImgButton#getCapSize capSize} and will be set * to zero on the breadth axis. <P> So by default the label will be sized to match the center image of the * StretchImgButton, but these settings allow the label to partially or wholly overlap the caps. * * * @return Integer */ public Integer getLabelBreadthPad() { return getAttributeAsInt("labelBreadthPad"); }
/** * The padding for a StretchImgButton's label is determined as follows. <P> If <code>labelHPad</code> is set it will * specify the horizontal padding applied to the label. Similarly if <code>labelVPad</code> is set it will specify the * vertical padding for the label, regardless of the button's {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} setting. <P> Otherwise <code>labelLengthPad</code> * can be set to specify the label padding along the length axis (ie: horizontal padding if {@link * com.smartgwt.client.widgets.StretchImgButton#getVertical vertical} is false, otherwise vertical padding), and * <code>labelBreadthPad</code> can be set to specify the label padding along the other axis. <P> Otherwise the padding on * the length axis will match the {@link com.smartgwt.client.widgets.StretchImgButton#getCapSize capSize} and will be set * to zero on the breadth axis. <P> So by default the label will be sized to match the center image of the * StretchImgButton, but these settings allow the label to partially or wholly overlap the caps. * * * @return Integer */ public Integer getLabelLengthPad() { return getAttributeAsInt("labelLengthPad"); }