public class Layout extends GraphicElement implements Comparable, Cloneable
Modifier and Type | Field and Description |
---|---|
static Properties |
DEFAULT_PROPERTIES |
static String |
DESCRIPTOR_FILENAME |
dbid, description, id, JSPS_PREFIX, JSPS_SUFFIX, panelId, resources, sectionId, workspaceId
Constructor and Description |
---|
Layout() |
Layout(String id,
File zipFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRegion(LayoutRegion region)
Adds a region to this template
|
int |
compareTo(Object o)
Compare layouts.
|
protected void |
deploy()
Process the element descriptor inside the zip file, and set properties for given graphic element.
|
protected void |
deployFiles()
Deploy to a given directory.
|
Object |
elementClone()
Clone this object.
|
protected String |
getBaseDir()
Subdirectory inside getMappingDir() where this element stores files.
|
String |
getCategoryName()
Get the category name representing this type of element
|
protected String |
getDescriptorFileName()
Name of the file that contains the descriptor (i.e. skin.properties...)
|
GraphicElementManager |
getInstanceManager()
Manager that handles this type of resource.
|
String |
getJSPName() |
static GraphicElementManager |
getManager()
The manager that handles this type of resource.
|
protected String |
getMappingDir()
Directory where the elements of this type deployment files should be placed (starting in /www/htdocs/
also serves as starting point for urls.
|
protected String |
getPrefixForResourcePath(String path)
Determine a prefix String for resource with given path
|
static GraphicElementPreview |
getPreviewInstance(File f,
String workspaceId,
Long sectionId,
Long panelId,
String id)
Get an instance to a previewer for this item.
|
LayoutRegion |
getRegion(String id)
Returns a region by identifier
|
LayoutRegion[] |
getRegions()
Returns all regions
|
protected String |
getSuffixForResourcePath(String path)
Determine a prefix String for resource with given path
|
String |
toString() |
acceptVisit, checkDeployment, clearDeploymentFiles, clone, equals, getDbid, getDeploymentDirName, getDescription, getId, getLastModified, getLocaleManager, getPanelId, getRelativeResourceName, getResource, getResourceName, getResources, getSectionId, getTmpZipFile, getWorkspaceId, getZipFile, onDelete, onLoad, onSave, onUpdate, setDbid, setDescription, setDescription, setId, setLastModified, setPanelId, setSectionId, setWorkspaceId, setZipFile, setZipFile, unzip
public static final String DESCRIPTOR_FILENAME
public static final Properties DEFAULT_PROPERTIES
public String getCategoryName()
GraphicElement
getCategoryName
in class GraphicElement
protected String getDescriptorFileName()
getDescriptorFileName
in class GraphicElement
protected String getMappingDir()
getMappingDir
in class GraphicElement
protected String getBaseDir()
getBaseDir
in class GraphicElement
public GraphicElementManager getInstanceManager()
getInstanceManager
in class GraphicElement
public static GraphicElementManager getManager()
public static GraphicElementPreview getPreviewInstance(File f, String workspaceId, Long sectionId, Long panelId, String id)
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class GraphicElement
o
- the Object to be compared.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public Object elementClone()
GraphicElement
elementClone
in class GraphicElement
protected void deploy() throws Exception
GraphicElement
deploy
in class GraphicElement
IOException
Exception
protected void deployFiles() throws Exception
deployFiles
in class GraphicElement
Exception
IOException
protected String getPrefixForResourcePath(String path)
GraphicElement
getPrefixForResourcePath
in class GraphicElement
protected String getSuffixForResourcePath(String path)
GraphicElement
getSuffixForResourcePath
in class GraphicElement
public String getJSPName()
protected void addRegion(LayoutRegion region)
public LayoutRegion getRegion(String id)
public LayoutRegion[] getRegions()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.