public class NavigationAction extends Action
Constructor and Description |
---|
NavigationAction()
Default constructor.
|
NavigationAction(String navigationState)
Constructs a
NavigationAction with the give navigation state. |
NavigationAction(String navigationState,
String label)
Constructs a
NavigationAction with the give navigation state and label. |
NavigationAction(String navigationState,
String label,
String siteRootPath,
String contentPath)
Constructs a navigation action with the given navigation state, label, site root path and content path.
|
Modifier and Type | Method and Description |
---|---|
String |
getNavigationState() |
void |
setNavigationState(String navigationState)
Sets the navigation state for this
Action . |
getContentPath, getLabel, getSiteRootPath, setContentPath, setLabel, setSiteRootPath
public NavigationAction()
public NavigationAction(String navigationState)
NavigationAction
with the give navigation state.navigationState
- the string representing the navigation statepublic NavigationAction(String navigationState, String label)
NavigationAction
with the give navigation state and label.navigationState
- the string representing the navigation statelabel
- the label with the user-visible textpublic NavigationAction(String navigationState, String label, String siteRootPath, String contentPath)
navigationState
- the string representing the navigation statelabel
- the label with the user-visible textsiteRootPath
- the site root pathcontentPath
- the content pathpublic String getNavigationState()
NavigationState
that corresponds
to this action. A NavigationState
is serialized by calling
its NavigationState#toString()
method.public void setNavigationState(String navigationState)
Action
. Example: "/cameras/_/N-25y6?Ntt=camera", "N=1234", "Ntt=camera"navigationState
- the string representing the navigation stategetNavigationState()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.