lib/jrubyfx/controller.rb
# This is the default override for custom controls
# Normal FXML controllers will use Control#new
This is the default override for custom controls
Normal FXML controllers will use Control#new
This is the default override for custom controls Normal FXML controllers will use Control#new
def new(*args, &block)
      if @preparsed && @preparsed.length > 0
        return @preparsed.pop.finish_initialization(*args, &block)
      end
      settings = DEFAULT_SETTINGS.merge({root_dir: @fxml_root_dir || fxml_root, class_loader: get_fxml_resource_class_loader, filename: @filename})
      if @filename && !@built
        @built = true 
        JRubyFX::FxmlHelper.transform self, Controller.get_fxml_location(settings[:root_dir], settings[:filename], settings[:class_loader])
        become_java!
      end
      ctrl = allocate
      ctrl.initialize_controller(settings,
        *args, &block) if @filename
      ctrl
    end
def new ( * args , & block ) if @preparsed && @preparsed . length > 0 return @preparsed . pop . finish_initialization ( * args , & block ) end settings = DEFAULT_SETTINGS . merge ( { root_dir : @fxml_root_dir || fxml_root , class_loader : get_fxml_resource_class_loader , filename : @filename } ) if @filename && ! @built @built = true JRubyFX :: FxmlHelper . transform self , Controller . get_fxml_location ( settings [ :root_dir ] , settings [ :filename ] , settings [ :class_loader ] ) become_java! end ctrl = allocate ctrl . initialize_controller ( settings , * args , & block ) if @filename ctrl end
This is the default override for custom controls
Normal FXML controllers will use Control#new
This is the default override for custom controls Normal FXML controllers will use Control#new
# Custom controls don't always need to be pure java, but oh well... # TODO: move later if no new :bake call ## Use the temporary loader to reformat AController # Custom controls don't always need to be pure java, but oh well... # like new, without initialize # return the controller
args
<not_specific>
block
<not_specific>