[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Hiding First Split in CC Workplace  XML
Forum Index -> Development
Author Message
rchiluano

Power User

Joined: 28/12/2017 07:21:54
Messages: 79
Offline

Hi captain,

I would like to add an event that will hide/show the first split in split pane CC Workplace.

Is is possible to do this?

Or can we set hidefirstsplit attribute in splitpane style dynamically? Something like #{d.Class.hide}.

Kind Regards,
Ryan
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...there is always some way... ;-)

From your page (if implementing WorkpageDispatchedPageBean) you may do the following calls...

Code:
         IWorkpageContainer wpc = getWorkpageContainer();
         WorkplaceTileManager wptm = wpc.getTileManager();
         WorkplaceTile topTile = wptm.getTopTile();
         WorkplaceTileWorkpageContainer functionsTile = topTile.findTile("FUNCTIONS");
         WorkplaceTileSplit splitOfFuntionsTile = functionsTile.getOwner();
         splitOfFuntionsTile.setDividerLocation("20");
 


This assumes that the "left part"'s name is "FUNCTIONS" (the workpage container id that you pass in the workplace definition).

Of course the user may change the whole configuration by dragging and dropping pages from one place to the next in the workplace.

So you may first find the corresponding workpage container which is holding the functions page... If this is required:

Code:
 1. IWorkpageContainer.getWorkpageForId(String id) ==> IWorkpage
 "id" being the id of the page...
 2. IWorkpage.getWorkpageContainer() ==> IWorkpageContainer of this workpage
 3. IWorpageContainer.getId() ==> the id of the workpage container
 
 and finally you use this id instead of "FUNCTIONS" in the code above.
 


Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team