-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
200 additions
and
136 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
31 changes: 31 additions & 0 deletions
31
src/main/java/org/sagebionetworks/web/client/jsinterop/ProjectDataAvailabilityProps.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,31 @@ | ||
package org.sagebionetworks.web.client.jsinterop; | ||
|
||
import jsinterop.annotations.JsNullable; | ||
import jsinterop.annotations.JsOverlay; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class ProjectDataAvailabilityProps extends ReactComponentProps { | ||
|
||
@JsNullable | ||
public String projectId; | ||
|
||
@JsNullable | ||
public SxProps sx; | ||
|
||
@JsOverlay | ||
public static ProjectDataAvailabilityProps create( | ||
String projectId, | ||
SxProps sx | ||
) { | ||
ProjectDataAvailabilityProps props = new ProjectDataAvailabilityProps(); | ||
if (projectId != null) { | ||
props.projectId = projectId; | ||
} | ||
if (sx != null) { | ||
props.sx = sx; | ||
} | ||
return props; | ||
} | ||
} |
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
23 changes: 23 additions & 0 deletions
23
...g/sagebionetworks/web/client/widget/projectdataavailability/ProjectDataAvaiilability.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,23 @@ | ||
package org.sagebionetworks.web.client.widget.projectdataavailability; | ||
|
||
import com.google.gwt.user.client.ui.IsWidget; | ||
import com.google.gwt.user.client.ui.Widget; | ||
import com.google.inject.Inject; | ||
|
||
public class ProjectDataAvaiilability implements IsWidget { | ||
|
||
ProjectDataAvailabilityView view; | ||
|
||
@Inject | ||
public ProjectDataAvaiilability(ProjectDataAvailabilityView view) { | ||
this.view = view; | ||
} | ||
|
||
public void setProjectId(String projectId) { | ||
view.setProjectId(projectId); | ||
} | ||
|
||
public Widget asWidget() { | ||
return view.asWidget(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...agebionetworks/web/client/widget/projectdataavailability/ProjectDataAvailabilityView.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,7 @@ | ||
package org.sagebionetworks.web.client.widget.projectdataavailability; | ||
|
||
import com.google.gwt.user.client.ui.IsWidget; | ||
|
||
public interface ProjectDataAvailabilityView extends IsWidget { | ||
void setProjectId(String projectId); | ||
} |
Oops, something went wrong.