Package org.eclnt.workplace
Class WorkplaceTileManager
java.lang.Object
org.eclnt.workplace.WorkplaceTileManager
- All Implemented Interfaces:
Serializable
Manages the "tiles" of a workplace. The workplace manager manages a hierarchy of
areas ("tiles"), each one containing a workpage container.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
destroyTile
(String tileId) Destroy one tile - the neighbour tile is re-organized accordingly.void
ensureTileForWorkpageContainerIsAvailable
(String workpageContainerId) Exports current workplace configuration intoexportWorkplaceTileInfo()
object.Animation that is applied inside a workpage container when its content is updated.int
void
importWorkplaceTileInfo
(String perspective) Imports a workplace perspective - the perspective is resolved by its name.void
importWorkplaceTileInfo
(String perspective, boolean withClosingCurrentContent) Same asimportWorkplaceTileInfo(String)
- but with additional parameter.void
importWorkplaceTileInfo
(WorkplaceTileInfo tileInfo) Imports an existing workplace perspective into the current workplace.void
importWorkplaceTileInfo
(WorkplaceTileInfo tileInfo, boolean withClosingCurrentContent) Same asimportWorkplaceTileInfo(WorkplaceTileInfo)
but now with additional parameter "withClosingCurrentContent".void
setAnimationType
(String animationType) void
setDividerSize
(int dividerSize) void
setDividerSize
(String value) boolean
setPercentageWidthOfTile
(String tileId, int percWidth) boolean
setPixelWidthOfTile
(String tileId, int pixelWidth) void
setSelectorPosition
(String selectorPosition) void
setWpCloseImage
(String wpCloseImage) void
setWpPopupImage
(String wpPopupImage) void
setWpPopupMenu
(String wpPopupMenu) Splits a tile with a given id.
-
Field Details
-
DIRECTION_TOP
public static int DIRECTION_TOP -
DIRECTION_BOTTOM
public static int DIRECTION_BOTTOM -
DIRECTION_LEFT
public static int DIRECTION_LEFT -
DIRECTION_RIGHT
public static int DIRECTION_RIGHT
-
-
Constructor Details
-
WorkplaceTileManager
-
-
Method Details
-
construct
protected void construct() -
getWorkplaceTileSplits
-
getTopTile
-
getContent
-
getSelectorPosition
-
setSelectorPosition
-
getAnimationType
Animation that is applied inside a workpage container when its content is updated. Default is "fogdark". -
setAnimationType
-
getDividerSize
public int getDividerSize() -
setDividerSize
-
setDividerSize
public void setDividerSize(int dividerSize) -
getWpCloseImage
-
setWpCloseImage
-
getWpPopupImage
-
setWpPopupImage
-
getWpPopupMenu
-
setWpPopupMenu
-
setPixelWidthOfTile
-
setPercentageWidthOfTile
-
splitTile
Splits a tile with a given id. -
splitTile
- Parameters:
tileId
- The id of the workplace container that is to be split.
-
destroyTile
Destroy one tile - the neighbour tile is re-organized accordingly. Pay attention: destroying the tile does NOT check if there are workpages within the tile - this needs to be checked in parallel! -
importWorkplaceTileInfo
Imports a workplace perspective - the perspective is resolved by its name. -
importWorkplaceTileInfo
Same asimportWorkplaceTileInfo(String)
- but with additional parameter.- Parameters:
withClosingCurrentContent
- True => all workpages that are openes ared closed. False => the workpages are kept and are moved into the new workplace-tile-arrangement.
-
importWorkplaceTileInfo
Imports an existing workplace perspective into the current workplace. Use this method to directly load a certain tile arrangement into an existing workplace. -
importWorkplaceTileInfo
Same asimportWorkplaceTileInfo(WorkplaceTileInfo)
but now with additional parameter "withClosingCurrentContent".- Parameters:
withClosingCurrentContent
- True => all workpages that are openes ared closed. False => the workpages are kept and are moved into the new workplace-tile-arrangement.
-
exportWorkplaceTileInfo
Exports current workplace configuration intoexportWorkplaceTileInfo()
object. This is typically serialized in order to persist a workplace perspective. -
ensureTileForWorkpageContainerIsAvailable
-