-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
525 additions
and
250 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
91 changes: 91 additions & 0 deletions
91
src/main/java/org/sagebionetworks/web/client/jsinterop/mui/Grid.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,91 @@ | ||
package org.sagebionetworks.web.client.jsinterop.mui; | ||
|
||
import org.sagebionetworks.web.client.jsinterop.ReactComponentType; | ||
import org.sagebionetworks.web.client.jsinterop.react.HasStyle; | ||
|
||
public class Grid extends HasStyle<ReactComponentType<GridProps>, GridProps> { | ||
|
||
public Grid() { | ||
super(MaterialUI.Unstable_Grid2, GridProps.create(false)); | ||
} | ||
|
||
public void setId(String id) { | ||
props.id = id; | ||
this.render(); | ||
} | ||
|
||
public void setContainer(boolean container) { | ||
props.container = container; | ||
this.render(); | ||
} | ||
|
||
public void setXs(int xs) { | ||
props.xs = xs; | ||
this.render(); | ||
} | ||
|
||
public void setSm(int sm) { | ||
props.sm = sm; | ||
this.render(); | ||
} | ||
|
||
public void setMd(int md) { | ||
props.md = md; | ||
this.render(); | ||
} | ||
|
||
public void setLg(int lg) { | ||
props.lg = lg; | ||
this.render(); | ||
} | ||
|
||
public void setXl(int xl) { | ||
props.xl = xl; | ||
this.render(); | ||
} | ||
|
||
public void setXsOffset(int xsOffset) { | ||
props.xsOffset = xsOffset; | ||
this.render(); | ||
} | ||
|
||
public void setSmOffset(int smOffset) { | ||
props.smOffset = smOffset; | ||
this.render(); | ||
} | ||
|
||
public void setMdOffset(int mdOffset) { | ||
props.mdOffset = mdOffset; | ||
this.render(); | ||
} | ||
|
||
public void setLgOffset(int lgOffset) { | ||
props.lgOffset = lgOffset; | ||
this.render(); | ||
} | ||
|
||
public void setXlOffset(int xlOffset) { | ||
props.xlOffset = xlOffset; | ||
this.render(); | ||
} | ||
|
||
public void setMt(String mt) { | ||
props.mt = mt; | ||
this.render(); | ||
} | ||
|
||
public void setPl(String pl) { | ||
props.pl = pl; | ||
this.render(); | ||
} | ||
|
||
public void setRowSpacing(String rowSpacing) { | ||
props.rowSpacing = rowSpacing; | ||
this.render(); | ||
} | ||
|
||
public void setColumnSpacing(String columnSpacing) { | ||
props.columnSpacing = columnSpacing; | ||
this.render(); | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/main/java/org/sagebionetworks/web/client/jsinterop/mui/GridProps.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,68 @@ | ||
package org.sagebionetworks.web.client.jsinterop.mui; | ||
|
||
import jsinterop.annotations.JsNullable; | ||
import jsinterop.annotations.JsOverlay; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
import org.sagebionetworks.web.client.jsinterop.PropsWithStyle; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class GridProps extends PropsWithStyle { | ||
|
||
@JsNullable | ||
String id; | ||
|
||
boolean container; | ||
|
||
@JsNullable | ||
int xs; | ||
|
||
@JsNullable | ||
int sm; | ||
|
||
@JsNullable | ||
int md; | ||
|
||
@JsNullable | ||
int lg; | ||
|
||
@JsNullable | ||
int xl; | ||
|
||
@JsNullable | ||
int xsOffset; | ||
|
||
@JsNullable | ||
int smOffset; | ||
|
||
@JsNullable | ||
int mdOffset; | ||
|
||
@JsNullable | ||
int lgOffset; | ||
|
||
@JsNullable | ||
int xlOffset; | ||
|
||
@JsNullable | ||
String mt; | ||
|
||
@JsNullable | ||
String pl; | ||
|
||
@JsNullable | ||
String rowSpacing; | ||
|
||
@JsNullable | ||
String columnSpacing; | ||
|
||
@JsOverlay | ||
public static GridProps create(boolean container) { | ||
GridProps props = new GridProps(); | ||
|
||
if (container) { | ||
props.container = true; | ||
} | ||
return props; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/sagebionetworks/web/client/jsinterop/mui/MaterialUI.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,11 @@ | ||
package org.sagebionetworks.web.client.jsinterop.mui; | ||
|
||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
import org.sagebionetworks.web.client.jsinterop.ReactComponentType; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL) | ||
public class MaterialUI { | ||
|
||
public static ReactComponentType<GridProps> Unstable_Grid2; | ||
} |
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.