[Yanel-dev] Re: Toolbar on/off
Michael Wechner
michael.wechner at wyona.com
Thu Dec 30 00:32:29 CET 2010
Hi Balz
See
src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java#getToolb=
arStatus()
and how it is used within this class.
But I agree we could/should make this a bit more "formal". Maybe enhance
src/core/java/org/wyona/yanel/core/Environment.java
with such a method. WDYT?
Cheers
Michael
On 12/29/10 5:38 PM, Balz Schreier wrote:
> 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/2010123=
0/90f3d7d4/attachment.htm
More information about the Yanel-development
mailing list