public static class SplitPane.Settings extends Object
#SplitPane(com.codename1.components.SplitPane.Settings, com.codename1.ui.Component, com.codename1.ui.Component)
to create the corresponding SplitPane instance.Constructor and Description |
---|
Settings()
Creates a new Settings with default values.
|
Settings(int orientation,
String minInset,
String preferredInset,
String maxInset)
Creates a new Settings with the provided orientation, and insets.
|
Modifier and Type | Method and Description |
---|---|
SplitPane.Settings |
buttonUIIDs(String uiid)
Sets the UIID to use for all of the buttons on the divider.
|
SplitPane.Settings |
collapseButtonUIID(String collapseButtonUIID)
Sets the UIID to use for the collapse button.
|
SplitPane.Settings |
collapseIcon(Image icon)
Sets the icon to use for the collapse button.
|
SplitPane.Settings |
collapseMaterialIcon(char icon)
Sets the material icon to use for the collapse button.
|
SplitPane.Settings |
dividerThicknessMM(float dividerThicknessMM)
Sets the preferred divider thickness in Millimetres.
|
SplitPane.Settings |
dividerUIID(String uiid)
A custom UIID to use for the divider.
|
SplitPane.Settings |
dragHandleIcon(Image icon)
Sets the icon to use for the drag handle.
|
SplitPane.Settings |
dragHandleMaterialIcon(char icon)
Sets the material icon to use for the drag handle.
|
SplitPane.Settings |
dragHandleUIID(String dragHandleUIID)
Sets the UIID to use for the drag handle on the divider.
|
SplitPane.Settings |
expandButtonUIID(String expandButtonUIID)
Sets the UIID to use for the expand button.
|
SplitPane.Settings |
expandIcon(Image icon)
Sets the icon to use for the expand button.
|
SplitPane.Settings |
expandMaterialIcon(char icon)
Sets the material icon to use for the expand button.
|
SplitPane.Settings |
insets(String min,
String preferred,
String max)
Sets the min, preferred, and max insets in a single method.
|
SplitPane.Settings |
maxInset(String maxInset)
Sets the max inset for the divider.
|
SplitPane.Settings |
minInset(String minInset)
Sets the minimum inset for the divider.
|
SplitPane.Settings |
orientation(int orientation)
Sets the orientation.
|
SplitPane.Settings |
preferredInset(String preferredInset)
Sets the preferred inset for the divider.
|
SplitPane.Settings |
showDragHandle(boolean show)
Set whether to show the drag handle on the divider.
|
SplitPane.Settings |
showExpandCollapseButtons(boolean show)
Set whether to show the expand/collapse buttons on the divider.
|
public Settings()
public Settings(int orientation, String minInset, String preferredInset, String maxInset)
orientation
- The orientation. One of SplitPane.HORIZONTAL_SPLIT
or SplitPane.VERTICAL_SPLIT
.minInset
- The minimum allowable inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".preferredInset
- The default preferred inset for the divider. The inset should be expressed as a string with both value and unit. E.g. "75%", "50mm", "20px".maxInset
- The maximum allowable inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "20px".public SplitPane.Settings orientation(int orientation)
orientation
- The orientation. One of SplitPane.HORIZONTAL_SPLIT
or SplitPane.VERTICAL_SPLIT
.public SplitPane.Settings expandButtonUIID(String expandButtonUIID)
expandButtonUIID
- The UIID to use for the expand button.collapseButtonUIID(java.lang.String)
,
dragHandleUIID(java.lang.String)
,
buttonUIIDs(java.lang.String)
public SplitPane.Settings collapseButtonUIID(String collapseButtonUIID)
collapseButtonUIID
- The UIID to use for the collapse button.dragHandleUIID(java.lang.String)
,
buttonUIIDs(java.lang.String)
,
expandButtonUIID(java.lang.String)
public SplitPane.Settings dragHandleUIID(String dragHandleUIID)
dragHandleUIID
- The UIID to use for the drag handle of the divider.buttonUIIDs(java.lang.String)
,
expandButtonUIID(java.lang.String)
,
collapseButtonUIID(java.lang.String)
public SplitPane.Settings buttonUIIDs(String uiid)
expandButtonUIID(java.lang.String)
, collapseButtonUIID(java.lang.String)
,
and dragHandleUIID(java.lang.String)
all with the same value.uiid
- The UIID to use for the buttons on the divider.public SplitPane.Settings collapseIcon(Image icon)
icon
- public SplitPane.Settings expandIcon(Image icon)
icon
- public SplitPane.Settings dragHandleIcon(Image icon)
icon
- public SplitPane.Settings collapseMaterialIcon(char icon)
icon
- public SplitPane.Settings expandMaterialIcon(char icon)
icon
- public SplitPane.Settings dragHandleMaterialIcon(char icon)
icon
- public SplitPane.Settings dividerThicknessMM(float dividerThicknessMM)
dividerThicknessMM
- The divider thickness in Millimetres.public SplitPane.Settings dividerUIID(String uiid)
uiid
- The custom UIIDpublic SplitPane.Settings minInset(String minInset)
minInset
- The minimum allowable inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".public SplitPane.Settings preferredInset(String preferredInset)
preferredInset
- The preferred inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".public SplitPane.Settings maxInset(String maxInset)
maxInset
- The max inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".public SplitPane.Settings insets(String min, String preferred, String max)
minInset(java.lang.String)
,
maxInset(java.lang.String)
, and preferredInset(java.lang.String)
separately.min
- The min inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".preferred
- The preferred inset for the divider. The inset should be expressed as a string with both a value and a unit. E.g. "75%", "50mm", "200px".max
- The max inset for the divider.public SplitPane.Settings showExpandCollapseButtons(boolean show)
show
- true to show the expand/collapse buttons. false to hide them.public SplitPane.Settings showDragHandle(boolean show)
show
- true to show the expand/collapse buttons. false to hide them.