Package org.zkoss.zk.device

Examples of org.zkoss.zk.device.DeviceNotFoundException


  List extensions, PageRenderer pageRenderer,
  boolean ignoreCase, boolean bNative, Locator locator) {
    if (deviceType == null || deviceType.length() == 0)
      throw new UiException("deviceType cannot be empty");
    if (!Devices.exists(deviceType))
      throw new DeviceNotFoundException(deviceType, MZk.NOT_FOUND, deviceType);
    if (ZK_NAMESPACE.equals(namespace))
      throw new UiException(ZK_NAMESPACE+" is reserved.");
    if (name == null || name.length() == 0
    || namespace == null || namespace.length() == 0
    || pageRenderer == null || locator == null)
View Full Code Here


    //this method once
    if (!_devType.equals(deviceType)) {
      if (deviceType == null || deviceType.length() == 0)
        throw new IllegalArgumentException("empty");
      if (!Devices.exists(deviceType))
        throw new DeviceNotFoundException(deviceType, MZk.NOT_FOUND, deviceType);

      if (!_comps.isEmpty())
        throw new UiException("Unable to change the device type since some components are attached.");
      _devType = deviceType;
      _dev = null;
View Full Code Here

TOP

Related Classes of org.zkoss.zk.device.DeviceNotFoundException

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.