MenuBar non selectable sub titles - gwt

I have a horizontal menu bar with a child vertical drop-down menu bar.
I would like it so that the child vertical menu bar contains something like the following:
Title text 1
Separator 1
Option 1.1
Option 1.2
Title text 2
Separator 2
Option 2.1
Option 2.2
Is there a way to add non-selectable text into a MenuBar as I don't want the user able to select the "Title text" elements?

myTitleMenuItem.setEnabled(false) ?

As T Broyer answered u can do setEnabled(false). You will get a disabled style for the item which would not look good.
And coming to User experience, User usually expects each item in the Menu Bar to perform some action. When he sees some item with text and not performing any action on clicking, he gets a impression like 'App is not working or not responding'.
So, its always better to create a Menu Item 'Title Text' and also create a Menu Bar with required items and set this menu bar as a child or SubMenu of Title Text item.
So, whenever user hovers or clicks on the 'Title Text item' sub menu will be shown.

Related

Changing screen contents by clicking a specific tab

I am using a TabBar in the middle of my screen, there are 4 tabs. I want to change the content above the tabbar when I click on the 3rd tab.
for the first 2 tabs I want to show a text with a searchbar and when I click the 3rd or 4th tab I want to replace the text and the searchbar to another text and a row of Weekdays.
This is the content I am showing (currently) for all the tabs
This is what I want to show when I click the "To Do" or the "Blog" tab
As I am new to Flutter, I have been working for months with the frontend and haven't faced such an issue. so I haven't tried anything.
Here is the main screen where I am displaying the Text and the SearchBar, works fine for the first 2 tabs but I want to change the text and the Searchbar when for the rest of 2 tabs (To Do & Blogs tabs)
This is the TabBar with the Tabs.

How to rerender the accordion layout after inserting new element from external window

a following scenario:
1. A window with some tabs.
2. In one tab there is accordion layout and the button "Add".
3. After selecting the button "Add" a new window with a a form appears.
4. The user fills the form and select the button "Save".
5. The window with the form disappears, system adds a new record in the database with data from the form.
6. The tab re-renders the accordion layout showing old elements and the new one.
The problem is that the point 6 doesn't work. The all elements are collapsed and clicking on the title bar of any element doesn't expand the accordion. Additionally the title bars of accordions are shorter than at the first rendering.
Any help?
Regards,
Jacek

Ms access form: field order

can I somehow set in what order the text fields become active after pressing the "Tab" button?
I think it depends on when you added the field and not where it is in the form. So can I change this or I should add the fields in the order I want to switch them with the "Tab" button?
Thanks!
There are at least a couple of ways to change tab order.
With the form in design view, right click on an area of the form without a control. On the context menu that appears, click on Tab Order. A dialog will open that will allow you to change the tab order.
Another method is via the property sheet for each control. On the Other tab there is a property for Tab Order. Just set it to whatever you like.

How to set focus on login box that render when click on sub menu bar?

I have menu bar that consist on menu and login.Each of this menu has its own sub menu.When I click on the submenu, it will render panel group layout that contain input text for login such as username and password.My question is how to set focus on the username every time i click on submenu on menu bar?
Here I attach the structure of my menu and submenu.
MENU
-Overview
LOGIN
-Employee
-Manager
Use JS to set the focus when your page loads.
Or use google and find this : https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus

How to create a drawer in iphone?

i just want to know how to create a dropdown menu when a button is clicked, just shown in the image.![image][1]
When I click "Default Language" button it should show a list of options to select from. And when this list appears, the other buttons (or rows) below the "Default Language" button should move down so that they are not covered by the popped list.
Regards Nipin.
Try this sample code from Apple. It basically uses a table view and gestures to open up and close different sections of a cell.