public class CssGridSizes extends UifDictionaryBeanBase
componentCode, namespaceCode
Constructor and Description |
---|
CssGridSizes() |
CssGridSizes(int xsSize,
int smSize,
int mdSize,
int lgSize) |
Modifier and Type | Method and Description |
---|---|
String |
getCssClassString()
Gets the css class string to use on the cell div of this item, by concatnating the appropriate css
classes based on the size values set on this object
|
int |
getLgOffset()
The offset (amount "pushed over") the div will have before the Component content at a large screen
size (large desktop); this can be set to 0 to override previous screen size offsets.
|
int |
getLgSize()
The size this Component's "cell" div will take up at a large screen size (large desktop).
|
int |
getMdOffset()
The offset (amount "pushed over") the div will have before the Component content at a medium screen
size (desktop), this can be set to 0 to override previous screen size offsets.
|
int |
getMdSize()
The size this Component's "cell" div will take up at a medium screen size (desktop).
|
int |
getSmOffset()
The offset (amount "pushed over") the div will have before the Component content at a small screen
size (tablet).
|
int |
getSmSize()
The size this Component's "cell" div will take up at a small screen size (tablet).
|
int |
getTotalLgSize()
Helper method to get the total space this div will take up at a large screen size, taking size, offset, and
other size settings into account
|
int |
getTotalMdSize()
Helper method to get the total space this div will take up at a medium screen size, taking size, offset, and
other size settings into account
|
int |
getTotalSmSize()
Helper method to get the total space this div will take up at a small screen size, taking size, offset, and
other size settings into account
|
int |
getXsSize()
The size this Component's "cell" div will take up at an extra small screen size (phone).
|
void |
setLgOffset(int lgOffset) |
void |
setLgSize(int lgSize) |
void |
setMdOffset(int mdOffset) |
void |
setMdSize(int mdSize) |
void |
setOffsets(int[] offsets)
Convenience setter for offsets which takes in 3 integers in this order: smOffset, mdOffset, lgOffset
|
void |
setSizes(int[] sizes)
Convenience setter for sizes which takes in 4 integers in this order: xsSize, smSize, mdSize, lgSize
|
void |
setSmOffset(int smOffset) |
void |
setSmSize(int smSize) |
void |
setXsSize(int xsSize) |
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
public CssGridSizes()
public CssGridSizes(int xsSize, int smSize, int mdSize, int lgSize)
public String getCssClassString()
public int getXsSize()
If 0 this setting will be ignored (default). This setting CANNOT exceed 12.
public void setXsSize(int xsSize)
getXsSize()
public int getSmSize()
If 0 this setting will be ignored (default). This setting CANNOT exceed 12.
public void setSmSize(int smSize)
getSmSize()
public int getMdSize()
If 0 this setting will be ignored (default). This setting CANNOT exceed 12.
public void setMdSize(int mdSize)
getMdSize()
public int getLgSize()
If 0 this setting will be ignored (default). This setting CANNOT exceed 12.
public void setLgSize(int lgSize)
getLgSize()
public int getSmOffset()
If -1 this setting will be ignored (default). This setting CANNOT exceed 12 AND should not be set to 12 as it will cause unintended behaviors (maximum should be 11 in most cases). When using offset it is recommended that the size of content in the "row" PLUS the offset and size of this "cell" at each screen size DOES NOT exceed 12 or unintended layouts WILL result. There is no extra small (xs) offset.
public void setSmOffset(int smOffset)
getSmOffset()
public int getMdOffset()
If -1 this setting will be ignored (default). This setting CANNOT exceed 12 AND should not be set to 12 as it will cause unintended behaviors (maximum should be 11 in most cases). When using offset it is recommended that the size of content in the "row" PLUS the offset and size of this "cell" at each screen size DOES NOT exceed 12 or unintended layouts WILL result. There is no extra small (xs) offset.
public void setMdOffset(int mdOffset)
getMdOffset()
public int getLgOffset()
If -1 this setting will be ignored (default). This setting CANNOT exceed 12 AND should not be set to 12 as it will cause unintended behaviors (maximum should be 11 in most cases). When using offset it is recommended that the size of content in the "row" PLUS the offset and size of this "cell" at each screen size DOES NOT exceed 12 or unintended layouts WILL result. There is no extra small (xs) offset.
public void setLgOffset(int lgOffset)
getLgOffset()
public void setSizes(int[] sizes)
The length of this array MUST be 4. Any values 0 or less will have the same affect as not setting that size.
sizes
- the sizes in order of xs, sm, md, lgpublic void setOffsets(int[] offsets)
The length of this array MUST be 3. Any values -1 or less will have the same affect as not setting that size because (unlike sizes) 0 is a valid value for offsets.
offsets
- the sizes in order of sm, md, lgpublic int getTotalSmSize()
public int getTotalMdSize()
public int getTotalLgSize()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.