Examples of Spring


Examples of org.dyno.visual.swing.layouts.Spring

    LayoutStyle style = LayoutStyle.getInstance();
    for (int i = 0; i < count; i++) {
      JComponent widget = (JComponent) container.getComponent(i);
      int gap = style.getContainerGap(widget, SwingConstants.EAST, container);
      Rectangle bounds = widget.getBounds();
      Spring spring = new Spring(gap, gap);
      Leading horizontal = new Leading(bounds.x, bounds.width, spring);
      gap = style.getContainerGap(widget, SwingConstants.SOUTH, container);
      spring = new Spring(gap, gap);
      Leading vertical = new Leading(bounds.y, bounds.height, spring);
      Constraints constraints = new Constraints(horizontal, vertical);
      comps.put(widget, constraints);
      array.add(widget);
    }
View Full Code Here

Examples of org.jboss.annotation.spring.Spring

      log.debug("Invoking Spring injection: " + target.getClass().getName());

      Method[] methods = getAllMethods(target);
      for (Method m : methods)
      {
         Spring spring = m.getAnnotation(Spring.class);
         if (spring != null)
         {
            if (isSetterMethod(m))
            {
               injectToMethod(target, m, spring);
            }
            else
            {
               log.warn("Spring annotation only allowed on setter methods.");
            }
         }
      }

      Field[] fields = getAllFields(target);
      for (Field f : fields)
      {
         Spring spring = f.getAnnotation(Spring.class);
         if (spring != null)
         {
            injectToField(target, f, spring);
         }
      }
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.