public class SideViewControllerImpl
extends java.lang.Object
SideViewController
manages to visibility of a SideView.
While a SideView represents an instance of nUIViewDisplay
,
it's used as a navigation concept displayed at the left of a
nUIWindowDisplay
.
The SideViewController
works together with
AbstractApplicationController.setView(nUIViewDisplay)
to check
whether a SideView needs to be added to a nUIWindowDisplay
or not.
This is usually the case of there is at least one
AbstractViewController
which returns true while evaluating
AbstractViewController.hasSideView()
. For all generated view
controllers, this method is generated to return true if the corresponding
view contains at least one OpenSideView
action.
Constructor and Description |
---|
SideViewControllerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
closeSideView()
Asks the
nUIWindowDisplay to hide a SideView. |
void |
contributeSideView()
Contributes the set SideView to the main
nUIWindowDisplay . |
int |
getDefaultSideViewLocation()
Returns the default SideView location.
|
float |
getDefaultSideViewWidth()
Returns the default SideView width.
|
AbstractViewController |
getSideViewController()
Returns the currently used view controller for the SideView.
|
void |
openSideView()
Asks the
nUIWindowDisplay to show a SideView. |
void |
removeSideView()
Removes the SideView from the main
nUIWindowDisplay . |
void |
setupSideView(AbstractViewController sideViewController)
Sets the SideView-controller instance.
|
public void openSideView()
nUIWindowDisplay
to show a SideView.
The SideView must be set and contributed using
setupSideView(AbstractViewController)
and
contributeSideView()
.
public void closeSideView()
nUIWindowDisplay
to hide a SideView.public void setupSideView(AbstractViewController sideViewController)
sideViewController
- public void contributeSideView()
nUIWindowDisplay
.
This method is called by
AbstractApplicationController.setView(nUIViewDisplay)
if at least
one view controller has a OpenSideView
action.
public void removeSideView()
nUIWindowDisplay
.
This method is called by
AbstractApplicationController.setView(nUIViewDisplay)
if no view
controller has a OpenSideView
action.
public float getDefaultSideViewWidth()
public int getDefaultSideViewLocation()
nUIWindowDisplay.getDefaultSideViewPosition()
public AbstractViewController getSideViewController()