Klasse UIButton
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
- Alle implementierten Schnittstellen:
- EventListener,- javax.faces.component.ActionSource,- javax.faces.component.ActionSource2,- javax.faces.component.behavior.ClientBehaviorHolder,- javax.faces.component.PartialStateHolder,- javax.faces.component.StateHolder,- javax.faces.component.TransientStateHolder,- javax.faces.event.ComponentSystemEventListener,- javax.faces.event.FacesListener,- javax.faces.event.SystemEventListenerHolder,- SupportFieldId,- SupportsAccessKey,- SupportsAutoSpacing,- Visual
@Generated("component.stg")
public class UIButton
extends AbstractUIButton
implements SupportsAccessKey
Renders a button element.
 UIComponent class, generated from template 
component.stg with class
 ButtonTagDeclaration.- 
FeldübersichtFelderVon Klasse geerbte Felder javax.faces.component.UIComponentATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungThe access key of this control.Automatically add spacing (margins/paddings) to the component for better positioning.Text to use as confirmation message.Sets a CSS class in its parent, if the parent supports it.The identifier of the page fragment which should be brought into focus when the target page is rendered.getImage()Url to an image to display.getLabel()A localized user presentable label for this component.getLink()Link to an arbitrary URL, either an internal link or an external link.Link to an internal facelet page, like the outcome of an action.Controls the navigation of the focus through the input controls on a page with the Tab-Key.Name of a frame where the resource retrieved via this hyperlink is to be displayed.getTip()Text value to display as tooltip.booleanIf true the command is executed as default -- for example if the user presses the enter key inside a related input field.booleanisOmit()Flag indicating that the action of this element, will not be executed from client side (e. g. when the user clicks a button.booleanSpecify, if the command calls an JSF-Action.voidrestoreState(javax.faces.context.FacesContext context, Object state) voidsetAccessKey(Character accessKey) voidsetAutoSpacing(Boolean autoSpacing) voidsetConfirmation(String confirmation) voidsetCustomClass(CustomClass customClass) voidsetDefaultCommand(boolean defaultCommand) voidsetFragment(String fragment) voidvoidvoidvoidvoidsetOmit(boolean omit) voidsetOutcome(String outcome) voidsetTabIndex(Integer tabIndex) voidvoidvoidsetTransition(boolean transition) Von Klasse geerbte Methoden org.apache.myfaces.tobago.internal.component.AbstractUICommandgetFieldId, isParentOfCommandsVon Klasse geerbte Methoden org.apache.myfaces.tobago.internal.component.AbstractUICommandBaseisDisabled, isRendered, processDecodes, processEvent, queueEvent, setDisabledVon Klasse geerbte Methoden javax.faces.component.UICommandaddActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValueVon Klasse geerbte Methoden javax.faces.component.UIComponentBaseaddClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, markInitialState, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTreeVon Klasse geerbte Methoden javax.faces.component.UIComponentgetClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEventVon Klasse geerbte Methoden java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior, getClientBehaviorsVon Schnittstelle geerbte Methoden org.apache.myfaces.tobago.component.SupportsAutoSpacinggetAutoSpacingVon Schnittstelle geerbte Methoden org.apache.myfaces.tobago.component.VisualgetRendererType, isPlain
- 
Felddetails- 
COMPONENT_TYPE
- 
COMPONENT_FAMILY- Siehe auch:
 
 
- 
- 
Konstruktordetails- 
UIButtonpublic UIButton()
 
- 
- 
Methodendetails- 
getEventNames- Angegeben von:
- getEventNamesin Schnittstelle- javax.faces.component.behavior.ClientBehaviorHolder
- Setzt außer Kraft:
- getEventNamesin Klasse- javax.faces.component.UIComponentBase
 
- 
getDefaultEventName- Angegeben von:
- getDefaultEventNamein Schnittstelle- javax.faces.component.behavior.ClientBehaviorHolder
- Setzt außer Kraft:
- getDefaultEventNamein Klasse- javax.faces.component.UIComponentBase
 
- 
getFamily- Setzt außer Kraft:
- getFamilyin Klasse- javax.faces.component.UICommand
 
- 
getImageUrl to an image to display.- Angegeben von:
- getImagein Klasse- AbstractUICommand
 
- 
setImage
- 
getMarkup
- 
setMarkup
- 
getLinkLink to an arbitrary URL, either an internal link or an external link. For internal URLs, a session id will be added, if needed (when cookies disabled). The context path needs to be added manually e.g. #{request.contextPath}. For JSF navigation to a viewId use the outcome attribute! The semantic of this attributes has been changed from Tobago 3 to 4! - Angegeben von:
- getLinkin Klasse- AbstractUICommandBase
 
- 
setLink
- 
getTabIndexControls the navigation of the focus through the input controls on a page with the Tab-Key. The navigation starts from the element with the lowest tabIndex value to the element with the highest value. Elements that have identical tabIndex values should be navigated in the order they appear in the character stream Elements that are disabled or with a negative tabIndex do not participate in the tabbing order.
- 
setTabIndex
- 
getConfirmationText to use as confirmation message.- Angegeben von:
- getConfirmationin Klasse- AbstractUICommandBase
 
- 
setConfirmation
- 
getLabelA localized user presentable label for this component.- Angegeben von:
- getLabelin Schnittstelle- SupportsAccessKey
- Angegeben von:
- getLabelin Klasse- AbstractUICommand
 
- 
setLabel
- 
isTransitionpublic boolean isTransition()Specify, if the command calls an JSF-Action. Useful to switch off the Double-Submit-Check and Waiting-Behavior.
 Default:true- Angegeben von:
- isTransitionin Klasse- AbstractUICommandBase
 
- 
setTransitionpublic void setTransition(boolean transition) 
- 
getTargetName of a frame where the resource retrieved via this hyperlink is to be displayed.- Angegeben von:
- getTargetin Klasse- AbstractUICommandBase
 
- 
setTarget
- 
isDefaultCommandpublic boolean isDefaultCommand()If true the command is executed as default -- for example if the user presses the enter key inside a related input field.
 Default:false
- 
setDefaultCommandpublic void setDefaultCommand(boolean defaultCommand) 
- 
getFragmentThe identifier of the page fragment which should be brought into focus when the target page is rendered. The value of this attribute is appended to the end of target URL following a hash (#) mark. This notation is part of the standard URL syntax.- Angegeben von:
- getFragmentin Klasse- AbstractUICommandBase
 
- 
setFragment
- 
getAutoSpacingAutomatically add spacing (margins/paddings) to the component for better positioning. Default is 'true' except the component is inside a: - header - footer - bar - sheet - tree - link group - button group - before facet - after facet - label facet - bar facet- Angegeben von:
- getAutoSpacingin Schnittstelle- SupportsAutoSpacing
 
- 
setAutoSpacing
- 
getAccessKeyThe access key of this control.- Angegeben von:
- getAccessKeyin Schnittstelle- SupportsAccessKey
 
- 
setAccessKey
- 
getCustomClassSets a CSS class in its parent, if the parent supports it. Which this feature it is possible to put a CSS class name into a component with the <tc:style> tag. Example:<tc:in> <tc:style customClass="my-emphasized"/> </tc:in>One capability is, to used external CSS libs.
 This feature should not be used imprudent. Because it might be unstable against changes in the renderered HTML code.- Angegeben von:
- getCustomClassin Schnittstelle- Visual
 
- 
setCustomClass- Angegeben von:
- setCustomClassin Schnittstelle- Visual
 
- 
getTipText value to display as tooltip.
- 
setTip
- 
isOmitpublic boolean isOmit()Flag indicating that the action of this element, will not be executed from client side (e. g. when the user clicks a button. When setting this value to true, the action will not be executed by the Tobago, but it can executed by JavaScript. This attribute is useful, when you want to add JavaScript event handlers to commands manually. In this case you usually don't want a submit with a full reload of the page.
 Default:false- Angegeben von:
- isOmitin Klasse- AbstractUICommandBase
 
- 
setOmitpublic void setOmit(boolean omit) - Angegeben von:
- setOmitin Klasse- AbstractUICommandBase
 
- 
getOutcomeLink to an internal facelet page, like the outcome of an action. The context path will be added. A session id will be added, if needed.- Angegeben von:
- getOutcomein Klasse- AbstractUICommandBase
 
- 
setOutcome
- 
restoreState- Angegeben von:
- restoreStatein Schnittstelle- javax.faces.component.StateHolder
- Setzt außer Kraft:
- restoreStatein Klasse- javax.faces.component.UIComponentBase
 
 
-