Class SplitPane.Settings
- Enclosing class:
SplitPane
com.codename1.ui.Component, com.codename1.ui.Component)
to create the corresponding SplitPane instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuttonUIIDs(String uiid) Sets the UIID to use for all of the buttons on the divider.collapseButtonUIID(String collapseButtonUIID) Sets the UIID to use for the collapse button.collapseIcon(Image icon) Sets the icon to use for the collapse button.collapseMaterialIcon(char icon) Sets the material icon to use for the collapse button.dividerThicknessMM(float dividerThicknessMM) Sets the preferred divider thickness in Millimetres.dividerUIID(String uiid) A custom UIID to use for the divider.dragHandleIcon(Image icon) Sets the icon to use for the drag handle.dragHandleMaterialIcon(char icon) Sets the material icon to use for the drag handle.dragHandleUIID(String dragHandleUIID) Sets the UIID to use for the drag handle on the divider.expandButtonUIID(String expandButtonUIID) Sets the UIID to use for the expand button.expandIcon(Image icon) Sets the icon to use for the expand button.expandMaterialIcon(char icon) Sets the material icon to use for the expand button.Sets the min, preferred, and max insets in a single method.Sets the max inset for the divider.Sets the minimum inset for the divider.orientation(int orientation) Sets the orientation.preferredInset(String preferredInset) Sets the preferred inset for the divider.showDragHandle(boolean show) Set whether to show the drag handle on the divider.showExpandCollapseButtons(boolean show) Set whether to show the expand/collapse buttons on the divider.
-
Constructor Details
-
Settings
public Settings()Creates a new Settings with default values. -
Settings
Creates a new Settings with the provided orientation, and insets.
Parameters
-
orientation: The orientation. One of#HORIZONTAL_SPLITor#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".
-
-
-
Method Details
-
orientation
Sets the orientation.
Parameters
orientation: The orientation. One of#HORIZONTAL_SPLITor#VERTICAL_SPLIT.
Returns
Self for chaining.
-
expandButtonUIID
Sets the UIID to use for the expand button. Default is "Label"
Parameters
expandButtonUIID: The UIID to use for the expand button.
Returns
Self for chaining.
See also
-
#collapseButtonUIID(java.lang.String)
-
#dragHandleUIID(java.lang.String)
-
#buttonUIIDs(java.lang.String)
-
collapseButtonUIID
Sets the UIID to use for the collapse button. Default is "Label"
Parameters
collapseButtonUIID: The UIID to use for the collapse button.
Returns
Self for chaining.
See also
-
#dragHandleUIID(java.lang.String)
-
#buttonUIIDs(java.lang.String)
-
#expandButtonUIID(java.lang.String)
-
dragHandleUIID
Sets the UIID to use for the drag handle on the divider. Default is "Label"
Parameters
dragHandleUIID: The UIID to use for the drag handle of the divider.
Returns
Self for chaining.
See also
-
#buttonUIIDs(java.lang.String)
-
#expandButtonUIID(java.lang.String)
-
#collapseButtonUIID(java.lang.String)
-
buttonUIIDs
Sets the UIID to use for all of the buttons on the divider. This includes the drag handle, the collapse button, and the expand button. This is a convenience method that is equivalent of calling
#expandButtonUIID(java.lang.String),#collapseButtonUIID(java.lang.String), and#dragHandleUIID(java.lang.String)all with the same value.Parameters
uiid: The UIID to use for the buttons on the divider.
Returns
Self for chaining.
-
collapseIcon
Sets the icon to use for the collapse button.
Parameters
icon
-
expandIcon
Sets the icon to use for the expand button.
Parameters
icon
-
dragHandleIcon
Sets the icon to use for the drag handle.
Parameters
icon
-
collapseMaterialIcon
Sets the material icon to use for the collapse button.
Parameters
icon
-
expandMaterialIcon
Sets the material icon to use for the expand button.
Parameters
icon
-
dragHandleMaterialIcon
Sets the material icon to use for the drag handle.
Parameters
icon
-
dividerThicknessMM
Sets the preferred divider thickness in Millimetres.
Parameters
dividerThicknessMM: The divider thickness in Millimetres.
Returns
Self for chaining.
-
dividerUIID
A custom UIID to use for the divider. Leave null to use default.
Parameters
uiid: The custom UIID
Returns
self for chaining.
-
minInset
Sets the minimum inset for the divider.
Parameters
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".
Returns
Self for chaining.
-
preferredInset
Sets the preferred inset for the divider.
Parameters
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".
Returns
Self for chaining.
-
maxInset
Sets the max inset for the divider.
Parameters
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".
-
insets
Sets the min, preferred, and max insets in a single method. This is equivalent of calling
#minInset(java.lang.String),#maxInset(java.lang.String), and#preferredInset(java.lang.String)separately.Parameters
-
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.
Returns
Self for chaining.
-
-
showExpandCollapseButtons
Set whether to show the expand/collapse buttons on the divider. Default is true.
Parameters
show: true to show the expand/collapse buttons. false to hide them.
Returns
Self for chaining.
-
showDragHandle
Set whether to show the drag handle on the divider. Default is true.
Parameters
show: true to show the expand/collapse buttons. false to hide them.
Returns
Self for chaining.
-