public class CubaFoldersPane
extends com.vaadin.ui.VerticalLayout
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
CubaFoldersPane() |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.ui.Component |
addFoldersLabel(com.vaadin.ui.AbstractLayout layout,
com.vaadin.ui.Label label) |
protected java.lang.String |
addIdInStr(java.lang.String inputStr,
java.util.UUID uuid) |
protected void |
adjustLayout() |
void |
asyncReloadAppFolders() |
protected <T extends AbstractSearchFolder> |
collapseItemInTree(CubaTree<T> tree,
java.lang.String foldersCollapse) |
protected com.vaadin.ui.Component |
createAppFoldersPane() |
protected CubaTimer.ActionListener |
createAppFolderUpdater() |
protected void |
createFoldersPaneLayout(com.vaadin.ui.Component appFoldersPane,
com.vaadin.ui.Component searchFoldersPane) |
protected CubaVerticalActionsLayout |
createFoldersPaneLayout(com.vaadin.ui.Component foldersPane,
com.vaadin.ui.Label foldersLabel) |
protected com.vaadin.ui.Component |
createSearchFoldersPane() |
protected <T extends Folder> |
fillTree(CubaTree<T> tree,
java.util.List<T> folders) |
protected int |
folderDepth(Folder folder) |
protected com.vaadin.server.Resource |
getAppFolderIcon(AppFolder item) |
com.vaadin.ui.Tree |
getAppFoldersTree() |
protected java.util.Collection<AppFolder> |
getChildFolders(AppFolder parentFolder) |
protected Folder |
getFolderParent(Folder folder)
Returns a given folder's parent only if it's not marked as deleted,
otherwise there will be an exception, because a folder returns a not null parent,
but there is no such item in tree as it's not loaded as separate folder as it's marked as deleted.
|
Frame |
getFrame() |
protected boolean |
getItemClickable(Folder folder) |
protected java.util.List<AppFolder> |
getReloadedFolders() |
protected com.vaadin.server.Resource |
getSearchFolderIcon(SearchFolder item) |
java.util.Collection<SearchFolder> |
getSearchFolders() |
com.vaadin.ui.Tree |
getSearchFoldersTree() |
protected void |
handleFoldersPaneShortcutAction(com.vaadin.ui.Component foldersPane) |
protected java.lang.String |
idsToStr(java.util.List<java.util.UUID> uuids) |
protected void |
initAppFoldersContextMenu() |
protected void |
initSearchFoldersContextMenu() |
protected boolean |
isItemExpandable(Folder folder) |
protected boolean |
isNeedFoldersTitle() |
void |
loadFolders() |
protected void |
openFolder(AbstractSearchFolder folder) |
void |
refreshFolders() |
void |
reloadAppFolders() |
protected void |
reloadParentFolders(java.util.List<AppFolder> reloadedFolders) |
protected void |
reloadSingleParentFolder(AppFolder parentFolder,
java.util.List<AppFolder> reloadedFolders) |
void |
removeFolder(Folder folder) |
protected java.lang.String |
removeIdInStr(java.lang.String inputStr,
java.util.UUID uuid) |
Folder |
saveFolder(Folder folder) |
void |
savePosition() |
void |
setFrame(Frame frame) |
protected void |
setupAppFoldersPane(com.vaadin.ui.Component appFoldersPane) |
protected void |
setupSearchFoldersPane(com.vaadin.ui.Component searchFoldersPane) |
protected void |
setupUpdateTimer() |
protected void |
showFolders(boolean show) |
protected void |
stopExistingFoldersPaneTimer(AppUI ui) |
protected java.util.List<java.util.UUID> |
strToIds(java.lang.String inputStr) |
protected void |
updateFolders(java.util.List<AppFolder> reloadedFolders) |
addComponentsAndExpand, getState, getState
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMargin
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, 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, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
addListener, addStyleName, addStyleNames, attach, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static final java.lang.String C_FOLDERS_PANE
protected boolean visible
protected CubaTree<SearchFolder> searchFoldersTree
protected com.vaadin.ui.Label appFoldersLabel
protected com.vaadin.ui.Label searchFoldersLabel
protected CubaFoldersPane.FoldersPaneTimer timer
protected static final int DEFAULT_VERT_SPLIT_POS
protected int verticalSplitPos
protected com.vaadin.ui.VerticalSplitPanel vertSplit
protected WebConfig webConfig
protected Messages messages
protected Metadata metadata
protected UserSessionSource userSessionSource
protected UserSettingService userSettingService
protected FoldersService foldersService
protected DataService dataService
protected IconResolver iconResolver
protected UserSettingsTools userSettingsTools
protected Folders folders
protected EntityStates entityStates
protected BackgroundTaskWrapper<java.lang.Integer,java.util.List<AppFolder>> folderUpdateBackgroundTaskWrapper
protected Frame frame
public void loadFolders()
protected void showFolders(boolean show)
protected void createFoldersPaneLayout(com.vaadin.ui.Component appFoldersPane, com.vaadin.ui.Component searchFoldersPane)
protected CubaVerticalActionsLayout createFoldersPaneLayout(com.vaadin.ui.Component foldersPane, com.vaadin.ui.Label foldersLabel)
protected void handleFoldersPaneShortcutAction(com.vaadin.ui.Component foldersPane)
protected void setupSearchFoldersPane(com.vaadin.ui.Component searchFoldersPane)
protected void setupUpdateTimer()
protected void stopExistingFoldersPaneTimer(AppUI ui)
protected void setupAppFoldersPane(com.vaadin.ui.Component appFoldersPane)
protected <T extends AbstractSearchFolder> void collapseItemInTree(CubaTree<T> tree, java.lang.String foldersCollapse)
protected java.lang.String addIdInStr(java.lang.String inputStr, java.util.UUID uuid)
protected java.lang.String removeIdInStr(java.lang.String inputStr, java.util.UUID uuid)
protected java.util.List<java.util.UUID> strToIds(java.lang.String inputStr)
protected java.lang.String idsToStr(java.util.List<java.util.UUID> uuids)
protected com.vaadin.ui.Component addFoldersLabel(com.vaadin.ui.AbstractLayout layout, com.vaadin.ui.Label label)
public void savePosition()
protected CubaTimer.ActionListener createAppFolderUpdater()
public void refreshFolders()
public void reloadAppFolders()
public void asyncReloadAppFolders()
protected void reloadParentFolders(java.util.List<AppFolder> reloadedFolders)
protected void reloadSingleParentFolder(AppFolder parentFolder, @Nullable java.util.List<AppFolder> reloadedFolders)
protected java.util.List<AppFolder> getReloadedFolders()
protected void updateFolders(java.util.List<AppFolder> reloadedFolders)
protected void adjustLayout()
protected com.vaadin.ui.Component createAppFoldersPane()
protected void initAppFoldersContextMenu()
protected com.vaadin.server.Resource getAppFolderIcon(AppFolder item)
protected com.vaadin.ui.Component createSearchFoldersPane()
protected void initSearchFoldersContextMenu()
protected com.vaadin.server.Resource getSearchFolderIcon(SearchFolder item)
protected int folderDepth(Folder folder)
protected Folder getFolderParent(Folder folder)
folder
- a folder to obtain a parentprotected void openFolder(AbstractSearchFolder folder)
protected boolean isNeedFoldersTitle()
public void removeFolder(Folder folder)
public com.vaadin.ui.Tree getSearchFoldersTree()
public com.vaadin.ui.Tree getAppFoldersTree()
public java.util.Collection<SearchFolder> getSearchFolders()
protected boolean getItemClickable(Folder folder)
protected boolean isItemExpandable(Folder folder)
public void setFrame(Frame frame)
public Frame getFrame()