🚩 完善文件图标支持
This commit is contained in:
parent
6920774e64
commit
e469b8ba89
@ -1,7 +1,6 @@
|
|||||||
package org.jcnc.jnotepad.model.entity;
|
package org.jcnc.jnotepad.model.entity;
|
||||||
|
|
||||||
import javafx.scene.Node;
|
import javafx.scene.Node;
|
||||||
import org.kordamp.ikonli.javafx.FontIcon;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -23,15 +22,6 @@ public class DirFileModel {
|
|||||||
|
|
||||||
private List<DirFileModel> childFile;
|
private List<DirFileModel> childFile;
|
||||||
|
|
||||||
|
|
||||||
public DirFileModel(String path, String name, List<DirFileModel> childFile, FontIcon iconIsNotSelected, FontIcon iconIsSelected) {
|
|
||||||
this.path = path;
|
|
||||||
this.name = name;
|
|
||||||
this.childFile = childFile;
|
|
||||||
this.iconIsNotSelected = iconIsNotSelected;
|
|
||||||
this.iconIsSelected = iconIsSelected;
|
|
||||||
}
|
|
||||||
|
|
||||||
public DirFileModel(String path, String name, List<DirFileModel> childFile, Node iconIsNotSelected, Node iconIsSelected) {
|
public DirFileModel(String path, String name, List<DirFileModel> childFile, Node iconIsNotSelected, Node iconIsSelected) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
@ -44,7 +34,7 @@ public class DirFileModel {
|
|||||||
public List<DirFileModel> getChildFile() {
|
public List<DirFileModel> getChildFile() {
|
||||||
return childFile;
|
return childFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPath() {
|
public String getPath() {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
@ -70,17 +60,18 @@ public class DirFileModel {
|
|||||||
return iconIsNotSelected;
|
return iconIsNotSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIconIsNotSelected(FontIcon iconIsNotSelected) {
|
public void setIconIsNotSelected(Node iconIsNotSelected) {
|
||||||
this.iconIsNotSelected = iconIsNotSelected;
|
this.iconIsNotSelected = iconIsNotSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setIconIsSelected(Node iconIsSelected) {
|
||||||
|
this.iconIsSelected = iconIsSelected;
|
||||||
|
}
|
||||||
|
|
||||||
public Node getIconIsSelected() {
|
public Node getIconIsSelected() {
|
||||||
return iconIsSelected;
|
return iconIsSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIconIsSelected(FontIcon iconIsSelected) {
|
|
||||||
this.iconIsSelected = iconIsSelected;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChildFile(List<DirFileModel> childFile) {
|
public void setChildFile(List<DirFileModel> childFile) {
|
||||||
this.childFile = childFile;
|
this.childFile = childFile;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user