public class SheetColumn
extends javax.faces.component.UIInput
implements javax.faces.component.behavior.ClientBehaviorHolder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_FAMILY |
static java.lang.String |
COMPONENT_TYPE |
| Constructor and Description |
|---|
SheetColumn() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColType()
the Handsontable column type.
|
java.lang.Integer |
getColWidth()
The column width
|
java.lang.String |
getFamily() |
java.lang.Object |
getFilterBy()
The filterBy expression
|
java.util.Collection<javax.faces.model.SelectItem> |
getFilterOptions()
The filterOptions expression
|
java.lang.String |
getFilterValue()
The filter value submitted by the user
|
java.lang.String |
getHeaderText()
The fixed column count.
|
Sheet |
getSheet()
Get the parent sheet
|
java.lang.String |
getStyleClass()
The style class for the cell.
|
java.lang.Object |
getValue()
When asked for the value, return the local value if available, otherwise the sheet value.
|
java.lang.Boolean |
isReadonly()
Flag indicating whether this column is read only.
|
java.lang.Boolean |
isReadonlyCell()
Flag indicating whether this cell is read only.
|
boolean |
isValid()
We are valid if the sheet is valid, we do not track at the individual column.
|
void |
processDecodes(javax.faces.context.FacesContext context)
Sheet handles decoding of all submitted values
|
void |
processUpdates(javax.faces.context.FacesContext context)
Sheet handles updating of model
|
void |
processValidators(javax.faces.context.FacesContext context)
Don't do anything when called by inherited behavior.
|
void |
resetValue()
Reset the local value.
|
void |
setColType(java.lang.String value)
Updates the column type.
|
void |
setColWidth(java.lang.Integer value)
Updates the column width
|
void |
setFilterBy(java.lang.Object filterBy)
Update the filter by field
|
void |
setFilterOptions(java.util.Collection<javax.faces.model.SelectItem> filterOptions)
Update the filterOptions field
|
void |
setFilterValue(java.lang.String filterValue)
Update the filter value for this column
|
void |
setHeaderText(java.lang.String value)
Updates the fixed columns count.
|
void |
setReadonly(java.lang.Boolean value)
Updates the readOnly property
|
void |
setReadonlyCell(java.lang.Boolean value)
Updates the readOnly property of the cell
|
void |
setSheet(Sheet sheet)
Updates the sheet reference to work around getParent sometimes returning null.
|
void |
setStyleClass(java.lang.String value)
Update the style class for the cell.
|
void |
setValid(boolean valid)
when we become valid, invalidate the whole sheet.
|
void |
setValue(java.lang.Object value)
Ignore attempts to set the local value for this column, again done by parent.
|
void |
validate(javax.faces.context.FacesContext context)
Process all validators (skip normal UIInput behavior)
|
protected boolean |
validateRequired(javax.faces.context.FacesContext context,
java.lang.Object newValue)
Validates the value against the required flags on this column.
|
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, markInitialState, removeValidator, removeValueChangeListener, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValidator, setValidatorMessage, setValueChangeListener, updateModel, validateValuegetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, 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, processRestoreState, processSaveState, 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, visitTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIInputpublic void setHeaderText(java.lang.String value)
value - public java.lang.String getHeaderText()
public void setReadonly(java.lang.Boolean value)
value - public java.lang.Boolean isReadonly()
public void setReadonlyCell(java.lang.Boolean value)
value - public java.lang.Boolean isReadonlyCell()
public void setColWidth(java.lang.Integer value)
value - public java.lang.Integer getColWidth()
public void setColType(java.lang.String value)
value - public java.lang.String getColType()
TODO make this an enum and limit choices
public void setStyleClass(java.lang.String value)
value - public java.lang.String getStyleClass()
public java.lang.Object getFilterBy()
public void setFilterBy(java.lang.Object filterBy)
filterBy - public java.lang.String getFilterValue()
public void setFilterValue(java.lang.String filterValue)
filterValue - public java.util.Collection<javax.faces.model.SelectItem> getFilterOptions()
public void setFilterOptions(java.util.Collection<javax.faces.model.SelectItem> filterOptions)
public Sheet getSheet()
public void setSheet(Sheet sheet)
sheet - the owning sheetpublic void setValue(java.lang.Object value)
setValue in interface javax.faces.component.ValueHoldersetValue in class javax.faces.component.UIInputpublic java.lang.Object getValue()
getValue in interface javax.faces.component.ValueHoldergetValue in class javax.faces.component.UIInputpublic boolean isValid()
isValid in interface javax.faces.component.EditableValueHolderisValid in class javax.faces.component.UIInputpublic void setValid(boolean valid)
setValid in interface javax.faces.component.EditableValueHoldersetValid in class javax.faces.component.UIInputpublic void processDecodes(javax.faces.context.FacesContext context)
processDecodes in class javax.faces.component.UIInputpublic void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIInputpublic void resetValue()
resetValue in interface javax.faces.component.EditableValueHolderresetValue in class javax.faces.component.UIInputpublic void processValidators(javax.faces.context.FacesContext context)
processValidators in class javax.faces.component.UIInputpublic void validate(javax.faces.context.FacesContext context)
validate in class javax.faces.component.UIInputprotected boolean validateRequired(javax.faces.context.FacesContext context,
java.lang.Object newValue)
context - the FacesContextnewValue - the new value for this columnCopyright © 2011–2018. All rights reserved.