public class PortletStateImpl extends java.lang.Object implements PortletState
LOADCALLED, LOADED, NOTLOADED
Constructor and Description |
---|
PortletStateImpl(long loadStatus)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getLoadState()
Returns load state
|
boolean |
hasData()
Returns true if has data
|
boolean |
isFiltered() |
boolean |
isFilterOpen()
Returns true if filter's is open
|
boolean |
isFilterToggled() |
boolean |
isMaximised()
Returns whether portlet is expanded
|
boolean |
isPortletLoaded()
Returns true if the portlet has been loaded && ignore reload is off
|
boolean |
isPortletNotLoaded(ComponentInstance component)
Returns true if portlet was never loaded
|
boolean |
isPortletStateChanged() |
boolean |
isPortletUpdated()
Returns true of portlet was udpated
|
void |
setFiltered(boolean newFlag) |
void |
setFilterOpen(boolean newFlag)
Sets filter open flag
|
void |
setFilterToggled(boolean flag)
Sets the filterToggled state
|
void |
setHasData(boolean newFlag)
Sets new has data flag
|
void |
setLoadState(long status)
Sets load state
|
void |
setMaximised(boolean newFlag)
Returns whether portlet is expanded
|
void |
setPortletStateChanged(boolean newPortletState) |
void |
setPortletUpdated(boolean portletUpdated)
Sets portlet updated state
|
void |
setStateLoadCalled()
Sets load state as LOADCALLED
|
void |
setStateLoaded()
Sets load state LOADED
|
boolean |
wasPortletLoadCalled()
Returns true if portlet was just called for loading
|
public PortletStateImpl(long loadStatus)
loadStatus
- public boolean isPortletLoaded()
isPortletLoaded
in interface PortletState
public boolean wasPortletLoadCalled()
wasPortletLoadCalled
in interface PortletState
public boolean isPortletNotLoaded(ComponentInstance component)
isPortletNotLoaded
in interface PortletState
public boolean hasData()
hasData
in interface PortletState
public void setHasData(boolean newFlag)
setHasData
in interface PortletState
public long getLoadState()
getLoadState
in interface PortletState
PortletState
public void setLoadState(long status)
setLoadState
in interface PortletState
public void setStateLoaded()
setStateLoaded
in interface PortletState
public void setStateLoadCalled()
setStateLoadCalled
in interface PortletState
public boolean isPortletUpdated()
isPortletUpdated
in interface PortletState
public void setPortletUpdated(boolean portletUpdated)
setPortletUpdated
in interface PortletState
portletUpdated
- public boolean isPortletStateChanged()
public void setPortletStateChanged(boolean newPortletState)
boolean
- - Takes new flag for occurance of portlet delete eventpublic boolean isFiltered()
public void setFiltered(boolean newFlag)
boolean
- - Sets new flag for portlet data being filteredpublic boolean isFilterToggled()
isFilterToggled
in interface PortletState
public void setFilterToggled(boolean flag)
setFilterToggled
in interface PortletState
public boolean isMaximised()
isMaximised
in interface PortletState
public void setMaximised(boolean newFlag)
setMaximised
in interface PortletState
public boolean isFilterOpen()
isFilterOpen
in interface PortletState
public void setFilterOpen(boolean newFlag)
setFilterOpen
in interface PortletState