Class NavItem
- All Implemented Interfaces:
HasHandlers
Properties for a navigation item in a
NavPanel
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCSS style name used for thisNavItem
.Criteria to be evaluated to determine whether this NavItem should be disabled.getIcon()
Icon to show for thisNavItem
.getId()
An optional ID for thisNavItem
.If set, thisNavItem
will be styled like a header.If set, thisNavItem
will be styled as a separator.NavItem[]
getItems()
Optional subitems of thisNavItem
.static NavItem
getOrCreateRef
(JavaScriptObject jsObj) getPane()
Component to display in theNavPanel.navDeck
when thisNavItem
is selected.Component to display in theNavPanel.navDeck
when thisNavItem
is selected.getTitle()
Title to show for thisNavItem
.setCustomStyle
(String customStyle) CSS style name used for thisNavItem
.setEnableWhen
(AdvancedCriteria enableWhen) Criteria to be evaluated to determine whether this NavItem should be disabled.Icon to show for thisNavItem
.An optional ID for thisNavItem
.setIsHeader
(Boolean isHeader) If set, thisNavItem
will be styled like a header.setIsSeparator
(Boolean isSeparator) If set, thisNavItem
will be styled as a separator.Optional subitems of thisNavItem
.Component to display in theNavPanel.navDeck
when thisNavItem
is selected.Component to display in theNavPanel.navDeck
when thisNavItem
is selected.Title to show for thisNavItem
.Methods inherited from class com.smartgwt.client.widgets.tree.TreeNode
getCanAcceptDrop, getCanDrag, getEnabled, getIconPadding, getName, getShowDropIcon, getShowOpenIcon, getShowSelectedIcon, setCanAcceptDrop, setCanDrag, setChildren, setEnabled, setIconPadding, setID, setIsFolder, setName, setParentID, setShowDropIcon, setShowOpenIcon, setShowSelectedIcon
Methods inherited from class com.smartgwt.client.widgets.grid.ListGridRecord
get_baseStyle, get_canEdit, get_canRemove, getBackgroundComponent, getCanExpand, getCanSelect, getDetailDS, getEmbeddedComponent, getEmbeddedComponentFields, getEmbeddedComponentPosition, getIncludeInSummary, getIsGridSummary, getIsGroupSummary, getLinkText, getShowRollOver, getSingleCellValue, set_baseStyle, set_canEdit, set_canRemove, setBackgroundComponent, setCanExpand, setCanSelect, setDetailDS, setEmbeddedComponent, setEmbeddedComponentFields, setEmbeddedComponentPosition, setIncludeInSummary, setIsGridSummary, setIsGroupSummary, setLinkText, setShowRollOver, setSingleCellValue
Methods inherited from class com.smartgwt.client.data.Record
convertToRecordArray, copyAttributes, copyAttributesInto, getAttributeAsRecordArray, getAttributeAsRecordList, getPaletteDefaults, isARecord, toMap
Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
NavItem
public NavItem() -
NavItem
-
-
Method Details
-
getOrCreateRef
-
setCustomStyle
CSS style name used for thisNavItem
. If set and thisNavItem
is aheader
, this overrides theNavPanel
'sNavPanel.headerStyle
.- Overrides:
setCustomStyle
in classListGridRecord
- Parameters:
customStyle
- New customStyle value. Default value is null- Returns:
NavItem
instance, for chaining setter calls- See Also:
-
getCustomStyle
CSS style name used for thisNavItem
. If set and thisNavItem
is aheader
, this overrides theNavPanel
'sNavPanel.headerStyle
.- Overrides:
getCustomStyle
in classListGridRecord
- Returns:
- Current customStyle value. Default value is null
- See Also:
-
setEnableWhen
Criteria to be evaluated to determine whether this NavItem should be disabled.A basic criteria uses textMatchStyle:"exact". When specified in
Component XML
this property allowsshorthand formats
for defining criteria.- Parameters:
enableWhen
- New enableWhen value. Default value is null- Returns:
NavItem
instance, for chaining setter calls- See Also:
-
getEnableWhen
Criteria to be evaluated to determine whether this NavItem should be disabled.A basic criteria uses textMatchStyle:"exact". When specified in
Component XML
this property allowsshorthand formats
for defining criteria.- Returns:
- Current enableWhen value. Default value is null
- See Also:
-
setIcon
Icon to show for thisNavItem
. If not specified, thenavGrid's folderIcon
is used. -
getIcon
Icon to show for thisNavItem
. If not specified, thenavGrid's folderIcon
is used. -
setId
An optional ID for thisNavItem
. If specified, this must be unique within theNavPanel
.- Parameters:
id
- New id value. Default value is null- Returns:
NavItem
instance, for chaining setter calls- See Also:
-
getId
An optional ID for thisNavItem
. If specified, this must be unique within theNavPanel
.- Returns:
- Current id value. Default value is null
- See Also:
-
setIsHeader
If set, thisNavItem
will be styled like a header. In this casepane
is ignored and nothing happens when the header is clicked. However,items
can still be configured to place items hierarchically under the header.- Parameters:
isHeader
- New isHeader value. Default value is null- Returns:
NavItem
instance, for chaining setter calls
-
getIsHeader
If set, thisNavItem
will be styled like a header. In this casepane
is ignored and nothing happens when the header is clicked. However,items
can still be configured to place items hierarchically under the header.- Returns:
- Current isHeader value. Default value is null
-
setIsSeparator
If set, thisNavItem
will be styled as a separator. A separator does not have apane
and nothing happens when the separator is clicked.- Overrides:
setIsSeparator
in classListGridRecord
- Parameters:
isSeparator
- New isSeparator value. Default value is null- Returns:
NavItem
instance, for chaining setter calls
-
getIsSeparator
If set, thisNavItem
will be styled as a separator. A separator does not have apane
and nothing happens when the separator is clicked.- Overrides:
getIsSeparator
in classListGridRecord
- Returns:
- Current isSeparator value. Default value is null
-
getItems
Optional subitems of thisNavItem
.- Returns:
- Current items value. Default value is null
-
setPane
Component to display in theNavPanel.navDeck
when thisNavItem
is selected.A component can be provided directly, or its ID can be provided.
- Parameters:
pane
- New pane value. Default value is null- Returns:
NavItem
instance, for chaining setter calls
-
getPane
Component to display in theNavPanel.navDeck
when thisNavItem
is selected.A component can be provided directly, or its ID can be provided.
- Returns:
- Current pane value. Default value is null
-
setPane
Component to display in theNavPanel.navDeck
when thisNavItem
is selected.A component can be provided directly, or its ID can be provided.
- Parameters:
pane
- New pane value. Default value is null- Returns:
NavItem
instance, for chaining setter calls- See Also:
-
getPaneAsString
Component to display in theNavPanel.navDeck
when thisNavItem
is selected.A component can be provided directly, or its ID can be provided.
- Returns:
- Current pane value. Default value is null
- See Also:
-
setTitle
Title to show for thisNavItem
. -
getTitle
Title to show for thisNavItem
.
-