@Deprecated public class CalcButton extends Button
An HTML button containing a rendered image as the button content. This button creates a button by creating the full visible presence of the button as a server-side rendered image. The button can contain a text, an icon or both, and things like the text color, font and style can be manipulated. The actual rendering process uses a properties file 'defaultbutton.properties' present in the current theme. This property file contains all of the basic rendering options for rendering the button, like:
| Constructor and Description |
|---|
CalcButton()
Deprecated.
Create an empty button.
|
CalcButton(String txt)
Deprecated.
Create a button with a text.
|
CalcButton(String txt,
IClicked<CalcButton> clicked)
Deprecated.
|
CalcButton(String txt,
String icon)
Deprecated.
Create a button with a text and an icon.
|
CalcButton(String txt,
String icon,
IClicked<CalcButton> clicked)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Deprecated.
Returns the text currently set on the button.
|
void |
onAddedToPage(Page p)
Deprecated.
When attached to a page, this causes the Button Image Renderer URL to be
set in the image.
|
void |
setConfig(Class<?> resourceBase,
String name)
Deprecated.
Set the rendering properties file to be used to render the button image, as a class
resource.
|
void |
setConfig(String src)
Deprecated.
Set the rendering properties file to be used to render the button image.
|
void |
setIcon(String name)
Deprecated.
Sets a (new) icon on this button.
|
void |
setIconImage(Class<?> resourceBase,
String name)
Deprecated.
Uses a resource as the base for the image.
|
void |
setText(String text)
Deprecated.
Set a (new) text on the button's surface.
|
getAccessKey, getButtonValue, getDisabledBecause, getType, isDisabled, setAccessKey, setButtonValue, setDisabled, setDisabled, setDisabledBecause, setType, visitadd, add, add, addTable, addTableForLayout, addTableForLayout, appendTreeErrors, canContain, createFrame, delegateTo, disableAllChildControlsDeep, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChildren, getDelegate, getErrorFence, getTextContents, hasError, internalAdd, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalCreateFrame, internalGetNodeCount, internalGetOldChildren, internalOnBeforeRender, internalShelve, internalUnshelve, iterator, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setErrorFence, setErrorFence, setValue, undelegatedAdd, undelegatedGetChild$, acceptRequestParameter, addBinding, addCssClass, addGlobalMessage, addNotificationListener, afterCreateContent, alignToLeft, alignToLeft, alignToMiddle, alignToMiddle, alignTopToBottom, alignTopToBottom, alignToRight, alignToRight, alignToTop, alignToTop, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, appendJQuerySelector, appendJsCustomUpdatesContributor, appendShowOverflowTextAsTitleJs, appendStatement, beforeCreateContent, bind, bind, bindErrors, build, calcTestID, changed, changedJavascriptState, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, clearValidationFailure, componentHandleWebAction, componentHandleWebDataRequest, createContent, createStatement, findComponentBundle, findParent, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getBrowserWindowSize, getCalculatedTestID, getClicked, getClientBounds, getComponentBundle, getComponentDataURL, getComponentDataURL, getComponentInfo, getComponentJSONURL, getCreateJS, getCssClass, getErrorList, getErrorLocation, getFocusID, getMessage, getOnClickJS, getOnMouseDownJS, getOnSizeAndPositionChange, getPage, getParent, getParent, getParent, getParentOfTypes, getSharedContext, getSharedContextFactory, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTestRepeatId, getThemedResourceRURL, getTitle, getUserObject, handleDrop, hasCssClass, hasParent, internalGetOldParent, internalGetParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalRenderJavascriptDelta, internalRenderJavascriptState, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isAttached, isBuilt, isFocusable, isFocusRequested, isRendersOwnClose, isStretchHeight, lc, notify, notifyParentOrOpenerPage, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, onRemoveFromPage, onShelve, onUnshelve, refresh, remove, removeBinding, removeCssClass, renderJavascriptDelta, renderJavascriptState, renderJavascriptState, replaceWith, setBrowserWindowSize, setCalculcatedId, setCalculcatedId, setClicked, setClientBounds, setComponentBundle, setCssClass, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setOnSizeAndPositionChange, setOverrideTitle, setSpecialAttribute, setStretchHeight, setTestID, setTestRepeatID, setTitle, setUserObject, toStringgetBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetTestIDforEach, spliteratorpublic CalcButton()
public CalcButton(String txt)
txt - public CalcButton(String txt, String icon)
txt - icon - public CalcButton(String txt, IClicked<CalcButton> clicked)
public CalcButton(String txt, String icon, IClicked<CalcButton> clicked)
public void setConfig(String src)
src - public void setConfig(Class<?> resourceBase, String name)
resourceBase - name - public void setIconImage(Class<?> resourceBase, String name)
resourceBase - The base location for the specified name. Name is resolved with this class as the base.name - The resource's name relative to the class.public void setIcon(String name)
name - public void onAddedToPage(Page p)
onAddedToPage in class NodeBaseNodeBase.onAddedToPage(to.etc.domui.dom.html.Page)public String getText()
public void setText(@Nullable String text)
setText in class NodeContainerNodeContainer.setText(java.lang.String)Copyright © 2017 etc.to. All rights reserved.