Class ConfigFilesComponent
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UINamingContainer
-
- de.xima.fc.prompt.service.support.gui.component.ConfigFilesComponent
-
- All Implemented Interfaces:
EventListener,javax.faces.component.NamingContainer,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.UniqueIdVendor,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder
public class ConfigFilesComponent extends javax.faces.component.UINamingContainer
-
-
Field Summary
-
Fields inherited from class javax.faces.component.UINamingContainer
COMPONENT_FAMILY, COMPONENT_TYPE, SEPARATOR_CHAR_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description ConfigFilesComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPromptConfigFileDelete(javax.faces.event.ActionEvent event)Callback invoked when the user clicked on the delete button for a prompt config file.org.primefaces.model.StreamedContentonPromptConfigFileDownload(PromptConfigFile file)Callback invoked when the user clicks on the download button to download an existing prompt config file.voidonPromptConfigFileUpload(org.primefaces.event.FileUploadEvent event)Callback invoked when the user uploads files to add to the list of files.-
Methods inherited from class javax.faces.component.UINamingContainer
createUniqueId, getFamily, getSeparatorChar, visitTree
-
Methods inherited from class javax.faces.component.UIComponentBase
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, 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
-
-
-
-
Method Detail
-
onPromptConfigFileDelete
public void onPromptConfigFileDelete(javax.faces.event.ActionEvent event)
Callback invoked when the user clicked on the delete button for a prompt config file. Removes the file from the list of files.- Parameters:
event- The action event from the delete button click.
-
onPromptConfigFileDownload
public org.primefaces.model.StreamedContent onPromptConfigFileDownload(PromptConfigFile file)
Callback invoked when the user clicks on the download button to download an existing prompt config file.- Parameters:
file- The prompt config file to download.- Returns:
- A
StreamedContentwith the file's content, name, and MIME type.
-
onPromptConfigFileUpload
public void onPromptConfigFileUpload(org.primefaces.event.FileUploadEvent event)
Callback invoked when the user uploads files to add to the list of files.- Parameters:
event- The event containing the uploaded files
-
-