Package io.jmix.ui.component
Class MarginInfo
java.lang.Object
io.jmix.ui.component.MarginInfo
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionMarginInfo(boolean enabled) Creates a MarginInfo object with all edges set to either enabled or disabled.MarginInfo(boolean top, boolean right, boolean bottom, boolean left) Creates a MarginInfo object by having each edge specified in clockwise order (analogous to CSS).
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoSetMargins(boolean top, boolean right, boolean bottom, boolean left) booleanbooleanhasAll()Checks if this MarginInfo object has margins on all edges enabled.booleanChecks if this MarginInfo object has the bottom edge margin enabled.inthashCode()booleanhasLeft()Checks if this MarginInfo object has the left edge margin enabled.booleanhasRight()Checks if this MarginInfo object has the right edge margin enabled.booleanhasTop()Checks if this MarginInfo object has the top edge margin enabled.voidsetMargins(boolean enabled) Enables or disables margins on all edges simultaneously.voidsetMargins(boolean top, boolean right, boolean bottom, boolean left) Sets margins on all edges individually.toString()
- 
Field Details- 
TOPprotected static final int TOP- See Also:
 
- 
RIGHTprotected static final int RIGHT- See Also:
 
- 
BOTTOMprotected static final int BOTTOM- See Also:
 
- 
LEFTprotected static final int LEFT- See Also:
 
- 
ALLprotected static final int ALL- See Also:
 
- 
bitMaskprotected int bitMask
 
- 
- 
Constructor Details- 
MarginInfopublic MarginInfo(boolean enabled) Creates a MarginInfo object with all edges set to either enabled or disabled.- Parameters:
- enabled- the value to set for all edges
 
- 
MarginInfopublic MarginInfo(boolean top, boolean right, boolean bottom, boolean left) Creates a MarginInfo object by having each edge specified in clockwise order (analogous to CSS).- Parameters:
- top- enable or disable top margin
- right- enable or disable right margin
- bottom- enable or disable bottom margin
- left- enable or disable left margin
 
 
- 
- 
Method Details- 
setMarginspublic void setMargins(boolean enabled) Enables or disables margins on all edges simultaneously.- Parameters:
- enabled- if true, enables margins on all edges. If false, disables margins on all edges.
 
- 
setMarginspublic void setMargins(boolean top, boolean right, boolean bottom, boolean left) Sets margins on all edges individually.- Parameters:
- top- enable or disable top margin
- right- enable or disable right margin
- bottom- enable or disable bottom margin
- left- enable or disable left margin
 
- 
hasAllpublic boolean hasAll()Checks if this MarginInfo object has margins on all edges enabled.- Returns:
- true if all edges have margins enabled
 
- 
hasLeftpublic boolean hasLeft()Checks if this MarginInfo object has the left edge margin enabled.- Returns:
- true if left edge margin is enabled
 
- 
hasRightpublic boolean hasRight()Checks if this MarginInfo object has the right edge margin enabled.- Returns:
- true if right edge margin is enabled
 
- 
hasToppublic boolean hasTop()Checks if this MarginInfo object has the top edge margin enabled.- Returns:
- true if top edge margin is enabled
 
- 
hasBottompublic boolean hasBottom()Checks if this MarginInfo object has the bottom edge margin enabled.- Returns:
- true if bottom edge margin is enabled
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
doSetMarginsprotected void doSetMargins(boolean top, boolean right, boolean bottom, boolean left) 
 
-