-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated implementation of inspector text fields to better use renamab…
…le interface
- Loading branch information
Showing
5 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/org/gecko/view/inspector/element/textfield/InspectorPriorityField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.gecko.view.inspector.element.textfield; | ||
|
||
import javafx.beans.property.IntegerProperty; | ||
import javafx.scene.control.TextField; | ||
import javafx.util.converter.NumberStringConverter; | ||
import org.gecko.view.inspector.element.InspectorElement; | ||
|
||
public class InspectorPriorityField extends TextField implements InspectorElement<TextField> { | ||
|
||
public InspectorPriorityField(IntegerProperty targetProperty) { | ||
textProperty().bindBidirectional(targetProperty, new NumberStringConverter()); | ||
} | ||
|
||
@Override | ||
public TextField getControl() { | ||
return this; | ||
} | ||
} |
19 changes: 9 additions & 10 deletions
19
src/main/java/org/gecko/view/inspector/element/textfield/InspectorTextField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters