classcamembert::ItemList

sys::Obj
  fwt::Widget
    fwt::Canvas
      petanque::Panel
        camembert::ItemList : camembert::Themable

ItemList

addItem

Source

Void addItem(Item item)

clear

Source

Void clear()

colCount

Source

virtual override Int colCount := 5 { private set }

collapse

Source

Void collapse(FileItem base)

Collapse a folder and all subfolders

colw

Source

virtual override Int colw

doMouseUp

Source

virtual Void doMouseUp(Event event)

expand

Source

Void expand(FileItem base, Bool recurse := false)

Expand a folder if recurse is true then expand any subfolder as well

files

Source

FileItem[] files()

findForFile

Source

FileItem? findForFile(File f)

font

Source

Font? font

fontColor

Source

Color? fontColor

frame

Source

Frame? frame { private set }

highlight

Source

Item? highlight

itemh

Source

Int itemh()

items

Source

Item[] items := Item[,]

lineCount

Source

virtual override Int lineCount()

lineh

Source

virtual override Int lineh()

make

Source

new make(Frame frame, Item[] items, Int width := 200)

onPaintLines

Source

virtual override Void onPaintLines(Graphics g, Range lines)

paintItem

Source

virtual Void paintItem(Graphics g, Item item, Int x, Int y)

prefSize

Source

virtual override Size prefSize(Hints hints := Hints.defVal)

refresh

Source

Void refresh(File base, FileItem[] newItems)

Refresh an item tree, typically a directory base is the item (base of tree) being refreshed

selectedItemColor

Source

Color? selectedItemColor

toggleCollapse

Source

Void toggleCollapse(FileItem item)

Toggle collapse / expand an item (1 level)

updateTheme

Source

virtual override Void updateTheme()

width

Source

Int width