classcamembert::FileItem

sys::Obj
  camembert::Item
    camembert::FileItem

@Serializable

FileItem

collapsed

Source

Bool collapsed := false { private set }

file

Source

const File? file

isProject

Source

Bool isProject := false

makeFile

Source

new makeFile(File? f, Int indent := 0)

makeProject

Source

new makeProject(File f, Int indent := 0, Str? sortPath := null)

Source

virtual override Menu? popup(Frame frame)

call when item is right clicked

selected

Source

virtual override Void selected(Frame frame)

Called when this item is left clicked

setCollapsed

Source

This setCollapsed(Bool val)

setProject

Source

This setProject(Bool val)

setSortStr

Source

This setSortStr(Str sortStr)

sortStr

Source

Str? sortStr