Package com.volantis.mcs.protocols.menu.builder

Examples of com.volantis.mcs.protocols.menu.builder.BuilderException


        // Applicable to menus and menu items
        if (item != null) {
            try {
                item.setPrompt(prompt);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            ConcreteMenu menu = getCurrentMenu();

            if (menu != null) {
                try {
                    menu.setPrompt(prompt);
                } catch (Exception e) {
                    throw new BuilderException(e);
                }
            } else {
                reportBadParent("prompt");
            }
        }
View Full Code Here


        if (menu != null) {
            try {
                menu.setErrorMessage(message);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("error message");
        }
    }
View Full Code Here

        if (menu != null) {
            try {
                menu.setHelp(help);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("help");
        }
    }
View Full Code Here

        if (item != null) {
            try {
                item.setEventHandler(eventType, handler);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent((eventType == null) ? "event handler" :
                            eventType.toString());
        }
View Full Code Here

        if (item != null) {
            try {
                item.setHref(href);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("href");
        }
    }
View Full Code Here

        if (item != null) {
            try {
                item.setSegment(segment);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("segment");
        }
    }
View Full Code Here

        if (item != null) {
            try {
                item.setTarget(target);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("target");
        }
    }
View Full Code Here

        if (item != null) {
            try {
                item.setTitle(title);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("title");
        }
    }
View Full Code Here

        if (icon != null) {
            try {
                icon.setNormalURL(url);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("normal URL");
        }
    }
View Full Code Here

        if (icon != null) {
            try {
                icon.setOverURL(url);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("over URL");
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.builder.BuilderException

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.