@Generated(value="component.stg") public class UIButton extends AbstractUIButton implements SupportsAccessKey
component.stg
with class
ButtonTagDeclaration
.Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
Constructor and Description |
---|
UIButton() |
Modifier and Type | Method and Description |
---|---|
Character |
getAccessKey()
The access key of this control.
|
String |
getConfirmation()
Text to use as confirmation message.
|
CustomClass |
getCustomClass()
Sets a CSS class in its parent, if the parent supports it.
|
String |
getDefaultEventName() |
Collection<String> |
getEventNames() |
String |
getFamily() |
String |
getFragment()
The identifier of the page fragment which should
be brought into focus when the target page is
rendered.
|
String |
getImage()
Url to an image to display.
|
String |
getLabel()
A localized user presentable label for this component.
|
String |
getLink()
Link to an arbitrary URL, either an internal link or an external link.
|
Markup |
getMarkup() |
String |
getOutcome()
Link to an internal facelet page, like the outcome of an action.
|
Integer |
getTabIndex()
Controls the navigation of the focus through the
input controls on a page with the Tab-Key.
|
String |
getTarget()
Name of a frame where the resource retrieved via this hyperlink is to be
displayed.
|
String |
getTip()
Text value to display as tooltip.
|
boolean |
isDefaultCommand()
If true the command is executed as default -- for example if the
user presses the enter key inside a related input field.
|
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.
|
boolean |
isTransition()
Specify, if the command calls an JSF-Action.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
void |
setAccessKey(Character accessKey) |
void |
setConfirmation(String confirmation) |
void |
setCustomClass(CustomClass customClass) |
void |
setDefaultCommand(boolean defaultCommand) |
void |
setFragment(String fragment) |
void |
setImage(String image) |
void |
setLabel(String label) |
void |
setLink(String link) |
void |
setMarkup(Markup markup) |
void |
setOmit(boolean omit) |
void |
setOutcome(String outcome) |
void |
setTabIndex(Integer tabIndex) |
void |
setTarget(String target) |
void |
setTip(String tip) |
void |
setTransition(boolean transition) |
getFieldId, isParentOfCommands
isDisabled, isRendered, processDecodes, processEvent, queueEvent, setDisabled
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
addClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isTransient, markInitialState, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRendererType, isPlain
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.UIComponentBase
public String getDefaultEventName()
getDefaultEventName
in interface javax.faces.component.behavior.ClientBehaviorHolder
getDefaultEventName
in class javax.faces.component.UIComponentBase
public String getFamily()
getFamily
in class javax.faces.component.UICommand
public String getImage()
public void setImage(String image)
public String getLink()
Link 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!
getLink
in class AbstractUICommandBase
public void setLink(String link)
public Integer getTabIndex()
public void setTabIndex(Integer tabIndex)
public String getConfirmation()
getConfirmation
in class AbstractUICommandBase
public void setConfirmation(String confirmation)
public String getLabel()
getLabel
in interface SupportsAccessKey
getLabel
in class AbstractUICommand
public void setLabel(String label)
public boolean isTransition()
true
isTransition
in class AbstractUICommandBase
public void setTransition(boolean transition)
public String getTarget()
getTarget
in class AbstractUICommandBase
public void setTarget(String target)
public boolean isDefaultCommand()
false
public void setDefaultCommand(boolean defaultCommand)
public String getFragment()
getFragment
in class AbstractUICommandBase
public void setFragment(String fragment)
public Character getAccessKey()
getAccessKey
in interface SupportsAccessKey
public void setAccessKey(Character accessKey)
public CustomClass getCustomClass()
<tc:in> <tc:style customClass="my-emphasized"/> </tc:in>One capability is, to used external CSS libs.
getCustomClass
in interface Visual
public void setCustomClass(CustomClass customClass)
setCustomClass
in interface Visual
public String getTip()
public void setTip(String tip)
public boolean isOmit()
false
isOmit
in class AbstractUICommandBase
public void setOmit(boolean omit)
setOmit
in class AbstractUICommandBase
public String getOutcome()
getOutcome
in class AbstractUICommandBase
public void setOutcome(String outcome)
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.