org.alfresco.web.ui.repo.component
Class UILockIcon
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
org.alfresco.web.ui.repo.component.UILockIcon
- All Implemented Interfaces:
- javax.faces.component.StateHolder
- Direct Known Subclasses:
- UIAVMLockIcon
public class UILockIcon
- extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent |
outputAttribute |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, 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, queueEvent, 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 |
UILockIcon
public UILockIcon()
getFamily
public java.lang.String getFamily()
- Specified by:
getFamily
in class javax.faces.component.UIComponent
- See Also:
UIComponent.getFamily()
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class javax.faces.component.UIComponentBase
- See Also:
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class javax.faces.component.UIComponentBase
- See Also:
StateHolder.saveState(javax.faces.context.FacesContext)
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.component.UIComponentBase
- Throws:
java.io.IOException
- See Also:
UIComponentBase.encodeBegin(javax.faces.context.FacesContext)
encodeBegin
protected void encodeBegin(javax.faces.context.FacesContext context,
boolean locked,
boolean lockedOwner,
java.lang.String[] lockUser)
throws java.io.IOException
- Throws:
java.io.IOException
getLockImage
public java.lang.String getLockImage()
- Returns:
- the image to display as the lock icon. A default is provided if none is set.
setLockImage
public void setLockImage(java.lang.String lockImage)
- Parameters:
lockImage
- the image to display as the lock icon. A default is provided if none is set.
getLockOwnerImage
public java.lang.String getLockOwnerImage()
- Returns:
- Returns the image to display if the owner has the lock.
setLockOwnerImage
public void setLockOwnerImage(java.lang.String lockOwnerImage)
- Parameters:
lockOwnerImage
- the image to display if the owner has the lock.
getAlign
public java.lang.String getAlign()
- Returns:
- Returns the image alignment value.
setAlign
public void setAlign(java.lang.String align)
- Parameters:
align
- The image alignment value to set.
getHeight
public int getHeight()
- Returns:
- Returns the icon height.
setHeight
public void setHeight(int height)
- Parameters:
height
- The icon height to set.
getWidth
public int getWidth()
- Returns:
- Returns the icon width.
setWidth
public void setWidth(int width)
- Parameters:
width
- The iconwidth to set.
getLockedOwnerTooltip
public java.lang.String getLockedOwnerTooltip()
- Returns:
- Returns the lockedOwnerTooltip.
setLockedOwnerTooltip
public void setLockedOwnerTooltip(java.lang.String lockedOwnerTooltip)
- Parameters:
lockedOwnerTooltip
- The lockedOwnerTooltip to set.
getLockedUserTooltip
public java.lang.String getLockedUserTooltip()
- Returns:
- Returns the lockedUserTooltip.
setLockedUserTooltip
public void setLockedUserTooltip(java.lang.String lockedUserTooltip)
- Parameters:
lockedUserTooltip
- The lockedUserTooltip to set.
getValue
public java.lang.Object getValue()
- Returns:
- Returns the value (Node or NodeRef)
setValue
public void setValue(java.lang.Object value)
- Parameters:
value
- The Node or NodeRef value to set.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.