public class Section extends Object implements Comparable<Section>, Visitable
Modifier and Type | Field and Description |
---|---|
protected String |
friendlyUrl
URL that gives direct access to the section if a friendly format
|
Constructor and Description |
---|
Section()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisit(WorkspaceVisitor visitor) |
void |
assignPanel(Panel panel,
LayoutRegion region)
Adds a panel to a given region
|
void |
assignPanel(Panel panel,
String layoutRegionId) |
Object |
clone()
Clone this object, that is, create a new Section with same parameters, and
same panels in the same workspace.
|
protected static int |
comparePathNumbers(List<Integer> l1,
List<Integer> l2) |
int |
compareTo(Section other) |
void |
deletePanel(Panel panel)
Deprecated.
Use removePanel instead.
|
boolean |
equals(Object obj) |
boolean |
existsPanel(String id) |
Panel[] |
getAllPanels()
Returns all panels
|
List<Section> |
getChildren() |
Long |
getDbid() |
int |
getDepthLevel() |
Envelope |
getEnvelope() |
String |
getEnvelopeId() |
String |
getFriendlyUrl() |
List<Section> |
getHierarchy() |
Long |
getId() |
String |
getKey()
Returns a global key to identify this panel
|
Layout |
getLayout()
Returns the layout this section has, or null if not found
|
String |
getLayoutId() |
Panel |
getMaximizedPanel(javax.servlet.http.HttpSession session)
Returns the region that is currently maximized for a session, or null if none
|
Panel |
getPanel(String id)
Returns a panel by identifier
|
Set<Panel> |
getPanels() |
Panel[] |
getPanels(LayoutRegion region)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
Integer |
getPanelsCellSpacing() |
int |
getPanelsCount(LayoutRegion region)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
String[] |
getPanelsStyleSheets()
Deprecated.
Provider will no longer have an StyleSheet.
|
Section |
getParent() |
Long |
getParentSectionId() |
List<Integer> |
getPathNumber() |
int |
getPosition() |
Integer |
getRegionsCellSpacing() |
Section |
getRoot() |
Long |
getSectionId() |
SectionRegion |
getSectionRegion(String regionId) |
Skin |
getSkin() |
String |
getSkinId() |
Map<String,String> |
getTitle() |
Panel[] |
getUnassignedPanels()
Return all panels remaining unassigned for this section
|
WorkspaceImpl |
getWorkspace() |
int |
hashCode()
Returns a constant value.
|
void |
init()
Initializes this section
|
boolean |
isAncestor(Section section) |
boolean |
isFirstPanelInRegion(Panel panel,
LayoutRegion region)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
boolean |
isLastPanelInRegion(Panel panel,
LayoutRegion region)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
boolean |
isNew() |
boolean |
isOnlyPanelInRegion(Panel panel,
LayoutRegion region)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
boolean |
isRoot() |
Boolean |
isVisible() |
void |
moveBackInRegion(Panel panel)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
void |
moveDown(Section section)
Changes the order of a section belonging to this workspace
|
void |
moveForwardInRegion(Panel panel)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
void |
moveUp(Section section)
Changes the order of a section, putting it before it was
|
void |
removePanel(Panel panel)
Removes a panel from this section from database
|
void |
removePanelFromRegion(Panel panel)
Deprecated.
Use getSectionRegion to obtain SectionRegion instance and then use the methods
defined into that class.
|
void |
restorePanelSize(javax.servlet.http.HttpSession session)
Restores all this sections panels to ites regular size
|
void |
setDbid(Long dbid) |
void |
setEnvelopeId(String envelopeId) |
void |
setFriendlyUrl(String friendlyUrl) |
void |
setId(Long id) |
void |
setLayout(Layout layout)
Changes the template assigned to this section.
|
void |
setLayoutId(String layoutId) |
void |
setPanels(Set<Panel> panels) |
void |
setPanelsCellSpacing(Integer panelsCellSpacing) |
void |
setParent(Section parent) |
void |
setParentSectionId(Long id) |
void |
setPosition(int position) |
void |
setRegionsCellSpacing(Integer regionsCellSpacing) |
void |
setSectionId(Long id) |
void |
setSkinId(String skinId) |
void |
setTitle(Map<String,String> title) |
void |
setTitle(String title,
String lang) |
void |
setVisible(Boolean visible) |
void |
setWorkspace(WorkspaceImpl workspace) |
String |
toString() |
protected String friendlyUrl
public int hashCode()
VERY IMPORTANT NOTE. Regarding the message from jiesheng zhang posted on Fri, 01 Aug 2003 03:06:26 -0700 at hibernate-devel MAIL ARCHIVE: "In hibernate current implementation, if a object is retrieved from Set and its hashCode is changed, there is no way to remove it from set."
You can read the original message at:
http://www.mail-archive.com/hibernate-devel@lists.sourceforge.net/msg00008.html.
public int getDepthLevel()
public int compareTo(Section other)
compareTo
in interface Comparable<Section>
public boolean isNew()
public void init()
public Long getParentSectionId()
public void setParentSectionId(Long id)
public Layout getLayout()
public void setLayout(Layout layout)
public String getLayoutId()
public void setLayoutId(String layoutId)
public Long getId()
public void setId(Long id)
public Long getSectionId()
public void setSectionId(Long id)
public Long getDbid()
public void setDbid(Long dbid)
public WorkspaceImpl getWorkspace()
public void setWorkspace(WorkspaceImpl workspace)
public Boolean isVisible()
public void setVisible(Boolean visible)
public Integer getRegionsCellSpacing()
public void setRegionsCellSpacing(Integer regionsCellSpacing)
public Integer getPanelsCellSpacing()
public void setPanelsCellSpacing(Integer panelsCellSpacing)
public int getPosition()
public void setPosition(int position)
public String getFriendlyUrl()
public void setFriendlyUrl(String friendlyUrl)
public Section getParent()
public void setParent(Section parent)
public boolean isRoot()
public Section getRoot()
public boolean isAncestor(Section section)
public void assignPanel(Panel panel, LayoutRegion region)
public void removePanel(Panel panel)
public void deletePanel(Panel panel)
public boolean existsPanel(String id)
public Panel[] getAllPanels()
public Panel[] getUnassignedPanels()
public Panel getMaximizedPanel(javax.servlet.http.HttpSession session)
public void restorePanelSize(javax.servlet.http.HttpSession session)
public String[] getPanelsStyleSheets()
public void moveUp(Section section)
public void moveDown(Section section)
public String getKey()
public Object clone()
public String toString()
public SectionRegion getSectionRegion(String regionId)
public void removePanelFromRegion(Panel panel)
public Panel[] getPanels(LayoutRegion region)
public int getPanelsCount(LayoutRegion region)
public void moveBackInRegion(Panel panel)
public void moveForwardInRegion(Panel panel)
public boolean isFirstPanelInRegion(Panel panel, LayoutRegion region)
public boolean isLastPanelInRegion(Panel panel, LayoutRegion region)
public boolean isOnlyPanelInRegion(Panel panel, LayoutRegion region)
public String getSkinId()
public void setSkinId(String skinId)
public String getEnvelopeId()
public void setEnvelopeId(String envelopeId)
public Skin getSkin()
public Envelope getEnvelope()
public Object acceptVisit(WorkspaceVisitor visitor) throws Exception
acceptVisit
in interface Visitable
Exception
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.