Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_GROUP |
static String |
PARAMETER_HEIGHT |
static String |
PARAMETER_HTML_AFTER |
static String |
PARAMETER_HTML_BEFORE |
static String |
PARAMETER_MAXIMIZABLE |
static String |
PARAMETER_MINIMIZABLE |
static String |
PARAMETER_PAINT_BORDER |
static String |
PARAMETER_PAINT_TITLE |
static String |
PARAMETER_SESSION_KEEP_ALIVE |
static String |
PARAMETER_TITLE
Common parameters
|
Constructor and Description |
---|
PanelInstance() |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisit(WorkspaceVisitor visitor) |
void |
addPanelParameter(PanelParameter param) |
Object |
clone()
Clone this object, that is, return a similar object with same basic attributes, but without relations.
|
boolean |
equals(Object obj) |
protected void |
firePanelCustomPropertiesModified() |
protected void |
firePanelPropertiesModified() |
Panel[] |
getAllPanels()
Determine all panels hanging from this instance.
|
int |
getAllPanelsCount()
Count all panels hanging from this instance.
|
PanelProviderParameter[] |
getAllParameters()
Returns all parameters defined for this panel, regardless of their types
|
Serializable |
getContentData() |
PanelProviderParameter[] |
getCustomParameters()
Returns all custom parameters defined for this panel
|
Long |
getDbid() |
int |
getHeight() |
PanelProviderParameter[] |
getI18nParameters()
Returns all internationalizable parameters defined for this panel
|
String |
getId() |
PanelInstance |
getInstance() |
Long |
getInstanceId() |
protected LocaleManager |
getLocaleManager() |
PanelParameter |
getPanelParameter(String id,
String lang) |
PanelParameter[] |
getPanelParameters() |
Set |
getPanelParams() |
String |
getParameterValue(String id) |
String |
getParameterValue(String id,
String language) |
PanelInstance |
getPartialClonedCopy()
Returns a clone of this object to work with.
|
String |
getPersistence() |
Properties |
getProperties() |
PanelProvider |
getProvider() |
String |
getProviderName() |
String |
getResource(String key) |
String |
getResource(String key,
Locale locale) |
PanelProviderParameter[] |
getSystemParameters()
Returns all system parameters defined for this panel
|
Map |
getTitle() |
String |
getTitle(String language) |
WorkspaceImpl |
getWorkspace() |
int |
hashCode()
Returns a constant value.
|
void |
init()
Init panel
|
void |
instanceRemoved(org.hibernate.Session session)
Notify this panel is about to be removed
|
boolean |
isInitiallyMaximized() |
boolean |
isMaximizable() |
boolean |
isMinimizable() |
boolean |
isPaintBorder() |
boolean |
isPaintTitle() |
boolean |
isSessionAliveAfterPageLeft()
Determine if panel session is to be kept alive after page changed.
|
boolean |
isWellConfigured()
Returns if this panel has been successfully configured
|
void |
persist()
Persists this panel's contents, actually, save it all to DB.
|
void |
removePanelParameter(String paramId) |
void |
restore()
Deprecated.
Now panel persistence is stored as a String property of PanelInstance.
This method has a void implementation but is not removed in order to keep interface .
|
void |
saveCustomProperties()
Saves all this panel's properties via the workspaces managers
|
void |
saveProperties()
Saves all this panel's properties via the workspaces managers
|
void |
setContentData(Serializable data) |
void |
setDbid(Long dbid) |
void |
setHeight(int height) |
void |
setId(String id) |
void |
setInstanceId(Long instanceId) |
void |
setPanelParams(Set panelParams) |
void |
setParameterValue(PanelParameter param) |
void |
setParameterValue(String id,
String value) |
void |
setParameterValue(String id,
String value,
String language) |
void |
setPersistence(String persistence) |
void |
setProvider(PanelProvider provider) |
void |
setProviderName(String providerName) |
void |
setTitle(Map title) |
void |
setTitle(String title,
String language) |
void |
setWorkspace(WorkspaceImpl workspace) |
String |
toString() |
public static final String PARAMETER_TITLE
public static final String PARAMETER_GROUP
public static final String PARAMETER_HEIGHT
public static final String PARAMETER_HTML_BEFORE
public static final String PARAMETER_HTML_AFTER
public static final String PARAMETER_MAXIMIZABLE
public static final String PARAMETER_MINIMIZABLE
public static final String PARAMETER_PAINT_TITLE
public static final String PARAMETER_PAINT_BORDER
public static final String PARAMETER_SESSION_KEEP_ALIVE
public int hashCode()
http://www.mail-archive.com/hibernate-devel@lists.sourceforge.net/msg00008.html.
public Long getInstanceId()
public void setInstanceId(Long instanceId)
public String getId()
public void setId(String id)
public Long getDbid()
public void setDbid(Long dbid)
public PanelProvider getProvider()
public void setProvider(PanelProvider provider)
public String getProviderName()
public void setProviderName(String providerName)
public WorkspaceImpl getWorkspace()
public void setWorkspace(WorkspaceImpl workspace)
public Set getPanelParams()
public void setPanelParams(Set panelParams)
public Map getTitle()
public void setTitle(Map title)
public int getHeight()
public void setHeight(int height)
public boolean isMaximizable()
public boolean isMinimizable()
public boolean isInitiallyMaximized()
public boolean isPaintTitle()
public boolean isPaintBorder()
public boolean isSessionAliveAfterPageLeft()
public void addPanelParameter(PanelParameter param)
public void removePanelParameter(String paramId)
public PanelParameter getPanelParameter(String id, String lang)
public PanelParameter[] getPanelParameters()
protected LocaleManager getLocaleManager()
public void setParameterValue(PanelParameter param)
public PanelProviderParameter[] getAllParameters()
public PanelProviderParameter[] getSystemParameters()
public PanelProviderParameter[] getCustomParameters()
public PanelProviderParameter[] getI18nParameters()
public boolean isWellConfigured()
public Properties getProperties()
public String getResource(String key)
public String getResource(String key, Locale locale)
public PanelInstance getInstance()
public void saveProperties() throws Exception
Exception
- in case of errorpublic void saveCustomProperties() throws Exception
Exception
public Serializable getContentData()
public void setContentData(Serializable data)
public PanelInstance getPartialClonedCopy()
public String getPersistence()
public void setPersistence(String persistence)
public void persist() throws Exception
Exception
public void restore() throws Exception
Exception
protected void firePanelPropertiesModified()
protected void firePanelCustomPropertiesModified()
public void instanceRemoved(org.hibernate.Session session) throws Exception
Exception
public Object clone()
public String toString()
public Panel[] getAllPanels()
public int getAllPanelsCount()
public Object acceptVisit(WorkspaceVisitor visitor) throws Exception
acceptVisit
in interface Visitable
Exception
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.