Class DragAndDropFileInput
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
com.webmethods.caf.faces.component.input.FileInput
com.webmethods.caf.faces.component.input.DragAndDropFileInput
- All Implemented Interfaces:
IDynamicComponent
,EventListener
,ClientBehaviorHolder
,EditableValueHolder
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ValueHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
public class DragAndDropFileInput
extends FileInput
implements ClientBehaviorHolder, IDynamicComponent
Allows a user to upload a file via drag and drop
-
Field Summary
FieldsFields inherited from class javax.faces.component.UIInput
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAjaxBehaviorListener
(AjaxBehaviorListener listener) protected AjaxBehavior
boolean
boolean
Override to change the default valueboolean
void
Perform the initial programmatic manipulation of the component tree.void
setAction
(MethodExpression actionExpression) void
setExecute
(Object execute) void
setImmediate
(boolean immediate) void
setOnerror
(String onerror) void
void
setResetValues
(boolean resetValues) void
setValueExpression
(String name, ValueExpression binding) Methods inherited from class com.webmethods.caf.faces.component.input.FileInput
setMultiple
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, 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, processRestoreState, processSaveState, 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, visitTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
-
Field Details
-
FACET_UPLOAD_CMD
- See Also:
-
TYPE
- See Also:
-
-
Constructor Details
-
DragAndDropFileInput
public DragAndDropFileInput()
-
-
Method Details
-
getAction
-
setAction
-
setValueExpression
- Overrides:
setValueExpression
in classUIComponent
-
getExecute
-
setExecute
-
getRender
-
setRender
-
isImmediate
public boolean isImmediate()- Specified by:
isImmediate
in interfaceEditableValueHolder
- Overrides:
isImmediate
in classUIInput
-
setImmediate
public void setImmediate(boolean immediate) - Specified by:
setImmediate
in interfaceEditableValueHolder
- Overrides:
setImmediate
in classUIInput
-
addAjaxBehaviorListener
-
isResetValues
public boolean isResetValues() -
setResetValues
public void setResetValues(boolean resetValues) -
getOnerror
-
setOnerror
-
isMultiple
public boolean isMultiple()Override to change the default value- Overrides:
isMultiple
in classFileInput
-
getEventNames
- Specified by:
getEventNames
in interfaceClientBehaviorHolder
- Overrides:
getEventNames
in classUIComponentBase
-
getDefaultEventName
- Specified by:
getDefaultEventName
in interfaceClientBehaviorHolder
- Overrides:
getDefaultEventName
in classUIComponentBase
-
getAjaxBehavior
-
populateInitialComponents
public void populateInitialComponents()Description copied from interface:IDynamicComponent
Perform the initial programmatic manipulation of the component tree.- Specified by:
populateInitialComponents
in interfaceIDynamicComponent
-