NODE - public class FolderSupport<NODE extends LibraryNode,FOLDER extends Folder<NODE>> extends Object
Folder.| Constructor and Description |
|---|
FolderSupport(FOLDER folder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(NODE node)
Adds content to
folder after checking the content can be added. |
void |
addContent(NODE node,
int position) |
FOLDER |
createCopy(FOLDER newFolder) |
List<String> |
getContentNames() |
boolean |
hasContent() |
boolean |
isContentNameAvailable(String name)
Tells if the given name is already attributed to any of
folder's content. |
void |
notifyAssociatedProjectWasSet(Project formerProject,
Project currentProject)
Notifies that the project was set to something.
|
public FolderSupport(FOLDER folder)
public void addContent(NODE node)
folder after checking the content can be added.node - the content to addpublic void addContent(NODE node, int position)
public boolean isContentNameAvailable(String name)
folder's content.name - public void notifyAssociatedProjectWasSet(Project formerProject, Project currentProject)
folder's content it is now associated
with a new project.
We dont want to expose a "setProject" method in folders, so the folder is reponsible for setting the project
association, then it can extend the operation by calling this method.public boolean hasContent()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.