com.legyver.fenxlib.widgets.filetree.tree.internal.RefreshingTreeItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fenxlib.widgets.filetree Show documentation
Show all versions of fenxlib.widgets.filetree Show documentation
FileTree widget for Fenxlib projects
package com.legyver.fenxlib.widgets.filetree.tree.internal;
import com.legyver.fenxlib.widgets.filetree.tree.FileTreeItem;
/**
* Placeholder message to display in tree
*/
@SuppressWarnings("unchecked")
public class RefreshingTreeItem extends FileTreeItem {
/**
* Construct a tree node to display placeholder text while the tree is refreshing
* @param message the message to display
*/
public RefreshingTreeItem(String message) {
super(message, null, null);
}
/**
* Construct a tree node to display a 'Refreshing' message in the tree while refreshing
*/
public RefreshingTreeItem() {
this("Refreshing");
}
/**
* NOOP
*/
protected void addFauxChild() {
//noop
}
/**
* Always returns true because this is only intended to be present when the tree is refreshing
* @return true
*/
@Override
public boolean refreshAndCheckIfRemovable() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy