Package com.gwtext.client.widgets.menu

Examples of com.gwtext.client.widgets.menu.Menu.addItem()


    menu = new Menu();
    menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_READ.get() ) );
    menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNREAD.get() ) );
    menu.addItem( new Separator() );
    menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_DELETED.get() ) );
    menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNDELETED.get() ) );
    this.markToolbarButton.setMenu( menu );

    separator = new ToolbarSeparator();
    this.workbenchToolbar.addItem( separator );
    this.messageToolbarItems.add( separator );
View Full Code Here


    item = new MenuItem();
    item.setText( TextProvider.get().actions_reading_pane_right() );
    item.setIcon( ImageProvider.MSG_READING_PANE_RIGHT );
    item.setStateId( String.valueOf( Preferences.READING_PANE_RIGHT ) );
    item.addListener( ActionRegistry.READING_PANE.get() );
    menu.addItem( item );
    item = new MenuItem();
    item.setText( TextProvider.get().actions_reading_pane_bottom() );
    item.setIcon( ImageProvider.MSG_READING_PANE_BOTTOM );
    item.setStateId( String.valueOf( Preferences.READING_PANE_BOTTOM ) );
    item.addListener( ActionRegistry.READING_PANE.get() );
View Full Code Here

    item = new MenuItem();
    item.setText( TextProvider.get().actions_reading_pane_bottom() );
    item.setIcon( ImageProvider.MSG_READING_PANE_BOTTOM );
    item.setStateId( String.valueOf( Preferences.READING_PANE_BOTTOM ) );
    item.addListener( ActionRegistry.READING_PANE.get() );
    menu.addItem( item );
    item = new MenuItem();
    item.setText( TextProvider.get().actions_reading_pane_hide() );
    item.setIcon( ImageProvider.MSG_READING_PANE_HIDE );
    item.setStateId( String.valueOf( Preferences.READING_PANE_HIDE ) );
    item.addListener( ActionRegistry.READING_PANE.get() );
View Full Code Here

    item = new MenuItem();
    item.setText( TextProvider.get().actions_reading_pane_hide() );
    item.setIcon( ImageProvider.MSG_READING_PANE_HIDE );
    item.setStateId( String.valueOf( Preferences.READING_PANE_HIDE ) );
    item.addListener( ActionRegistry.READING_PANE.get() );
    menu.addItem( item );
    menuButton = UIFactory.createToolbarMenuButton( ActionRegistry.READING_PANE.get() );
    menuButton.setMenu( menu );
    this.workbenchToolbar.addButton( menuButton );

    this.workbenchToolbar.addButton( UIFactory.createToolbarButton( ActionRegistry.OPEN_PREFERENCES.get() ) );
View Full Code Here

    this.openMessageToolbar.addSeparator();

    Menu menu = new Menu();
    MenuItem item = UIFactory.createMenuItem( ActionRegistry.REPLY.get() );
    item.setText( TextProvider.get().toolbar_manager_to_originator() );
    menu.addItem( item );
    item = UIFactory.createMenuItem( ActionRegistry.REPLY_ALL.get() );
    item.setText( TextProvider.get().toolbar_manager_to_all() );
    menu.addItem( item );

    ToolbarMenuButton menuButton = UIFactory.createToolbarMenuButton( ActionRegistry.REPLY.get() );
View Full Code Here

    MenuItem item = UIFactory.createMenuItem( ActionRegistry.REPLY.get() );
    item.setText( TextProvider.get().toolbar_manager_to_originator() );
    menu.addItem( item );
    item = UIFactory.createMenuItem( ActionRegistry.REPLY_ALL.get() );
    item.setText( TextProvider.get().toolbar_manager_to_all() );
    menu.addItem( item );

    ToolbarMenuButton menuButton = UIFactory.createToolbarMenuButton( ActionRegistry.REPLY.get() );
    menuButton.setMenu( menu );
    this.openMessageToolbar.addButton( menuButton );
    this.openMessageToolbar.addButton( UIFactory.createToolbarButton( ActionRegistry.FORWARD.get() ) );
View Full Code Here

        shortToLongPortletNameMap = UIFactory.getAvailablePortletNameMap();

        Menu addPortletMenu = new Menu();
        for (String portletName : shortToLongPortletNameMap.keySet()) {
            Item item = new Item(portletName);
            addPortletMenu.addItem(item);
            item.addListener(new BaseItemListenerAdapter() {
                @Override
                public void onClick(BaseItem item, EventObject e) {
                    String javaClassName = shortToLongPortletNameMap.get(((Item) item).getText());
                    onPortletAdded(javaClassName);
View Full Code Here

        }

        Menu addTabMenu = new Menu();
        for (String tabName : shortToLongTabNameMap.keySet()) {
            CheckItem item = new CheckItem(tabName, enabledTabs.contains(shortToLongTabNameMap.get(tabName)));
            addTabMenu.addItem(item);
            item.addListener(new CheckItemListenerAdapter() {
                @Override
                public void onCheckChange(CheckItem item, boolean checked) {
                    String javaClassName = shortToLongTabNameMap.get(item.getText());
                    if (checked) {
View Full Code Here

        }

        // Add the "Add user defined tab"
        addTabMenu.addSeparator();
        Item item = new Item("Add your own tab");
        addTabMenu.addItem(item);
        item.addListener(new BaseItemListenerAdapter() {
            @Override
            public void onClick(BaseItem item, EventObject e) {
                onUserDefinedTabAdded();
            }
View Full Code Here

                        public void onClick(BaseItem item, EventObject event) {
                            super.onClick(item, event);
                            showInternalID((EntityData) node.getUserObject());
                        }
                    });
                    contextMenu.addItem(menuShowInternalID);

                    MenuItem menuShowDirectLink = new MenuItem();
                    menuShowDirectLink.setText("Show direct link");
                    menuShowDirectLink.setIcon("images/link.png");
                    menuShowDirectLink.addListener(new BaseItemListenerAdapter() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.