com.liferay.faces.alloy.component.button
Class ButtonBase

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIOutcomeTarget
                  extended by javax.faces.component.html.HtmlOutcomeTargetButton
                      extended by com.liferay.faces.alloy.component.button.ButtonBase
All Implemented Interfaces:
com.liferay.faces.util.component.Styleable, EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder
Direct Known Subclasses:
Button

@Generated(value="com.liferay.alloy.tools.builder.FacesBuilder")
public abstract class ButtonBase
extends javax.faces.component.html.HtmlOutcomeTargetButton
implements com.liferay.faces.util.component.Styleable

Author:
Bruno Basto, Kyle Stiemann

Nested Class Summary
protected static class ButtonBase.ButtonPropertyKeys
           
 
Nested classes/interfaces inherited from class javax.faces.component.html.HtmlOutcomeTargetButton
javax.faces.component.html.HtmlOutcomeTargetButton.PropertyKeys
 
Field Summary
static String COMPONENT_TYPE
           
static String RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIOutcomeTarget
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
ATTRS_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
 
Fields inherited from interface com.liferay.faces.util.component.Styleable
STYLE, STYLE_CLASS
 
Constructor Summary
ButtonBase()
           
 
Method Summary
 Boolean getAutofocus()
          autofocus attribute description:
 String getStyleClass()
          styleClass attribute description:
 String getType()
          type attribute description:
 boolean isDisabled()
          disabled attribute description:
 void setAutofocus(Boolean autofocus)
          autofocus attribute description:
 void setDisabled(boolean disabled)
          disabled attribute description:
 void setStyleClass(String styleClass)
          styleClass attribute description:
 void setType(String type)
          type attribute description:
 
Methods inherited from class javax.faces.component.html.HtmlOutcomeTargetButton
getAccesskey, getAlt, getDefaultEventName, getDir, getEventNames, getImage, getLang, getOnblur, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRole, getStyle, getTabindex, getTitle, setAccesskey, setAlt, setDir, setImage, setLang, setOnblur, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRole, setStyle, setTabindex, setTitle
 
Methods inherited from class javax.faces.component.UIOutcomeTarget
getFamily, getOutcome, isDisableClientWindow, isIncludeViewParams, setDisableClientWindow, setIncludeViewParams, setOutcome
 
Methods inherited from class javax.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.faces.util.component.Styleable
getStyle, setStyle
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

RENDERER_TYPE

public static final String RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

ButtonBase

public ButtonBase()
Method Detail

getAutofocus

public Boolean getAutofocus()

autofocus attribute description:

HTML passthrough attribute specifying whether or not the component should automatically recieve focus on the initial page load.


setAutofocus

public void setAutofocus(Boolean autofocus)

autofocus attribute description:

HTML passthrough attribute specifying whether or not the component should automatically recieve focus on the initial page load.


isDisabled

public boolean isDisabled()

disabled attribute description:

When this flag is true, the component will be disabled, and the user will be unable to interact with the component.


setDisabled

public void setDisabled(boolean disabled)

disabled attribute description:

When this flag is true, the component will be disabled, and the user will be unable to interact with the component.


getStyleClass

public String getStyleClass()

styleClass attribute description:

List of CSS class names (separated by spaces) that are to be rendered within the class attribute.

Specified by:
getStyleClass in interface com.liferay.faces.util.component.Styleable
Overrides:
getStyleClass in class javax.faces.component.html.HtmlOutcomeTargetButton

setStyleClass

public void setStyleClass(String styleClass)

styleClass attribute description:

List of CSS class names (separated by spaces) that are to be rendered within the class attribute.

Specified by:
setStyleClass in interface com.liferay.faces.util.component.Styleable
Overrides:
setStyleClass in class javax.faces.component.html.HtmlOutcomeTargetButton

getType

public String getType()

type attribute description:

The type of the button: button (default), submit, or reset.


setType

public void setType(String type)

type attribute description:

The type of the button: button (default), submit, or reset.



Copyright © 2017 Liferay, Inc.. All rights reserved.