public class DefaultButton extends Button implements IActionControl
<button type='button' class='ui-sdbtn' onclick=... accesskey=...>
<span>
<img src="icon" border="0">
<u>l</u>abel text
<span>
</button>
| Constructor and Description |
|---|
DefaultButton()
Create an empty button.
|
DefaultButton(IUIAction<?> action)
Create a
IUIAction based button. |
DefaultButton(String txt)
Create a button with a text.
|
DefaultButton(String txt,
IClicked<DefaultButton> clicked) |
DefaultButton(String txt,
String icon)
Create a button with a text and an icon.
|
DefaultButton(String txt,
String icon,
IClicked<DefaultButton> clicked) |
DefaultButton(T instance,
IUIAction<T> action)
Create a
IUIAction based button. |
| Modifier and Type | Method and Description |
|---|---|
void |
createContent() |
IUIAction<?> |
getAction()
EXPERIMENTAL - UNSTABLE INTERFACE - Get the action associated with this button, or
null if the button is not action based.
|
String |
getComponentInfo() |
String |
getIcon() |
String |
getText()
Returns the text currently set on the button.
|
DefaultButton |
mini()
Define this as a "mini" button, usable to be added inside a table row.
|
void |
setDisabled(boolean disabled)
Set the input to disabled mode.
|
void |
setIcon(String name)
Sets a (new) icon on this button.
|
void |
setIconImage(Class<?> resourceBase,
String name)
Uses a resource as the base for the image.
|
void |
setText(String text)
Set a (new) text on the button's surface.
|
getAccessKey, getButtonValue, getDisabledBecause, getType, isDisabled, setAccessKey, setButtonValue, 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, createStatement, findComponentBundle, findParent, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getBrowserWindowSize, getCalculatedTestID, getClicked, getClientBounds, getComponentBundle, getComponentDataURL, getComponentDataURL, 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, onAddedToPage, 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 DefaultButton()
public DefaultButton(String txt)
txt - public DefaultButton(IUIAction<?> action) throws Exception
IUIAction based button.txt - Exceptionpublic DefaultButton(T instance,
IUIAction<T> action)
throws Exception
IUIAction based button.txt - Exceptionpublic DefaultButton(String txt, String icon)
txt - icon - public DefaultButton(String txt, IClicked<DefaultButton> clicked)
public DefaultButton(String txt, String icon, IClicked<DefaultButton> clicked)
public void createContent()
throws Exception
createContent in class NodeBaseExceptionpublic DefaultButton mini()
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(@Nullable String name)
name - public String getText()
public void setText(@Nullable String text)
setText in class NodeContainerNodeContainer.setText(java.lang.String)public String getComponentInfo()
getComponentInfo in class NodeBasepublic void setDisabled(boolean disabled)
IActionControlsetDisabled in interface IActionControlsetDisabled in class ButtonCopyright © 2017 etc.to. All rights reserved.