Revize e3d5fc53
Přidáno uživatelem Jan Havlíček před více než 4 roky(ů)
project/Deserializer/src/Deserializer.java | ||
---|---|---|
30 | 30 |
@Override |
31 | 31 |
public void init() throws Exception { |
32 | 32 |
super.init(); |
33 |
testing = true;
|
|
33 |
testing = false;
|
|
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
@Override |
... | ... | |
52 | 52 |
layout.setSpacing(10.0); |
53 | 53 |
|
54 | 54 |
Label forInputFile = new Label("Soubor k deserializaci:"); |
55 |
Label inputFile = new Label(" Je?t? nebyl vybr?n ??dn? soubor...");
|
|
55 |
Label inputFile = new Label(" Je�t� nebyl vybr�n ��dn� soubor...");
|
|
56 | 56 |
inputFile.setStyle("-fx-font-style: italic;"); |
57 | 57 |
VBox forInput = new VBox(); |
58 | 58 |
forInput.getChildren().add(forInputFile); |
59 | 59 |
forInput.getChildren().add(inputFile); |
60 | 60 |
|
61 |
Label forOutputFile = new Label("V?stupn? soubor:");
|
|
62 |
Label outputFile = new Label(" Je?t? nebyl vybr?n ??dn? soubor...");
|
|
61 |
Label forOutputFile = new Label("V�stupn� soubor:");
|
|
62 |
Label outputFile = new Label(" Je�t� nebyl vybr�n ��dn� soubor...");
|
|
63 | 63 |
outputFile.setStyle("-fx-font-style: italic;"); |
64 | 64 |
VBox forOutput = new VBox(); |
65 | 65 |
forOutput.getChildren().add(forOutputFile); |
66 | 66 |
forOutput.getChildren().add(outputFile); |
67 | 67 |
|
68 |
convert = new Button("P?ev?st");
|
|
68 |
convert = new Button("P�ev�st");
|
|
69 | 69 |
convert.setOnAction(event -> { |
70 | 70 |
// a.data a b.data are customers test files (binary files). |
71 | 71 |
convert.setDisable(true); |
... | ... | |
73 | 73 |
thread.start(); |
74 | 74 |
}); |
75 | 75 |
convert.setDisable(!testing); |
76 |
Button setInputFile = new Button("Vstupn? soubor");
|
|
76 |
Button setInputFile = new Button("Vstupn� soubor");
|
|
77 | 77 |
setInputFile.setOnAction(event -> { |
78 | 78 |
FileChooser fCh = new FileChooser(); |
79 | 79 |
fCh.setInitialDirectory(new File(".")); |
... | ... | |
87 | 87 |
convert.setDisable(this.inputFile == null || this.outputFile == null); |
88 | 88 |
} |
89 | 89 |
}); |
90 |
Button setOutputFile = new Button("V?stupn? soubor");
|
|
90 |
Button setOutputFile = new Button("V�stupn� soubor");
|
|
91 | 91 |
setOutputFile.setOnAction(event -> { |
92 | 92 |
FileChooser fCh = new FileChooser(); |
93 | 93 |
fCh.setInitialDirectory(new File(".")); |
Také k dispozici: Unified diff
#7794
The jdeserializer.instance type of content gives correct format of output data (JSON-like) through method simpleFormatToString() : String
Works only with primitive data types though