Examples of IFactory


Examples of com.onpositive.semantic.model.realm.IFactory

    return binding;
  }

  private static void createKey(CompositeEditor editor,
      final Binding binding, final Field f) {
    binding.setFactory(new IFactory() {

      public Object getValue(Object context) {
        GAEField d = (GAEField) f;

        if (d.keyKind == null) {
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

  private static void createBlob(CompositeEditor editor, Class<?> type,
      final Binding binding, final IJavaProject project) {
    final boolean isShort = type == ShortBlob.class;

    binding.setFactory(new IFactory() {

      public Object getValue(Object context) {
        Display current = Display.getCurrent();
        FileDialog fileDialog = new FileDialog(
            current.getActiveShell(), SWT.OPEN);
View Full Code Here

Examples of mekanism.common.IFactory

      electricChest.setPassword(itemStack, ((TileEntityElectricChest)tileEntity).password);
    }

    if(tileEntity instanceof TileEntityFactory)
    {
      IFactory factoryItem = (IFactory)itemStack.getItem();
      factoryItem.setRecipeType(((TileEntityFactory)tileEntity).recipeType, itemStack);
    }

    return itemStack;
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

* @version 1.0.0, 2008-7-3
* @author William Chen
*/
public class CompoundBorderSwitchAction extends BorderSwitchAction {
  public CompoundBorderSwitchAction(JComponent w) {
    super(w, CompoundBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createCompoundBorder();
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

import org.dyno.visual.swing.base.IFactory;

public class LineBorderSwitchAction extends BorderSwitchAction {
  public LineBorderSwitchAction(JComponent w) {
    super(w, LineBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createLineBorder(Color.black);
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

import org.dyno.visual.swing.base.IFactory;

public class SoftBevelBorderSwitchAction extends BorderSwitchAction {
  public SoftBevelBorderSwitchAction(JComponent w) {
    super(w, SoftBevelBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return new SoftBevelBorder(BevelBorder.LOWERED);
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

import org.dyno.visual.swing.base.IFactory;

public class TitledBorderSwitchAction extends BorderSwitchAction {
  public TitledBorderSwitchAction(JComponent w) {
    super(w, TitledBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createTitledBorder(Messages.TitledBorderSwitchAction_Border_Title);
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

import org.dyno.visual.swing.base.IFactory;

public class MatteBorderSwitchAction extends BorderSwitchAction {
  public MatteBorderSwitchAction(JComponent w) {
    super(w, MatteBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createMatteBorder(0, 0, 0, 0, Color.black);
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

* @version 1.0.0, 2008-7-3
* @author William Chen
*/
public class BevelBorderSwitchAction extends BorderSwitchAction {
  public BevelBorderSwitchAction(JComponent w) {
    super(w, BevelBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createBevelBorder(BevelBorder.LOWERED);
      }});
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.IFactory

* @version 1.0.0, 2008-7-3
* @author William Chen
*/
public class EmptyBorderSwitchAction extends BorderSwitchAction {
  public EmptyBorderSwitchAction(JComponent w) {
    super(w, EmptyBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createEmptyBorder();
      }});
  }
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.