T - the value typepublic abstract class A_CmsFileSelectField<T> extends com.vaadin.v7.ui.CustomField<T> implements CmsEditableGroup.I_HasError
CmsPathSelectField.com.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEventcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.v7.ui.Field.ValueChangeEventcom.vaadin.v7.data.Buffered.SourceExceptioncom.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.Viewer| Modifier and Type | Field and Description |
|---|---|
protected CmsObject |
m_cms
CmsObject instance, doesn't have to be set.
|
protected boolean |
m_diableSiteSwitch
Indicates if changing the website should be possible.
|
protected java.lang.String |
m_fileSelectCaption
The file select dialog caption.
|
protected CmsResourceFilter |
m_filter
The filter used for reading resources.
|
protected boolean |
m_startWithSitemapView
The start with sitemap view flag.
|
protected com.vaadin.v7.ui.TextField |
m_textField
The text field containing the selected path.
|
| Constructor and Description |
|---|
A_CmsFileSelectField()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableSiteSwitch()
Disables the site switch function.
|
protected CmsResourceSelectDialog.Options |
getOptions()
Gets the options object.
|
boolean |
hasEditableGroupError()
Check if there is an error.
|
protected com.vaadin.ui.CssLayout |
initContent() |
protected void |
openFileSelector()
Opens the file selector dialog.
|
void |
requireFile()
Require the resource to be a file.
|
void |
requireFolder()
Require the resource to be a folder.
|
void |
resetRequireType()
Resets the type requirements.
|
protected boolean |
resourceIsValid(CmsResource resource)
Checks if the given resource is valid according to require Folder or File.
|
void |
setBasePath(java.lang.String path) |
void |
setCmsObject(CmsObject cms)
Method to set cms object to make it possible to user other site context.
|
void |
setDefaultPath(java.lang.String path)
Sets the default path to open if no Path is selected yet.
|
void |
setFileSelectButtonVisible(boolean visible)
Sets the visibility of the file select button.
|
void |
setFileSelectCaption(java.lang.String caption)
Sets the caption of the file select dialog.
|
void |
setResourceFilter(CmsResourceFilter filter)
Sets the filter to use for reading resources.
|
protected abstract void |
setResourceValue(CmsResource resource)
Sets the field value.
|
void |
setStartWithSitempaView(boolean startWithSitemapView)
Sets the start with sitemap view flag.
|
attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setHeight, setTabIndex, setWidthaddListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getType, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setValidationVisible, setValue, setValue, setValue, shouldHideErrors, validate, validate, valueChange, writeDesigngetExplicitImmediateValue, isImmediate, setImmediateaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected java.lang.String m_fileSelectCaption
protected CmsResourceFilter m_filter
protected boolean m_startWithSitemapView
protected com.vaadin.v7.ui.TextField m_textField
protected CmsObject m_cms
protected boolean m_diableSiteSwitch
public A_CmsFileSelectField()
public void disableSiteSwitch()
public boolean hasEditableGroupError()
CmsEditableGroup.I_HasErrorhasEditableGroupError in interface CmsEditableGroup.I_HasErrororg.opencms.ui.components.editablegroup.I_CmsEditableGroup.I_HasError#hasEditableGroupError()public void requireFile()
public void requireFolder()
public void resetRequireType()
public void setBasePath(java.lang.String path)
public void setCmsObject(CmsObject cms)
cms - Object to usepublic void setDefaultPath(java.lang.String path)
path - to be openedpublic void setFileSelectButtonVisible(boolean visible)
visible - booleanpublic void setFileSelectCaption(java.lang.String caption)
caption - the captionpublic void setResourceFilter(CmsResourceFilter filter)
filter - the new filterpublic void setStartWithSitempaView(boolean startWithSitemapView)
startWithSitemapView - the start with sitemap view flagprotected CmsResourceSelectDialog.Options getOptions()
protected com.vaadin.ui.CssLayout initContent()
initContent in class com.vaadin.v7.ui.CustomField<T>CustomField.initContent()protected void openFileSelector()
protected boolean resourceIsValid(CmsResource resource)
resource - to checkprotected abstract void setResourceValue(CmsResource resource)
resource - the resource