public class UICellExcel extends org.jboss.seam.excel.ui.UICell
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_CHARACTER_ENCODING  | 
static String | 
DEFAULT_CONTENT_TYPE  | 
protected String | 
forceType
Force type attribute, added here to ensure value expression resolution 
 | 
protected String | 
style
Style attribute, added here to ensure value expression resolution 
 | 
protected Object | 
value  | 
| Constructor and Description | 
|---|
UICellExcel()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
cmp2String(javax.faces.context.FacesContext facesContext,
          javax.faces.component.UIComponent component)
Helper method for rendering a component (usually on a facescontext with a caching reponsewriter) 
 | 
protected Object | 
convertStringToTargetType(String value,
                         String forceType)
Converts string value as returned by widget to the target type for an accurate cell format in the XLS/CSV export. 
 | 
String | 
getForceType()
Returns the force type attribute, used to force cell type to "date" or "number" for instance. 
 | 
String | 
getStyle()
Returns the style attribute, used to format cells with a specific  
forceType. | 
Object | 
getValue()  | 
void | 
restoreState(javax.faces.context.FacesContext context,
            Object state)  | 
Object | 
saveState(javax.faces.context.FacesContext context)  | 
void | 
setForceType(String forceType)  | 
void | 
setStyle(String style)  | 
void | 
setValue(Object value)  | 
getColumn, getDataType, getFamily, getItemType, getRow, setColumn, setRowgetComment, getCommentHeight, getCommentWidth, setComment, setCommentHeight, setCommentWidthgetChildrenOfType, getCommands, getItems, getParentByClass, getStyleClass, getWorkbook, setStyleClass, valueOfaddClientBehavior, 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, saveAttachedState, 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, setValueExpression, visitTreepublic static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARACTER_ENCODING
protected String forceType
public UICellExcel()
public Object getValue()
getValue in interface org.jboss.seam.excel.WorksheetItemgetValue in class org.jboss.seam.excel.ui.UICellpublic void setValue(Object value)
setValue in class org.jboss.seam.excel.ui.UICellprotected Object convertStringToTargetType(String value, String forceType)
public static String cmp2String(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws IOException
facesContext - The faces context to render tocomponent - The component to renderIOException - If the JSF helper class can't render the componentpublic String getStyle()
forceType. Sample value for dates
 formatting: "xls-format-mask: #{nxu:basicDateFormatter()};".getStyle in class org.jboss.seam.excel.ui.ExcelComponentpublic void setStyle(String style)
setStyle in class org.jboss.seam.excel.ui.ExcelComponentpublic String getForceType()
public void setForceType(String forceType)
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBaseCopyright © 2019 Nuxeo. All rights reserved.