pub trait ColumnBehavior {
Show 15 methods
// Required methods
fn viewport_manager(&self) -> &RefCell<Option<ViewportManager>>;
fn buffer_mut(&mut self) -> &mut dyn BufferAPI;
fn buffer(&self) -> &dyn BufferAPI;
fn state_container(&self) -> &AppStateContainer;
// Provided methods
fn is_in_results_mode(&self) -> bool { ... }
fn apply_column_navigation_result(
&mut self,
result: NavigationResult,
direction: &str,
) { ... }
fn apply_column_operation_result(&mut self, result: ColumnOperationResult) { ... }
fn hide_current_column(&mut self) { ... }
fn unhide_all_columns(&mut self) { ... }
fn move_current_column_left(&mut self) { ... }
fn move_current_column_right(&mut self) { ... }
fn move_column_left(&mut self) { ... }
fn move_column_right(&mut self) { ... }
fn goto_first_column(&mut self) { ... }
fn goto_last_column(&mut self) { ... }
}
Expand description
Trait that provides column operation behavior for TUI components
This extracts column operation methods from EnhancedTui
to reduce coupling
Required Methods§
fn viewport_manager(&self) -> &RefCell<Option<ViewportManager>>
fn buffer_mut(&mut self) -> &mut dyn BufferAPI
fn buffer(&self) -> &dyn BufferAPI
fn state_container(&self) -> &AppStateContainer
Provided Methods§
fn is_in_results_mode(&self) -> bool
fn apply_column_operation_result(&mut self, result: ColumnOperationResult)
Sourcefn hide_current_column(&mut self)
fn hide_current_column(&mut self)
Hide the currently selected column
Sourcefn unhide_all_columns(&mut self)
fn unhide_all_columns(&mut self)
Unhide all columns
Sourcefn move_current_column_left(&mut self)
fn move_current_column_left(&mut self)
Move the current column left in the view
Sourcefn move_current_column_right(&mut self)
fn move_current_column_right(&mut self)
Move the current column right in the view
Sourcefn move_column_left(&mut self)
fn move_column_left(&mut self)
Navigate to the column on the left
Sourcefn move_column_right(&mut self)
fn move_column_right(&mut self)
Navigate to the column on the right
Sourcefn goto_first_column(&mut self)
fn goto_first_column(&mut self)
Navigate to the first column
Sourcefn goto_last_column(&mut self)
fn goto_last_column(&mut self)
Navigate to the last column