Package com.ibm.richtext.uiimpl.DialogItem

Examples of com.ibm.richtext.uiimpl.DialogItem.DialogFactory


                                                      final String[] names,
                                                      final Object[] values) {
       
        final Frame dialogParent = fDialogParent;

        return new DialogFactory() {   
            public Window createDialog(MTextPanel textPanel) {
                return new ObjectDialog(dialogParent,
                                        dialogTitle,
                                        dialogMessage,
                                        textPanel,
View Full Code Here


                                                      final Object key,
                                                      final boolean character) {
       
        final Frame dialogParent = fDialogParent;
           
        return new DialogFactory() {
            public Window createDialog(MTextPanel textPanel) {
                return new NumberDialog(dialogParent,
                                        dialogTitle,
                                        dialogMessage,
                                        textPanel,
View Full Code Here

        };
    }   
   
    protected DialogFactory createAboutDialogFactory() {
       
        return new DialogFactory() {
            public Window createDialog(MTextPanel textPanel) {
                String title = ResourceUtils.getResourceString(FrameResources.ABOUT_TITLE);
                return new MessageDialog(title, AboutText.getAboutText());
            }
        };
View Full Code Here

                                MenuItemSet.CHARACTER).setTextPanel(fTextPanel);
           
        if (fDialogParent != null) {
            String dialogTitle = ResourceUtils.getResourceString(FrameResources.SET_SIZE_TITLE);
            String dialogText = ResourceUtils.getResourceString(FrameResources.SET_SIZE_LABEL);
            DialogFactory factory = createNumberDialogFactory(dialogTitle,
                                                              dialogText,
                                                              TextAttribute.SIZE,
                                                              MenuItemSet.CHARACTER);
                                                             
            new DialogItem(ResourceUtils.getMenuData(FrameResources.OTHER_DIALOG),
View Full Code Here

           
            String[] fonts = FontList.getFontList();
            String title = ResourceUtils.getResourceString(FrameResources.SET_FONT_TITLE);
            String label = ResourceUtils.getResourceString(FrameResources.SET_FONT_LABEL);
           
            DialogFactory fontF = createObjectDialogFactory(title,
                                                            label,
                                                            TextAttribute.FAMILY,
                                                            StyleMenuItemSet.CHARACTER,
                                                            fonts,
                                                            fonts);
            new DialogItem(ResourceUtils.getMenuData(FrameResources.FONT_DIALOG),
                                    fontF).setTextPanel(fTextPanel);

            DialogFactory foregroundF = createColorDialogFactory(true);
            DialogFactory backgroundF = createColorDialogFactory(false);
           
            new DialogItem(ResourceUtils.getMenuData(FrameResources.FORECOLOR_DIALOG),
                                    foregroundF).setTextPanel(fTextPanel);
            new DialogItem(ResourceUtils.getMenuData(FrameResources.BACKCOLOR_DIALOG),
                                    backgroundF).setTextPanel(fTextPanel);
View Full Code Here

                                                      final String[] names,
                                                      final Object[] values) {
       
        final Frame dialogParent = fDialogParent;

        return new DialogFactory() {   
            public Window createDialog(MTextPanel textPanel) {
                return new JObjectDialog(dialogParent,
                                        dialogTitle,
                                        dialogMessage,
                                        textPanel,
View Full Code Here

                                                      final boolean character) {
       
        final Frame dialogParent = fDialogParent;
        // variable not used final MTextPanel textPanel = fTextPanel;
           
        return new DialogFactory() {
            public Window createDialog(MTextPanel fTxtPanel) {
                return new JNumberDialog(dialogParent,
                                         dialogTitle,
                                         dialogMessage,
                                         fTxtPanel,
View Full Code Here

        };
    }   
   
    protected DialogFactory createAboutDialogFactory() {
       
        return new DialogFactory() {
            public Window createDialog(MTextPanel textPanel) {
                String title = ResourceUtils.getResourceString(FrameResources.ABOUT_TITLE);
                return new JMessageDialog(title, AboutText.getAboutText());
            }
        };
View Full Code Here

TOP

Related Classes of com.ibm.richtext.uiimpl.DialogItem.DialogFactory

Copyright © 2018 www.massapicom. 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.