java.lang.Object
org.autogui.swing.GuiSwingJsonTransfer
a class cluster for JSON reading/writing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
a cell value indicating that it's row index is specified like { "#":123, ...static class
an action for copying a JSON value of the target componentstatic class
an action for copying JSON values of target table-cells: each JSON values are converted from each table-column contained as a list ofGuiSwingJsonTransfer.TableMenuCompositeJsonCopy
and selected based on the column-indexstatic class
an action for copying JSON values of target table-rows: each JSON values are converted from selected-rows by the context of the tablestatic class
a table value selector for specified row-and-column indices.static class
an action for loading a JSON value to a file of the target componentstatic class
an action for loading JSON values from a file for target table-rows or cellsstatic class
an action for pasting a JSON value of the target componentstatic class
an action for pasting JSON values of target table-rows or cellsstatic class
an action for saving a JSON value to a file of the target componentstatic class
an action for saving JSON values of target table-cellsstatic class
an action for saving JSON values of target table-rows to a filestatic class
JSON transferable supporting string and "application/json"static class
a table menu composite for copying JSON values of target table-cellsstatic class
a table menu composite for pasting JSON values of target table-cellsstatic class
a shared key of table menu composite for copying JSON values of target table-cellsstatic class
a 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 void
getActionMenuItems
(GuiSwingView.ValuePane<?> component, GuiMappingContext context) getActions
(GuiSwingView.ValuePane<?> component, GuiMappingContext context) static Object
load
(JComponent component) static Object
readJson()
static String
static void
save
(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
-