Package cookxml.core.exception

Examples of cookxml.core.exception.SetterException


      frame.setUndecorated (true);
      if (b)
        frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
    }
    else
      throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here


public class ListSelectionListenerSetter implements Setter, DocletActionReporter
{
  public void setAttribute (String ns, String tag, String attrNS, String attr, Object obj, Object value, DecodeEngine decodeEngine) throws SetterException
  {
    if (value == null || (!(obj instanceof JTable) && !(obj instanceof JList)))
      throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);

    try
    {
      ListSelectionListener listener = null;
      if (value instanceof ListSelectionListener)
        listener = (ListSelectionListener)value;
      else if (value instanceof String)
      {
        Object o = decodeEngine.getVariable ((String)value);
        if (o instanceof ListSelectionListener)
          listener = (ListSelectionListener)o;
      }
      if (listener != null)
      {
        ListSelectionModel selectionModel = null;
        if (obj instanceof JTable)
          selectionModel = ((JTable)obj).getSelectionModel ();
        if (selectionModel != null)
        {
          selectionModel.addListSelectionListener (listener);
          return;
        }
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
    throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here

  public void setAttribute (String ns, String tag, String attrNS, String attr, Object obj, Object value, DecodeEngine decodeEngine) throws Exception
  {
    if ((m_objectClass != null && !m_objectClass.isInstance (obj)) ||
      (m_valueClass != null && !m_valueClass.isInstance (value)))
      throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);

    if (m_method != null)
      m_method.invoke (obj, new Object[]{ value });
    else
      set (ns, tag, obj, value, decodeEngine, m_objectClass, m_valueClass, m_funcName);
View Full Code Here

        return;
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
    throw new SetterException (decodeEngine, new NoHandlerException (decodeEngine, ns, tag, attr, obj, value), this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here

      listener = (PropertyChangeListener)value;
      propName = null;
    }
    else
    {
      throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
    }

    try
    {

      if (propName == null)
      {
        Method method = obj.getClass ().getMethod ("addPropertyChangeListener", ONE_PARAM);
        method.invoke (obj, new Object[]{ listener });
      }
      else
      {
        Method method = obj.getClass ().getMethod ("addPropertyChangeListener", TWO_PARAM);
        method.invoke (obj, new Object[]{ propName, listener });
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
  }
View Full Code Here

        return;
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
    throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here

        return;
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
    throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here

        return;
      }
    }
    catch (Exception ex)
    {
      throw new SetterException (decodeEngine, ex, this, ns, tag, attrNS, attr, obj, value);
    }
    throw new SetterException (decodeEngine, null, this, ns, tag, attrNS, attr, obj, value);
  }
View Full Code Here

TOP

Related Classes of cookxml.core.exception.SetterException

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.