Skip to content

Commit

Permalink
Cosmetic changes in View, Send and Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianromero committed Jul 22, 2019
1 parent 8daebbe commit 0c741c0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ public EditNodeFormat fromString(String value) {
editqos.setConverter(new StringConverter<Integer>() {
@Override
public String toString(Integer object) {
if (object < 0) {
return resources.getString("label.default");
} else {
return object.toString();
}
return object.toString();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void load(SubProperties properties) {
color = c == null ? null : Color.valueOf(c);
c = properties.getProperty(".background", null);
background = c == null ? null : Color.valueOf(c);
qos = Integer.parseInt(properties.getProperty(".qos", ""));
qos = Integer.parseInt(properties.getProperty(".qos", "0"));
retained = Boolean.parseBoolean(properties.getProperty(".retained", "false"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public DevicesUnits getDevicesUnits() throws HelloIoTException {
EditEvent u = multiline ? new EditAreaEvent() : new EditEvent();
u.setPrefWidth(320.0);
u.setLabel(getLabel().getValue());
u.setFooter(topic + getQOSBadge(qos));
u.setFooter(topicpub + getQOSBadge(qos));
setStyle(u);
u.setDevice(d);
UnitPage.setPage(u, page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
<TextField fx:id="edittopic" styleClass="unitinput" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="2" />
<Label fx:id="labeltopicpub" styleClass="unitlabel" text="%label.topicpub" GridPane.rowIndex="3" />
<TextField fx:id="edittopicpub" styleClass="unitinput" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="3" />
<Label fx:id="labeljsonpath" styleClass="unitlabel" text="%label.jsonpath" GridPane.rowIndex="4" />
<TextField fx:id="editjsonpath" styleClass="unitinput" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Label styleClass="unitlabel" text="%label.format" GridPane.rowIndex="5" />
<ChoiceBox fx:id="editformat" maxWidth="1.7976931348623157E308" styleClass="unitinput" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<Label styleClass="unitlabel" text="%label.format" GridPane.rowIndex="4" />
<ChoiceBox fx:id="editformat" maxWidth="1.7976931348623157E308" styleClass="unitinput" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Label fx:id="labeljsonpath" styleClass="unitlabel" text="%label.jsonpath" GridPane.rowIndex="5" />
<TextField fx:id="editjsonpath" styleClass="unitinput" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<Label styleClass="unitlabel" text="%label.color" GridPane.rowIndex="6" />
<ColorPicker fx:id="editcolor" maxWidth="1.7976931348623157E308" styleClass="unitinput" GridPane.columnIndex="1" GridPane.rowIndex="6" />
<Button fx:id="clearcolor" mnemonicParsing="false" onAction="#onClearColor" styleClass="unitbutton" GridPane.columnIndex="2" GridPane.rowIndex="6" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with HelloIot. If not, see <http://www.gnu.org/licenses/>.
#
label.default = Default
label.empty = Empty
label.no=No
label.yes=Yes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with HelloIot. If not, see <http://www.gnu.org/licenses/>.
#
label.default = Defecto
label.empty = Vac\u00edo
label.no=No
label.yes=S\u00ed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
<TextField fx:id="editname" styleClass="unitinput" GridPane.rowIndex="1" />
<Label styleClass="unitlabel" text="%label.page" GridPane.rowIndex="2" />
<ComboBox fx:id="editpage" editable="true" maxWidth="1.7976931348623157E308" styleClass="unitcombobox" GridPane.rowIndex="3" />
<Label styleClass="unitlabel" text="%label.topic" GridPane.rowIndex="4" />
<Label fx:id="labeltopic" styleClass="unitlabel" text="%label.topic" GridPane.rowIndex="4" />
<TextField fx:id="edittopic" styleClass="unitinput" GridPane.rowIndex="5" />
<Label styleClass="unitlabel" text="%label.topicpub" GridPane.rowIndex="6" />
<Label fx:id="labeltopicpub" styleClass="unitlabel" text="%label.topicpub" GridPane.rowIndex="6" />
<TextField fx:id="edittopicpub" styleClass="unitinput" GridPane.rowIndex="7" />
<Label styleClass="unitlabel" text="%label.jsonpath" GridPane.rowIndex="8" />
<TextField fx:id="editjsonpath" styleClass="unitinput" GridPane.rowIndex="9" />
<Label styleClass="unitlabel" text="%label.format" GridPane.rowIndex="10" />
<ChoiceBox fx:id="editformat" maxWidth="1.7976931348623157E308" styleClass="unitinput" GridPane.rowIndex="11" />
<Label styleClass="unitlabel" text="%label.format" GridPane.rowIndex="8" />
<ChoiceBox fx:id="editformat" maxWidth="1.7976931348623157E308" styleClass="unitinput" GridPane.rowIndex="9" />
<Label styleClass="unitlabel" text="%label.jsonpath" GridPane.rowIndex="10" />
<TextField fx:id="editjsonpath" styleClass="unitinput" GridPane.rowIndex="11" />
<Label styleClass="unitlabel" text="%label.color" GridPane.rowIndex="12" />
<HBox alignment="CENTER_LEFT" spacing="10.0" GridPane.rowIndex="13">
<children>
Expand Down

0 comments on commit 0c741c0

Please sign in to comment.