org.apache.struts.faces.component
Class CommandLinkComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by org.apache.struts.faces.component.CommandLinkComponent
All Implemented Interfaces:
javax.faces.component.ActionSource, javax.faces.component.StateHolder

public class CommandLinkComponent
extends javax.faces.component.UICommand

Custom component that emulates the JSF standard component class javax.faces.component.html.HtmlCommandLink (and its corresponding renderer) but is not tied to a particular implementation of renderer for javax.faces.component.UIForm.


Field Summary
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
CommandLinkComponent()
          Create a new CommandLinkComponent with default properties.
 
Method Summary
 java.lang.String getAccesskey()
           
 java.lang.String getCharset()
           
 java.lang.String getDir()
           
 java.lang.String getFamily()
          Return the component family to which this component belongs.
 java.lang.String getHreflang()
           
 java.lang.String getLang()
           
 java.lang.String getOnblur()
           
 java.lang.String getOnclick()
           
 java.lang.String getOndblclick()
           
 java.lang.String getOnfocus()
           
 java.lang.String getOnkeydown()
           
 java.lang.String getOnkeypress()
           
 java.lang.String getOnkeyup()
           
 java.lang.String getOnmousedown()
           
 java.lang.String getOnmousemove()
           
 java.lang.String getOnmouseout()
           
 java.lang.String getOnmouseover()
           
 java.lang.String getOnmouseup()
           
 java.lang.String getRel()
           
 java.lang.String getRev()
           
 java.lang.String getStyle()
           
 java.lang.String getStyleClass()
           
 java.lang.String getTabindex()
           
 java.lang.String getTarget()
           
 java.lang.String getTitle()
           
 java.lang.String getType()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
          Restore the state of this component.
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          Save the state of this component.
 void setAccesskey(java.lang.String accesskey)
           
 void setCharset(java.lang.String charset)
           
 void setDir(java.lang.String dir)
           
 void setHreflang(java.lang.String hreflang)
           
 void setLang(java.lang.String lang)
           
 void setOnblur(java.lang.String onblur)
           
 void setOnclick(java.lang.String onclick)
           
 void setOndblclick(java.lang.String ondblclick)
           
 void setOnfocus(java.lang.String onfocus)
           
 void setOnkeydown(java.lang.String onkeydown)
           
 void setOnkeypress(java.lang.String onkeypress)
           
 void setOnkeyup(java.lang.String onkeyup)
           
 void setOnmousedown(java.lang.String onmousedown)
           
 void setOnmousemove(java.lang.String onmousemove)
           
 void setOnmouseout(java.lang.String onmouseout)
           
 void setOnmouseover(java.lang.String onmouseover)
           
 void setOnmouseup(java.lang.String onmouseup)
           
 void setRel(java.lang.String rel)
           
 void setRev(java.lang.String rev)
           
 void setStyle(java.lang.String style)
           
 void setStyleClass(java.lang.String styleClass)
           
 void setTabindex(java.lang.String tabindex)
           
 void setTarget(java.lang.String target)
           
 void setTitle(java.lang.String title)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLinkComponent

public CommandLinkComponent()

Create a new CommandLinkComponent with default properties.

Method Detail

getAccesskey

public java.lang.String getAccesskey()

setAccesskey

public void setAccesskey(java.lang.String accesskey)

getCharset

public java.lang.String getCharset()

setCharset

public void setCharset(java.lang.String charset)

getDir

public java.lang.String getDir()

setDir

public void setDir(java.lang.String dir)

getFamily

public java.lang.String getFamily()

Return the component family to which this component belongs.

Overrides:
getFamily in class javax.faces.component.UICommand

getHreflang

public java.lang.String getHreflang()

setHreflang

public void setHreflang(java.lang.String hreflang)

getLang

public java.lang.String getLang()

setLang

public void setLang(java.lang.String lang)

getOnblur

public java.lang.String getOnblur()

setOnblur

public void setOnblur(java.lang.String onblur)

getOnclick

public java.lang.String getOnclick()

setOnclick

public void setOnclick(java.lang.String onclick)

getOndblclick

public java.lang.String getOndblclick()

setOndblclick

public void setOndblclick(java.lang.String ondblclick)

getOnfocus

public java.lang.String getOnfocus()

setOnfocus

public void setOnfocus(java.lang.String onfocus)

getOnkeydown

public java.lang.String getOnkeydown()

setOnkeydown

public void setOnkeydown(java.lang.String onkeydown)

getOnkeypress

public java.lang.String getOnkeypress()

setOnkeypress

public void setOnkeypress(java.lang.String onkeypress)

getOnkeyup

public java.lang.String getOnkeyup()

setOnkeyup

public void setOnkeyup(java.lang.String onkeyup)

getOnmousedown

public java.lang.String getOnmousedown()

setOnmousedown

public void setOnmousedown(java.lang.String onmousedown)

getOnmousemove

public java.lang.String getOnmousemove()

setOnmousemove

public void setOnmousemove(java.lang.String onmousemove)

getOnmouseout

public java.lang.String getOnmouseout()

setOnmouseout

public void setOnmouseout(java.lang.String onmouseout)

getOnmouseover

public java.lang.String getOnmouseover()

setOnmouseover

public void setOnmouseover(java.lang.String onmouseover)

getOnmouseup

public java.lang.String getOnmouseup()

setOnmouseup

public void setOnmouseup(java.lang.String onmouseup)

getRel

public java.lang.String getRel()

setRel

public void setRel(java.lang.String rel)

getRev

public java.lang.String getRev()

setRev

public void setRev(java.lang.String rev)

getStyle

public java.lang.String getStyle()

setStyle

public void setStyle(java.lang.String style)

getStyleClass

public java.lang.String getStyleClass()

setStyleClass

public void setStyleClass(java.lang.String styleClass)

getTabindex

public java.lang.String getTabindex()

setTabindex

public void setTabindex(java.lang.String tabindex)

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)

Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UICommand
Parameters:
context - FacesContext for the current request
state - State object from which to restore our state

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)

Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UICommand
Parameters:
context - FacesContext for the current request


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.