Skip to content

FileChooser.fileObj ​

com.jsmacrosce.jsmacros.client.gui.overlays.FileChooser.fileObj

Mutable pair associating a caller-supplied native Java file reference with a project button. Constructing or changing a pair does not register it with a chooser; changing file also does not change the callback captured by an existing row button.

js
function makeRowRecord(file, button) {
 const Row = Java.type('com.jsmacrosce.jsmacros.client.gui.overlays.FileChooser$fileObj');  
 return new Row(file, button);  
}

Nested type declared in FileChooser.

Constructors ​

new FileChooser.fileObj ​

new FileChooser.fileObj(File file, Button btn)#
Stores the supplied references without copying, validating, or registering them.

Parameters:

  • file: native Java file reference for row lookup and deletion; expected non-null in normal row use
  • btn: project button reference for row layout and removal; expected non-null in normal row use

Fields ​

btn ​

btn: Button#
Button reference used by the chooser for row layout and removal; reassigning it does not replace the registered widget.

file ​

file: File#
Native Java file reference used for row lookup and deletion; reassigning it does not rewire an existing row button's callback.