Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Application on mobile device
Application on mobile device [message #1832741] Thu, 24 September 2020 07:51 Go to next message
Miloslav Frajdl is currently offline Miloslav FrajdlFriend
Messages: 55
Registered: June 2018
Member
Hi.

I have a problem. I have a menu defined on the desktop. When I open the page on my mobile phone, I don't see the menu items. This is probably due to some adjustment for the mobile client.
In the Technical Guide, the DeviceTransformationPlatformListener class is described in chapter 14.2 and is written here: "If you don't want any of
these transformers to be active you could simply replace this listener and do nothing."

My questions:
1. How do I set the display of menu items on mobile clients?
2. I want to experiment with the DeviceTransformationPlatformListener class. How can I replace it so Scout can use mine?

Thank you very much for the advice.
Re: Application on mobile device [message #1833718 is a reply to message #1832741] Thu, 22 October 2020 12:26 Go to previous message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 259
Registered: March 2010
Senior Member
Hi there

If the desktop is in compact mode, the tool box will be moved from the desktop header to the navigation. If the navigation is visible, which is the default if you have outlines and no form is open, then the menus should be visible. In your application, is the navigation visible or the bench incl. the header?

To turn off the desktop transformation you could replace the MobileDeviceTransformer and replace the transformDesktop method.

@Replace
public class CustomMobileDeviceTransformer extends MobileDeviceTransformer {
  @Override
  public void transformDesktop() {
    // Do nothing
  }
}

Outline elements like pages and detail forms are still transformed, just override the corresponding methods to turn that off.

Note that with the upcoming Scout 11 it will be easier to disable the transformation of the desktop and outline using MobileDeviceTransformation.MAKE_DESKTOP_COMPACT.

I have just recently updated the Mobile chapter in the Scout 11 Tech Doc. Even though some points will only be valid in the upcoming release, the most is already valid for the current Scout 10 release. There you will now also find the answer to your second question:

@Replace
public class CustomDeviceTransformationPlatformListener extends DeviceTransformationPlatformListener {
  @Override
  public void stateChanged(PlatformEvent event) {
    // Do nothing to not register any extension so no transformation will happen
  }
}


Hope it helps
Claudio


Previous Topic:Eclipse Scout advanced Training
Next Topic:Table checkable Column
Goto Forum:
  


Current Time: Wed Nov 13 22:03:39 GMT 2024

Powered by FUDForum. Page generated in 0.25380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top