-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd471a8
commit 1c053b3
Showing
15 changed files
with
183 additions
and
65 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
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
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
43 changes: 43 additions & 0 deletions
43
gui/src/main/java/com/resourcetracker/service/element/layout/common/LandingHBox.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,43 @@ | ||
package com.resourcetracker.service.element.layout.common; | ||
|
||
import com.resourcetracker.service.element.IElement; | ||
import com.resourcetracker.service.element.IElementResizable; | ||
import com.resourcetracker.service.element.storage.ElementStorage; | ||
import javafx.scene.Node; | ||
import javafx.scene.layout.HBox; | ||
|
||
import java.util.UUID; | ||
|
||
public class LandingHBox implements IElementResizable, IElement<HBox> { | ||
UUID id = UUID.randomUUID(); | ||
|
||
public LandingHBox(Node... elements) { | ||
HBox hbox = new HBox(20, elements); | ||
|
||
ElementStorage.setElement(id, hbox); | ||
} | ||
|
||
/** | ||
* @return | ||
*/ | ||
@Override | ||
public HBox getContent() { | ||
return ElementStorage.getElement(id); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
@Override | ||
public void handlePrefWidth() { | ||
|
||
} | ||
|
||
/** | ||
* | ||
*/ | ||
@Override | ||
public void handlePrefHeight() { | ||
|
||
} | ||
} |
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
Oops, something went wrong.