Struct j4rs::jfx::FxController
source · pub struct FxController { /* private fields */ }
Implementations§
source§impl FxController
impl FxController
sourcepub fn on_initialized_callback(&self, jvm: &Jvm) -> Result<InstanceReceiver>
pub fn on_initialized_callback(&self, jvm: &Jvm) -> Result<InstanceReceiver>
Creates an InstanceReceiver that will receive an Event once the Controller in initialized by the JavaFX framework.
JavaFX FXMLLoader will automatically do the call after the root element of the controller has been completely processed.
sourcepub fn get_event_receiver_for_node(
&self,
node_id: &str,
fx_event_type: FxEventType,
jvm: &Jvm
) -> Result<InstanceReceiver>
pub fn get_event_receiver_for_node( &self, node_id: &str, fx_event_type: FxEventType, jvm: &Jvm ) -> Result<InstanceReceiver>
Returns an InstanceReceiver that receives events of etype fx_event_type from the JavaFX node with the specified node_id (id attribute of the fxml element).
Auto Trait Implementations§
impl Freeze for FxController
impl RefUnwindSafe for FxController
impl Send for FxController
impl !Sync for FxController
impl Unpin for FxController
impl UnwindSafe for FxController
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more