class flux::Frame
sys::Obj fwt::Widget fwt::Pane fwt::ContentPane fwt::Window flux::Frame
Frame is the main top level window in flux applications.
- command
-
FluxCommand? command(Str id)
Lookup a predefined command by id or return null if not found. See
CommandId
for the predefined id strings. - console
-
Console console()
Convenience for getting the console sidebar.
- findById
-
static Frame? findById(Str id, Bool checked := true)
Lookup a frame by its id within the VM. If the frame cannot be found and checked is true then throw an Err, otherwise return null. This method can only be called on the UI thread.
- id
-
const Str id
Get the id of this frame within the VM. The id may be used as an immutable pointer to the frame to pass between threads. See
findById
to resolve a frame by id. The id is an opaque string, no attempt should be made to interpret the format. - load
-
Void load(Uri uri, LoadMode mode := LoadMode.<ctor>())
Load the specified resource Uri in the active tab. The default mode will replace the current tab.
- loadMark
-
Void loadMark(Mark mark, LoadMode mode := LoadMode.<ctor>())
Load the specified mark's Uri in the active tab. If the current tab is already at the specified uri, then it is not reloaded.
- marks
-
Mark[] marks := Mark[,].ro
The current mark list for the frame. This is the list of uris with optional line/col numbers which the user can currently cycle thru using the jumpPrev and jumpNext commands. This list is always readonly, set the field to update the marks and invoke the onMarks callback for each view.
- select
-
Select the active view tab.
- sideBar
-
SideBar? sideBar(Type t, Bool make := true)
Get the sidebar for the specified SideBar type. If the sidebar has already been created for this frame then return that instance. Otherwise if make is true, then create a new sidebar for this frame. If make is false return null.
- sideBars
-
SideBar[] sideBars()
Get the sidebars which are currently created for this frame. This list includes both showing and hidden sidebars.
- view
-
View view()
Get the active view. A given frame always has exactly one view active.
- views
-
View[] views()
Get the list of views this frame has opened in tabs.