|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
com.sun.webui.jsf.component.WebuiInput
com.sun.webui.jsf.component.FileChooser
public class FileChooser
The FileChooser component allows the user to select files and folders.
Field Summary | |
---|---|
static java.lang.String |
ALPHABETIC
Alphabetic sort field type |
static java.lang.String |
ALPHABETIC_ASC
|
static java.lang.String |
ALPHABETIC_DSC
|
static java.lang.String |
FILECHOOSER_ENTERPRESS_HELP_FACET
|
static java.lang.String |
FILECHOOSER_FILTER_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_FILTERON_TEXTFIELD_FACET
|
static java.lang.String |
FILECHOOSER_HIDDEN_BUTTON_FACET
|
static java.lang.String |
FILECHOOSER_HIDDENFIELD_ID
|
static java.lang.String |
FILECHOOSER_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_LISTBOX_FACET
|
static java.lang.String |
FILECHOOSER_LOOKIN_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_LOOKIN_TEXTFIELD_FACET
|
static java.lang.String |
FILECHOOSER_MULTISELECT_HELP_FACET
|
static java.lang.String |
FILECHOOSER_OPENFOLDER_BUTTON_FACET
|
static java.lang.String |
FILECHOOSER_SELECT_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_SELECTED_TEXTFIELD_FACET
|
static java.lang.String |
FILECHOOSER_SERVERNAME_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_SERVERNAME_STATICTEXT_FACET
default component ids |
static java.lang.String |
FILECHOOSER_SORT_LABEL_FACET
|
static java.lang.String |
FILECHOOSER_SORTMENU_FACET
|
static java.lang.String |
FILECHOOSER_UPLEVEL_BUTTON_FACET
|
static java.lang.String |
HYPHEN
|
static java.lang.String |
LASTMODIFIED
Sort "by last modified" field type |
static java.lang.String |
LASTMODIFIED_ASC
|
static java.lang.String |
LASTMODIFIED_DSC
|
static java.lang.String |
SIZE
Sort "by size" field type |
static java.lang.String |
SIZE_ASC
|
static java.lang.String |
SIZE_DSC
|
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
FileChooser()
Default constructor. |
Method Summary | |
---|---|
void |
displayAlert(java.lang.String summary,
java.lang.String detail,
java.lang.String[] summaryArgs,
java.lang.String[] detailArgs)
This method handles the display of error messages. |
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
FileChooser chooser,
java.lang.Object submittedValue)
Overloaded getConvertedValue called by our renderer. |
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
Create a value for the fileChooser component based on the submitted value, which are the user selections. |
java.lang.String |
getCurrentFolder()
Return the current folder. |
java.lang.String |
getDelimiterChar()
|
javax.faces.component.UIComponent |
getEnterInlineHelp()
Return a component that implements the inline help for the filter text field. |
java.lang.String |
getEscapeChar()
|
java.lang.String |
getFamily()
Return the family for this component. |
javax.faces.component.UIComponent |
getFileChooserTitle()
Return a component that implements the title text. |
javax.faces.component.UIComponent |
getFilterLabel()
Return a component that implements the filter input field label. |
javax.faces.component.UIComponent |
getFilterTextField()
Return a component that implements the filter input field. |
javax.faces.component.UIComponent |
getHiddenFCButton()
Get a hidden button. |
javax.faces.component.UIComponent |
getListComponent()
Return a component that implements the list of files and folders. |
java.lang.Object |
getLookin()
|
javax.faces.component.UIComponent |
getLookInLabel()
Return a component that implements the look in input field label. |
javax.faces.component.UIComponent |
getLookInTextField()
Return a component that implements the look in input field. |
com.sun.webui.jsf.model.ResourceModel |
getModel()
|
javax.faces.component.UIComponent |
getMultiSelectHelp()
Return a component that implements the inline help for selecting multiple rows from the listbox. |
javax.faces.component.UIComponent |
getOpenFolderButton()
Return a component that implements the open folder button. |
java.lang.String |
getParentFolder()
Return the current folder's parent folder. |
java.lang.String[] |
getRoots()
|
int |
getRows()
|
java.lang.Object |
getSelected()
This attribute represents the value of the fileChooser. |
javax.faces.component.UIComponent |
getSelectedTextField()
Return a component that implements the selected file(s) or folder(s) input field. |
javax.faces.component.UIComponent |
getSelectLabel()
Return a component that implements the selected file(s) or folder(s) input field label. |
java.lang.String |
getSeparatorString()
Return the path element separator. |
javax.faces.component.UIComponent |
getServerNameLabel()
Return a component that implements the server name field label. |
javax.faces.component.UIComponent |
getServerNameText()
Return a component that implements the server name field. |
javax.faces.component.UIComponent |
getSortComponent()
Return a component that implements the sort criteria menu. |
javax.faces.component.UIComponent |
getSortComponentLabel()
Return a component that implements the sort criteria menu. |
java.lang.String |
getSortField()
|
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
int |
getTabIndex()
Position of this element in the tabbing order of the current document. |
javax.faces.component.UIComponent |
getUpLevelButton(boolean disabled)
Return a component that implements the move up button. |
java.lang.Object |
getValue()
|
javax.el.ValueExpression |
getValueExpression(java.lang.String name)
Return the ValueExpression stored for the
specified name (if any), respecting any property aliases. |
boolean |
isDescending()
|
boolean |
isDisabled()
|
boolean |
isFileAndFolderChooser()
|
boolean |
isFolderChooser()
|
boolean |
isMultiple()
|
boolean |
isReadOnly()
|
boolean |
isRequired()
|
boolean |
isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
void |
processDecodes(javax.faces.context.FacesContext context)
Override the default UIComponentBase.processDecodes(javax.faces.context.FacesContext)
processing to perform the following steps. |
void |
processValidators(javax.faces.context.FacesContext context)
Override the default UIComponentBase.processValidators(javax.faces.context.FacesContext)
processing to perform the following steps. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setDescending(boolean descending)
Set descending to true to sort from the highest value to lowest value, such as Z-A for alphabetic, or largest file to smallest for sorting on file size. |
void |
setDisabled(boolean disabled)
Indicates that activation of this component by the user is not currently permitted. |
void |
setFileAndFolderChooser(boolean flag)
|
void |
setFolderChooser(boolean chooser)
|
void |
setLookin(java.lang.Object lookin)
Use this attribute to specify the initial folder to display in the Look In text field. |
void |
setModel(com.sun.webui.jsf.model.ResourceModel model)
Specifies the model associated with the FileChooser. |
void |
setMultiple(boolean multiple)
Set multiple to true to allow multiple files or folders to be selected from the list. |
void |
setReadOnly(boolean readOnly)
If readOnly is set to true, the value of the component is rendered as text, preceded by the label if one was defined. |
void |
setRows(int rows)
The number of items to display in the listbox. |
void |
setSelected(java.lang.Object selected)
This attribute represents the value of the fileChooser. |
void |
setSortField(java.lang.String sortField)
Field to use to sort the list of files. |
void |
setStyle(java.lang.String style)
CSS style(s) to be applied to the outermost HTML element when this component is rendered. |
void |
setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied to the outermost HTML element when this component is rendered. |
void |
setTabIndex(int tabIndex)
Position of this element in the tabbing order of the current document. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
Set the ValueExpression stored for the
specified name (if any), respecting any property
aliases. |
void |
setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
void |
updateModel(javax.faces.context.FacesContext context)
Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. |
void |
validate(javax.faces.context.FacesContext context)
Retrieve the submitted value with getSubmittedValue(). |
void |
validateFilterComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
This validation method is in addition to any that might be part of the component when specified as a facet. |
void |
validateLookInComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
This validation method is in addition to any that might be part of the component when specified as a facet. |
void |
validateSelectComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
This validation method is in addition to any that might be part of the component if specified as a facet. |
void |
validateSortComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
This validation method is in addition to any that might be part of the component if specified as a facet. |
Methods inherited from class com.sun.webui.jsf.component.WebuiInput |
---|
broadcast, getValidator, getValidatorExpression, getValueChangeListener, getValueChangeListenerExpression, processUpdates, setConverter, setId, setImmediate, setRendered, setRequired, setValidatorExpression, setValueChangeListenerExpression |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidatorMessage, getValidators, getValueChangeListeners, isImmediate, isLocalValueSet, isValid, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setLocalValueSet, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue |
Field Detail |
---|
public static final java.lang.String ALPHABETIC
public static final java.lang.String ALPHABETIC_ASC
public static final java.lang.String ALPHABETIC_DSC
public static final java.lang.String SIZE
public static final java.lang.String SIZE_ASC
public static final java.lang.String SIZE_DSC
public static final java.lang.String LASTMODIFIED
public static final java.lang.String LASTMODIFIED_ASC
public static final java.lang.String LASTMODIFIED_DSC
public static java.lang.String FILECHOOSER_SERVERNAME_STATICTEXT_FACET
public static java.lang.String FILECHOOSER_SERVERNAME_LABEL_FACET
public static java.lang.String FILECHOOSER_ENTERPRESS_HELP_FACET
public static java.lang.String FILECHOOSER_MULTISELECT_HELP_FACET
public static java.lang.String FILECHOOSER_LOOKIN_TEXTFIELD_FACET
public static java.lang.String FILECHOOSER_LOOKIN_LABEL_FACET
public static java.lang.String FILECHOOSER_LABEL_FACET
public static java.lang.String FILECHOOSER_FILTERON_TEXTFIELD_FACET
public static java.lang.String FILECHOOSER_FILTER_LABEL_FACET
public static java.lang.String FILECHOOSER_SELECTED_TEXTFIELD_FACET
public static java.lang.String FILECHOOSER_SELECT_LABEL_FACET
public static java.lang.String FILECHOOSER_UPLEVEL_BUTTON_FACET
public static java.lang.String FILECHOOSER_OPENFOLDER_BUTTON_FACET
public static java.lang.String FILECHOOSER_SORTMENU_FACET
public static java.lang.String FILECHOOSER_SORT_LABEL_FACET
public static java.lang.String FILECHOOSER_HIDDEN_BUTTON_FACET
public static java.lang.String FILECHOOSER_LISTBOX_FACET
public static java.lang.String FILECHOOSER_HIDDENFIELD_ID
public static final java.lang.String HYPHEN
Constructor Detail |
---|
public FileChooser()
Method Detail |
---|
public java.lang.String getFamily()
Return the family for this component.
getFamily
in class javax.faces.component.UIInput
public java.lang.String getEscapeChar()
public java.lang.String getDelimiterChar()
public java.lang.String getCurrentFolder()
getModel().getCurrentDir()
is returned.
public java.lang.String getSeparatorString()
getModel().getSeparatorString()
is returned.
public java.lang.String getParentFolder()
getModel().getParentFolder()
is returned.
If model is FileChooserModel
and there is no
parent folder null is returned.
public void setFileAndFolderChooser(boolean flag)
public boolean isFileAndFolderChooser()
public boolean isFolderChooser()
public void setFolderChooser(boolean chooser)
public com.sun.webui.jsf.model.ResourceModel getModel()
public java.lang.String[] getRoots()
public void processDecodes(javax.faces.context.FacesContext context)
Override the default UIComponentBase.processDecodes(javax.faces.context.FacesContext)
processing to perform the following steps.
rendered
property of this UIComponent
is false
, skip further processing.processDecodes()
method of all facets
of this FileChooser
, in the order determined
by a call to getFacets().keySet().iterator()
.processDecodes()
method of all children
of this FileChooser
, in the order determined
by a call to getChildren().keySet().iterator()
.
processDecodes
in class WebuiInput
context
- FacesContext
for the current request
java.lang.NullPointerException
- if context
is null
public void processValidators(javax.faces.context.FacesContext context)
Override the default UIComponentBase.processValidators(javax.faces.context.FacesContext)
processing to perform the following steps.
rendered
property of this UIComponent
is false
, skip further processing.processValidators()
method of all facets
and children of the fileChooser component except the
listbox. Then validate the listbox followed by the
filechooser component itself. The listbox needs to be
validated after the other components because its
value depends on user input to the other components.
processValidators
in class WebuiInput
context
- FacesContext
for the current request
java.lang.NullPointerException
- if context
is null
public void validate(javax.faces.context.FacesContext context)
Retrieve the submitted value with getSubmittedValue(). If this returns null, exit without further processing. (This indicates that no value was submitted for fileChooser.) Convert the submitted value into a "local value" of the appropriate data type by calling getConvertedValue(javax.faces.context.FacesContext, java.lang.Object). Validate the property by calling validateValue(javax.faces.context.FacesContext, java.lang.Object). If the valid property of this component is still true, retrieve the previous value of the component (with getValue()), store the new local value using setValue(), and reset the submitted value to null. If the local value is different from the previous value of this component, fire a ValueChangeEvent to be broadcast to all interested listeners. processing to perform the following steps.
rendered
property of this UIComponent
is false
, skip further processing.processUpdates()
method of all facets
of this FileChooser
, in the order determined
by a call to getFacets().keySet().iterator()
.
validate
in class javax.faces.component.UIInput
context
- FacesContext
for the current request
java.lang.NullPointerException
- if context
is null
public void validateLookInComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public void validateFilterComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public void validateSortComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public void validateSelectComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public void updateModel(javax.faces.context.FacesContext context)
updateModel
in class javax.faces.component.UIInput
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, FileChooser chooser, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public javax.faces.component.UIComponent getServerNameText()
serverNameText
is found
that component is returned. Otherwise a StaticText
component
is returned. It is assigned the id
getId() + "_serverNameText"
If the facet is not defined then the returned StaticText
component is recreated every time this method is called.
public javax.faces.component.UIComponent getEnterInlineHelp()
enterPressHelp
is found
that component is returned. Otherwise a HelpInline
component
is returned. It is assigned the id
getId() + "_enterPressHelp"
If the facet is not defined then the returned StaticText
component is created every time this method is called.
public javax.faces.component.UIComponent getMultiSelectHelp()
isMultiple
returns false, null is returned.
If a facet named multiSelectHelp
is found
that component is returned. Otherwise a HelpInline
component
is returned. It is assigned the id
getId() + "_multiSelectHelp"
If the facet is not defined then the returned HelpInline
component is created every time this method is called.
public javax.faces.component.UIComponent getServerNameLabel()
serverLabel
is found
that component is returned. Otherwise a Label
component
is returned. It is assigned the id
getId() + "_serverLabel"
If the facet is not defined then the returned Label
component is created every time this method is called.
public javax.faces.component.UIComponent getFileChooserTitle()
fileChooserLabel
is found
that component is returned. Otherwise a StaticText
component
is returned. It is assigned the id
getId() + "_fileChooserLabel"
If the facet is not defined then the returned StaticText
component is created every time this method is called.
public javax.faces.component.UIComponent getLookInTextField()
lookinField
is found
that component is returned. Otherwise a TextField
component
is returned. It is assigned the id
getId() + "_lookinField"
If the facet is not defined then the returned TextField
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getLookInLabel()
lookinLabel
is found
that component is returned. Otherwise a Label
component
is returned. It is assigned the id
getId() + "_lookinLabel"
If the facet is not defined then the returned Label
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getFilterTextField()
filterField
is found
that component is returned. Otherwise a TextField
component
is returned. It is assigned the id
getId() + "_filterField"
If the facet is not defined then the returned TextField
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getFilterLabel()
filterLabel
is found
that component is returned. Otherwise a Label
component
is returned. It is assigned the id
getId() + "_filterLabel"
If the facet is not defined then the returned Label
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getSelectedTextField()
selectedField
is found
that component is returned. Otherwise a TextField
component
is returned. It is assigned the id
getId() + "_selectedField"
If the facet is not defined then the returned TextField
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getSelectLabel()
selectedLabel
is found
that component is returned. Otherwise a Label
component
is returned. It is assigned the id
getId() + "_selectedLabel"
If the facet is not defined then the returned Label
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getSortComponent()
sortMenu
is found
that component is returned. Otherwise a DropDown
component
is returned. It is assigned the id
getId() + "_sortMenu"
If the facet is not defined then the returned DropDown
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getSortComponentLabel()
sortMenu
is found
that component is returned. Otherwise a DropDown
component
is returned. It is assigned the id
getId() + "_sortMenu"
If the facet is not defined then the returned DropDown
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getListComponent()
getId() + "_listEntries"
The returned Listbox
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getUpLevelButton(boolean disabled)
upButton
is found
that component is returned. Otherwise a Button
component
is returned. It is assigned the id
getId() + "_upButton"
If the facet is not defined then the returned Button
component is re-intialized every time this method is called.
disabled
- Flag indicating button is disabled
public javax.faces.component.UIComponent getOpenFolderButton()
openButton
is found
that component is returned. Otherwise a Button
component
is returned. It is assigned the id
getId() + "_openButton"
If the facet is not defined then the returned Button
component is re-intialized every time this method is called.
public javax.faces.component.UIComponent getHiddenFCButton()
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
Restore the state of this component.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class WebuiInput
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.
saveState
in interface javax.faces.component.StateHolder
saveState
in class WebuiInput
public void displayAlert(java.lang.String summary, java.lang.String detail, java.lang.String[] summaryArgs, java.lang.String[] detailArgs)
summary
- The error message summarydetail
- The error message detailpublic javax.el.ValueExpression getValueExpression(java.lang.String name)
Return the ValueExpression
stored for the
specified name (if any), respecting any property aliases.
getValueExpression
in class javax.faces.component.UIComponentBase
name
- Name of value binding expression to retrievepublic void setValueExpression(java.lang.String name, javax.el.ValueExpression binding)
Set the ValueExpression
stored for the
specified name (if any), respecting any property
aliases.
setValueExpression
in class javax.faces.component.UIComponentBase
name
- Name of value binding to setbinding
- ValueExpression to set, or null to removepublic boolean isRequired()
isRequired
in interface javax.faces.component.EditableValueHolder
isRequired
in class javax.faces.component.UIInput
public boolean isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
public void setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
isVisible()
public int getTabIndex()
Position of this element in the tabbing order of the current document. Tabbing order determines the sequence in which elements receive focus when the tab key is pressed. The value must be an integer between 0 and 32767.
public void setTabIndex(int tabIndex)
Position of this element in the tabbing order of the current document. Tabbing order determines the sequence in which elements receive focus when the tab key is pressed. The value must be an integer between 0 and 32767.
getTabIndex()
public java.lang.Object getValue()
getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIOutput
public boolean isDescending()
public void setDescending(boolean descending)
Set descending to true to sort from the highest value to lowest value, such as Z-A for alphabetic, or largest file to smallest for sorting on file size. The default is to sort in ascending order.
isDescending()
public boolean isDisabled()
public void setDisabled(boolean disabled)
Indicates that activation of this component by the user is not currently permitted.
isDisabled()
public java.lang.Object getLookin()
public void setLookin(java.lang.Object lookin)
Use this attribute to specify the initial folder to display in the
Look In text field. The contents of this folder will be displayed.
Only java.io.File
or java.lang.String
objects
can be bound to this attribute.
getLookin()
public void setModel(com.sun.webui.jsf.model.ResourceModel model)
Specifies the model associated with the FileChooser. The model
provides the file chooser with content displayed in the file
chooser's list. It provides other services as defined incom.sun.webui.jsf.model.ResourceModel
.
If the model attribute is not assigned a value, a FileChooserModel is
used as the ResourceModel instance. A value binding assigned to this
attribute must return an instance of ResourceModel.
getModel()
public boolean isMultiple()
public void setMultiple(boolean multiple)
Set multiple to true to allow multiple files or folders to be selected from the list. The default is false, which allows only one item to be selected.
isMultiple()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
If readOnly is set to true, the value of the component is rendered as text, preceded by the label if one was defined.
isReadOnly()
public int getRows()
public void setRows(int rows)
The number of items to display in the listbox. The value must be greater than or equal to one. The default value is 12. Invalid values are ignored and the value is set to 12.
getRows()
public java.lang.Object getSelected()
This attribute represents the value of the fileChooser. Depending on
the value of the folderChooser
attribute, the value of the selected
attribute can consist of
selected files or folders from the listbox and/or paths to files
or folders entered into the Selected File field.
If the multiple
attribute is true, the selected
attribute must be bound to
one of the following:
java.io.File[]
java.lang.String[]
java.util.List[]
such as java.util.ArrayList
, or java.util.LinkedList
, or java.util.Vector
containing instances of java.io.File
or java.lang.String
.
If the multiple
attribute is false,
the selected
attribute must
be bound to one of the following:
java.io.File
java.lang.String
If a type other than these is contained in a list type or bound
directly to the selected
attribute, then you must specify a converter with the converter
attribute.
public void setSelected(java.lang.Object selected)
This attribute represents the value of the fileChooser. Depending on
the value of the folderChooser
attribute, the value of the selected
attribute can consist of
selected files or folders from the listbox and/or paths to files
or folders entered into the Selected File field.
If the multiple
attribute is true, the selected
attribute must be bound to
one of the following:
java.io.File[]
java.lang.String[]
java.util.List[]
such as java.util.ArrayList
, or java.util.LinkedList
, or java.util.Vector
containing instances of java.io.File
or java.lang.String
.
If the multiple
attribute is false,
the selected
attribute must
be bound to one of the following:
java.io.File
java.lang.String
If a type other than these is contained in a list type or bound
directly to the selected
attribute, then you must specify a converter with the converter
attribute.
getSelected()
public java.lang.String getSortField()
public void setSortField(java.lang.String sortField)
Field to use to sort the list of files. Valid values are:
Note that these values are case sensitive. By default, the list is sorted alphabetically.
getSortField()
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
CSS style(s) to be applied to the outermost HTML element when this component is rendered.
getStyle()
public java.lang.String getStyleClass()
public void setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied to the outermost HTML element when this component is rendered.
getStyleClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |