Package com.smartgwt.client.types
Enum PanelPlacement
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<PanelPlacement>
,Constable
Possible placements for pop-up choosers, menus, dialogs or other temporary UIs, which may need to expand to take up
additional room for smaller screens.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionfill the nearest containing panel managed by a device-aware layout such asSplitPane
, which will generally be equivalent to "fillScreen" for ahandset-sized device
.fill the entire screenfill the bottom half of the screen.classic placement for menus, pop-up lists and pickers in desktop interfaces: near the control that was clicked (a search field,MenuButton
, etc).this setting disables all panelPlacement sizing and positioning logic. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static PanelPlacement
Returns the enum constant of this type with the specified name.static PanelPlacement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEARORIGIN
classic placement for menus, pop-up lists and pickers in desktop interfaces: near the control that was clicked (a search field,MenuButton
, etc). Note: this setting does not apply when there is no originating control (such as a dialog that appears due to session timeout), in which case centering will generally be usedIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "nearOrigin". -
FILLPANEL
fill the nearest containing panel managed by a device-aware layout such asSplitPane
, which will generally be equivalent to "fillScreen" for ahandset-sized device
. Note: this setting does not apply if there is no clear container for the component originating the UI, in which case, "fillScreen" will generally be used.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fillPanel". -
FILLSCREEN
fill the entire screenIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fillScreen". -
HALFSCREEN
fill the bottom half of the screen. This is the default behavior on iOS6/7 for plain HTML <select>, but note that native apps rarely use this interface for picking from lists and it is not generally recommended.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "halfScreen". -
NONE
this setting disables all panelPlacement sizing and positioning logic. Explicitly specified size and positioning will be used.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-