public abstract class DynamicResourceBase extends javax.faces.component.UIComponentBase implements IDynamicResource
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DynamicResourceBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
DynamicResourceBase() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFamily() |
java.lang.String |
getFileName()
Return the value of the
fileName property. |
java.lang.String |
getImage()
Return the value of the
image property. |
java.lang.String |
getLabel()
Return the value of the
label property. |
java.util.Date |
getLastModified()
Return the value of the
lastModified property. |
java.lang.String |
getMimeType()
Return the value of the
mimeType property. |
javax.faces.application.Resource |
getResource()
Return the value of the
resource property. |
java.lang.String |
getScope()
Return the value of the
scope property. |
java.lang.String |
getStyle()
Return the value of the
style property. |
java.lang.String |
getStyleClass()
Return the value of the
styleClass property. |
java.lang.String |
getTarget()
Return the value of the
target property. |
java.lang.String |
getType()
Return the value of the
type property. |
boolean |
isAttachment()
Return the value of the
attachment property. |
boolean |
isDisabled()
Return the value of the
disabled property. |
protected boolean |
isPropertySet(java.lang.String finder) |
void |
setAttachment(boolean attachment)
Set the value of the
attachment property. |
void |
setDisabled(boolean disabled)
Set the value of the
disabled property. |
void |
setFileName(java.lang.String fileName)
Set the value of the
fileName property. |
void |
setImage(java.lang.String image)
Set the value of the
image property. |
void |
setLabel(java.lang.String label)
Set the value of the
label property. |
void |
setLastModified(java.util.Date lastModified)
Set the value of the
lastModified property. |
void |
setMimeType(java.lang.String mimeType)
Set the value of the
mimeType property. |
void |
setResource(javax.faces.application.Resource resource)
Set the value of the
resource property. |
void |
setScope(java.lang.String scope)
Set the value of the
scope property. |
void |
setStyle(java.lang.String style)
Set the value of the
style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the
styleClass property. |
void |
setTarget(java.lang.String target)
Set the value of the
target property. |
void |
setType(java.lang.String type)
Set the value of the
type property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void setAttachment(boolean attachment)
Set the value of the attachment property.
Contents: If true, specifies that the resource should be downloaded as an attachment. See also the resource attribute.
setAttachment in interface IDynamicResourcepublic boolean isAttachment()
Return the value of the attachment property.
Contents: If true, specifies that the resource should be downloaded as an attachment. See also the resource attribute.
isAttachment in interface IDynamicResourcepublic void setDisabled(boolean disabled)
Set the value of the disabled property.
Contents: Flag indicating that this element must never receive focus or be included in a subsequent submit.
setDisabled in interface IDynamicResourcepublic boolean isDisabled()
Return the value of the disabled property.
Contents: Flag indicating that this element must never receive focus or be included in a subsequent submit.
isDisabled in interface IDynamicResourcepublic void setFileName(java.lang.String fileName)
Set the value of the fileName property.
Contents: The file name to be used for the attachment header. If the label is not specified the file name will be used. See also the resource attribute.
setFileName in interface IDynamicResourcepublic java.lang.String getFileName()
Return the value of the fileName property.
Contents: The file name to be used for the attachment header. If the label is not specified the file name will be used. See also the resource attribute.
getFileName in interface IDynamicResourcepublic void setImage(java.lang.String image)
Set the value of the image property.
Contents: The image path that will be used to display an image for link instead of text.
setImage in interface IDynamicResourcepublic java.lang.String getImage()
Return the value of the image property.
Contents: The image path that will be used to display an image for link instead of text.
getImage in interface IDynamicResourcepublic void setLabel(java.lang.String label)
Set the value of the label property.
Contents: The label to be displayed for the resource. The label will be used for the text of the link or button. If an image is used, the label will be used as the alt attribute value of the image element.
setLabel in interface IDynamicResourcepublic java.lang.String getLabel()
Return the value of the label property.
Contents: The label to be displayed for the resource. The label will be used for the text of the link or button. If an image is used, the label will be used as the alt attribute value of the image element.
getLabel in interface IDynamicResourcepublic void setLastModified(java.util.Date lastModified)
Set the value of the lastModified property.
Contents: The java.util.Data object specifying the last modified header that will be sent to the browser for this resource. See also the resource attribute.
setLastModified in interface IDynamicResourcepublic java.util.Date getLastModified()
Return the value of the lastModified property.
Contents: The java.util.Data object specifying the last modified header that will be sent to the browser for this resource. See also the resource attribute.
getLastModified in interface IDynamicResourcepublic void setMimeType(java.lang.String mimeType)
Set the value of the mimeType property.
Contents: The mime-type for the resource. If not specified, and available from the backing Resource, the Resource's mime-type will be used. See also the resource attribute.
setMimeType in interface IDynamicResourcepublic java.lang.String getMimeType()
Return the value of the mimeType property.
Contents: The mime-type for the resource. If not specified, and available from the backing Resource, the Resource's mime-type will be used. See also the resource attribute.
getMimeType in interface IDynamicResourcepublic void setResource(javax.faces.application.Resource resource)
Set the value of the resource property.
Contents: The object of type com.icesoft.faces.context.Resource that will be used. It can be use to override the attachment, fileName, lastModified and mimeType attributes via the withOptions() method.
setResource in interface IDynamicResourcepublic javax.faces.application.Resource getResource()
Return the value of the resource property.
Contents: The object of type com.icesoft.faces.context.Resource that will be used. It can be use to override the attachment, fileName, lastModified and mimeType attributes via the withOptions() method.
getResource in interface IDynamicResourcepublic void setScope(java.lang.String scope)
Set the value of the scope property.
Contents: The scope in which the resource will be stored. The values can be 'flash', 'view', window', 'session', and 'application'. When not specified the 'session' scope is used.
setScope in interface IDynamicResourcepublic java.lang.String getScope()
Return the value of the scope property.
Contents: The scope in which the resource will be stored. The values can be 'flash', 'view', window', 'session', and 'application'. When not specified the 'session' scope is used.
getScope in interface IDynamicResourcepublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
setStyle in interface IDynamicResourcepublic java.lang.String getStyle()
Return the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
getStyle in interface IDynamicResourcepublic void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
setStyleClass in interface IDynamicResourcepublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
getStyleClass in interface IDynamicResourcepublic void setTarget(java.lang.String target)
Set the value of the target property.
Contents: Value of the target attribute when resource is rendered as a link and image.
setTarget in interface IDynamicResourcepublic java.lang.String getTarget()
Return the value of the target property.
Contents: Value of the target attribute when resource is rendered as a link and image. Default = '_blank'.
getTarget in interface IDynamicResourcepublic void setType(java.lang.String type)
Set the value of the type property.
Contents: The type of link to render: link (default) image: renders a link with an image (must be used with the image attribute) button: renders a button with the text from value
setType in interface IDynamicResourcepublic java.lang.String getType()
Return the value of the type property.
Contents: The type of link to render: link (default) image: renders a link with an image (must be used with the image attribute) button: renders a button with the text from value
getType in interface IDynamicResourceprotected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.