[Yanel-dev] Re: Toolbar on/off
Michael Wechner
michael.wechner at wyona.com
Sun Jan 2 14:08:07 CET 2011
Hi Balz
I have added a method
RESOURCE.getEnvironment().getToolbarState()
Sending src/core/java/org/wyona/yanel/core/Environment.java
Transmitting file data .
Committed revision 55808.
see for example how this can be used at
Sending =
src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
Transmitting file data .
Committed revision 55810.
Cheers
Michael
> Hi,
>
> in the meanwhile I implemented this the following way. If you know a =
> more elegant way, please let me know.
> Something like getRequest().isToolbarEnabled() would be cool.
>
> if (StateOfView.AUTHORING.equals(getEnvironment().getStateOfView())) {
>
> transformer.setParameter(YANEL_TOOLBAR_STATE, "on");
>
> } else {
>
> transformer.setParameter(YANEL_TOOLBAR_STATE, "off");
>
> }
>
>
> Cheers
> Balz
>
> On Wed, Dec 29, 2010 at 5:07 PM, Balz Schreier =
> <balz.schreier at gmail.com <mailto:balz.schreier at gmail.com>> wrote:
>
> Hi,
>
> through which API can I find out whether the toolbar is switched
> on or off?
>
> Thanks
> Balz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2011010=
2/10d309ff/attachment.htm
More information about the Yanel-development
mailing list