java.lang.Object
org.autogui.swing.GuiSwingJsonTransfer
a class cluster for JSON reading/writing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classa cell value indicating that it's row index is specified like { "#":123, ...static classan action for copying a JSON value of the target componentstatic classan action for copying JSON values of target table-cells: each JSON values are converted from each table-column contained as a list ofGuiSwingJsonTransfer.TableMenuCompositeJsonCopyand selected based on the column-indexstatic classan action for copying JSON values of target table-rows: each JSON values are converted from selected-rows by the context of the tablestatic classa table value selector for specified row-and-column indices.static classan action for loading a JSON value to a file of the target componentstatic classan action for loading JSON values from a file for target table-rows or cellsstatic classan action for pasting a JSON value of the target componentstatic classan action for pasting JSON values of target table-rows or cellsstatic classan action for saving a JSON value to a file of the target componentstatic classan action for saving JSON values of target table-cellsstatic classan action for saving JSON values of target table-rows to a filestatic classJSON transferable supporting string and "application/json"static classa table menu composite for copying JSON values of target table-cellsstatic classa table menu composite for pasting JSON values of target table-cellsstatic classa shared key of table menu composite for copying JSON values of target table-cellsstatic classa shared key of table menu composite for pasting JSON values of target table-cells -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetActionMenuItems(GuiSwingView.ValuePane<?> component, GuiMappingContext context) getActions(GuiSwingView.ValuePane<?> component, GuiMappingContext context) static Objectload(JComponent component) static ObjectreadJson()static Stringstatic voidsave(GuiSwingTaskRunner.ContextAction runner, Supplier<Object> json, JComponent owner, String name)
-
Field Details
-
jsonFlavor
default representation: InputStream
-
-
Constructor Details
-
GuiSwingJsonTransfer
public GuiSwingJsonTransfer()
-
-
Method Details
-
getActionMenuItems
public static List<JMenuItem> getActionMenuItems(GuiSwingView.ValuePane<?> component, GuiMappingContext context) -
getActions
public static List<Action> getActions(GuiSwingView.ValuePane<?> component, GuiMappingContext context) -
copy
-
save
public static void save(GuiSwingTaskRunner.ContextAction runner, Supplier<Object> json, JComponent owner, String name) -
readJson
-
readJsonSource
-
load
-