jfxswt

16:37:51.364 INFO  jd.cli.Main - Decompiling jfxswt.jar
package javafx.embed.swt;

import java.nio.ByteBuffer;
import javafx.beans.NamedArg;
import org.eclipse.swt.dnd.ByteArrayTransfer;
import org.eclipse.swt.dnd.DND;
import org.eclipse.swt.dnd.TransferData;

@Deprecated
public class CustomTransfer
  extends ByteArrayTransfer
{
  private String name;
  private String mime;
  
  public CustomTransfer(@NamedArg("name") String paramString1, @NamedArg("mime") String paramString2)
  {
    name = paramString1;
    mime = paramString2;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String getMime()
  {
    return mime;
  }
  
  public void javaToNative(Object paramObject, TransferData paramTransferData)
  {
    if ((!checkCustom(paramObject)) || (!isSupportedType(paramTransferData))) {
      DND.error(2003);
    }
    byte[] arrayOfByte = null;
    if ((paramObject instanceof ByteBuffer)) {
      arrayOfByte = ((ByteBuffer)paramObject).array();
    } else if ((paramObject instanceof byte[])) {
      arrayOfByte = (byte[])paramObject;
    }
    if (arrayOfByte == null) {
      DND.error(2003);
    }
    super.javaToNative(arrayOfByte, paramTransferData);
  }
  
  public Object nativeToJava(TransferData paramTransferData)
  {
    if (isSupportedType(paramTransferData)) {
      return super.nativeToJava(paramTransferData);
    }
    return null;
  }
  
  protected String[] getTypeNames()
  {
    return new String[] { name };
  }
  
  protected int[] getTypeIds()
  {
    return new int[] { registerType(name) };
  }
  
  boolean checkByteArray(Object paramObject)
  {
    return (paramObject != null) && ((paramObject instanceof byte[])) && (((byte[])paramObject).length > 0);
  }
  
  boolean checkByteBuffer(Object paramObject)
  {
    return (paramObject != null) && ((paramObject instanceof ByteBuffer)) && (((ByteBuffer)paramObject).limit() > 0);
  }
  
  boolean checkCustom(Object paramObject)
  {
    return (checkByteArray(paramObject)) || (checkByteBuffer(paramObject));
  }
  
  protected boolean validate(Object paramObject)
  {
    return checkCustom(paramObject);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.CustomTransfer
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import javafx.util.Builder;

@Deprecated
public class CustomTransferBuilder<B extends CustomTransferBuilder<B>>
  implements Builder<CustomTransfer>
{
  private String mime;
  private String name;
  
  public static CustomTransferBuilder<?> create()
  {
    return new CustomTransferBuilder();
  }
  
  public B mime(String paramString)
  {
    mime = paramString;
    return this;
  }
  
  public B name(String paramString)
  {
    name = paramString;
    return this;
  }
  
  public CustomTransfer build()
  {
    CustomTransfer localCustomTransfer = new CustomTransfer(name, mime);
    return localCustomTransfer;
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.CustomTransferBuilder
 * Java Class Version: 7 (51.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.widgets.Display;

class FXCanvas$1
  implements DisposeListener
{
  FXCanvas$1(FXCanvas paramFXCanvas) {}
  
  public void widgetDisposed(DisposeEvent paramDisposeEvent)
  {
    Display localDisplay = this$0.getDisplay();
    localDisplay.removeFilter(10, this$0.moveFilter);
    FXCanvas.access$100(this$0, paramDisposeEvent);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.1
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;

class FXCanvas$2
  implements MouseListener
{
  FXCanvas$2(FXCanvas paramFXCanvas) {}
  
  public void mouseDoubleClick(MouseEvent paramMouseEvent) {}
  
  public void mouseDown(MouseEvent paramMouseEvent)
  {
    if (button > 3) {
      return;
    }
    FXCanvas.access$200(this$0, paramMouseEvent, 0);
  }
  
  public void mouseUp(MouseEvent paramMouseEvent)
  {
    if (button > 3) {
      return;
    }
    FXCanvas.access$200(this$0, paramMouseEvent, 1);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.2
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseTrackListener;

class FXCanvas$3
  implements MouseTrackListener
{
  FXCanvas$3(FXCanvas paramFXCanvas) {}
  
  public void mouseEnter(MouseEvent paramMouseEvent)
  {
    FXCanvas.access$200(this$0, paramMouseEvent, 3);
  }
  
  public void mouseExit(MouseEvent paramMouseEvent)
  {
    FXCanvas.access$200(this$0, paramMouseEvent, 4);
  }
  
  public void mouseHover(MouseEvent paramMouseEvent) {}
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.3
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.ControlListener;

class FXCanvas$4
  implements ControlListener
{
  FXCanvas$4(FXCanvas paramFXCanvas) {}
  
  public void controlMoved(ControlEvent paramControlEvent)
  {
    FXCanvas.access$300(this$0);
  }
  
  public void controlResized(ControlEvent paramControlEvent)
  {
    FXCanvas.access$400(this$0);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.4
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;

class FXCanvas$5
  implements FocusListener
{
  FXCanvas$5(FXCanvas paramFXCanvas) {}
  
  public void focusGained(FocusEvent paramFocusEvent)
  {
    FXCanvas.access$500(this$0, paramFocusEvent, true);
  }
  
  public void focusLost(FocusEvent paramFocusEvent)
  {
    FXCanvas.access$500(this$0, paramFocusEvent, false);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.5
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;

class FXCanvas$6
  implements KeyListener
{
  FXCanvas$6(FXCanvas paramFXCanvas) {}
  
  public void keyPressed(KeyEvent paramKeyEvent)
  {
    FXCanvas.access$600(this$0, paramKeyEvent, 1);
  }
  
  public void keyReleased(KeyEvent paramKeyEvent)
  {
    FXCanvas.access$600(this$0, paramKeyEvent, 2);
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.6
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

class FXCanvas$7 {}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.7
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import com.sun.glass.ui.Pixels;
import com.sun.javafx.embed.EmbeddedSceneDSInterface;
import org.eclipse.swt.dnd.DragSource;
import org.eclipse.swt.dnd.DragSourceEvent;
import org.eclipse.swt.dnd.DragSourceListener;
import org.eclipse.swt.dnd.Transfer;

class FXCanvas$HostContainer$1
  implements DragSourceListener
{
  FXCanvas$HostContainer$1(FXCanvas.HostContainer paramHostContainer, DragSource paramDragSource, EmbeddedSceneDSInterface paramEmbeddedSceneDSInterface) {}
  
  public void dragFinished(DragSourceEvent paramDragSourceEvent)
  {
    val$dragSource.dispose();
    val$fxDragSource.dragDropEnd(this$1.getTransferMode(detail));
  }
  
  public void dragSetData(DragSourceEvent paramDragSourceEvent)
  {
    Transfer[] arrayOfTransfer = val$dragSource.getTransfer();
    for (int i = 0; i < arrayOfTransfer.length; i++)
    {
      if (arrayOfTransfer[i].isSupportedType(dataType))
      {
        String str = this$1.getMime(arrayOfTransfer[i]);
        if (str != null)
        {
          doit = true;
          data = val$fxDragSource.getData(str);
          if ((data instanceof Pixels)) {
            data = this$1.createImageData((Pixels)data);
          }
          return;
        }
      }
      doit = false;
    }
  }
  
  public void dragStart(DragSourceEvent paramDragSourceEvent) {}
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.HostContainer.1
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import com.sun.javafx.embed.EmbeddedSceneDSInterface;
import java.util.Set;
import javafx.scene.input.TransferMode;

class FXCanvas$HostContainer$2$1
  implements EmbeddedSceneDSInterface
{
  FXCanvas$HostContainer$2$1(FXCanvas.HostContainer.2 param2) {}
  
  public Set<TransferMode> getSupportedActions()
  {
    return this$2.this$1.getTransferModes(this$2.operations);
  }
  
  public Object getData(String paramString)
  {
    return this$2.data;
  }
  
  public String[] getMimeTypes()
  {
    if (this$2.currentTransferData == null) {
      return new String[0];
    }
    return this$2.this$1.getMimes(FXCanvas.getAllTransfers(), this$2.currentTransferData);
  }
  
  public boolean isMimeTypeAvailable(String paramString)
  {
    String[] arrayOfString = getMimeTypes();
    for (int i = 0; i < arrayOfString.length; i++) {
      if (arrayOfString[i].equals(paramString)) {
        return true;
      }
    }
    return false;
  }
  
  public void dragDropEnd(TransferMode paramTransferMode)
  {
    this$2.data = null;
    
    this$2.currentTransferData = null;
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.FXCanvas.HostContainer.2.1
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
null
null
null
package javafx.embed.swt;

class SWTCursors$1 {}

/* Location:
 * Qualified Name:     javafx.embed.swt.SWTCursors.1
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import com.sun.javafx.cursor.CursorFrame;
import com.sun.javafx.cursor.ImageCursorFrame;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.widgets.Display;

class SWTCursors
{
  private static Cursor createCustomCursor(ImageCursorFrame paramImageCursorFrame)
  {
    return null;
  }
  
  static Cursor embedCursorToCursor(CursorFrame paramCursorFrame)
  {
    int i = 0;
    switch (paramCursorFrame.getCursorType())
    {
    case DEFAULT: 
      i = 0; break;
    case CROSSHAIR: 
      i = 2; break;
    case TEXT: 
      i = 19; break;
    case WAIT: 
      i = 1; break;
    case SW_RESIZE: 
      i = 16; break;
    case SE_RESIZE: 
      i = 15; break;
    case NW_RESIZE: 
      i = 17; break;
    case NE_RESIZE: 
      i = 14; break;
    case N_RESIZE: 
      i = 10; break;
    case S_RESIZE: 
      i = 11; break;
    case W_RESIZE: 
      i = 13; break;
    case E_RESIZE: 
      i = 12; break;
    case OPEN_HAND: 
    case CLOSED_HAND: 
    case HAND: 
      i = 21; break;
    case MOVE: 
      i = 5; break;
    case DISAPPEAR: 
      break;
    case H_RESIZE: 
      i = 9; break;
    case V_RESIZE: 
      i = 7; break;
    case NONE: 
      return null;
    }
    Display localDisplay = Display.getCurrent();
    return localDisplay != null ? localDisplay.getSystemCursor(i) : null;
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.SWTCursors
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
package javafx.embed.swt;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseEvent;

class SWTEvents
{
  static int mouseButtonToEmbedMouseButton(int paramInt1, int paramInt2)
  {
    switch (paramInt1)
    {
    case 1: 
      return 1;
    case 2: 
      return 4;
    case 3: 
      return 2;
    }
    return 0;
  }
  
  static int getWheelRotation(MouseEvent paramMouseEvent, int paramInt)
  {
    int i = 1;
    if (paramInt == 7)
    {
      if ("win32".equals(SWT.getPlatform()))
      {
        int[] arrayOfInt = new int[1];
        try
        {
          Class localClass = Class.forName("org.eclipse.swt.internal.win32.OS");
          Method localMethod = localClass.getDeclaredMethod("SystemParametersInfo", new Class[] { Integer.TYPE, Integer.TYPE, int[].class, Integer.TYPE });
          localMethod.invoke(localClass, new Object[] { Integer.valueOf(104), Integer.valueOf(0), arrayOfInt, Integer.valueOf(0) });
        }
        catch (IllegalAccessException localIllegalAccessException) {}catch (InvocationTargetException localInvocationTargetException) {}catch (NoSuchMethodException localNoSuchMethodException) {}catch (ClassNotFoundException localClassNotFoundException) {}
        if (arrayOfInt[0] != -1) {
          i = arrayOfInt[0];
        }
      }
      else if ("gtk".equals(SWT.getPlatform()))
      {
        i = 3;
      }
      return -count / Math.max(1, i);
    }
    return 0;
  }
  
  static int keyIDToEmbedKeyType(int paramInt)
  {
    switch (paramInt)
    {
    case 1: 
      return 0;
    case 2: 
      return 1;
    }
    return 0;
  }
  
  static final int[][] KeyTable = { { 0, 0 }, { 10, 13 }, { 10, 10 }, { 8, 8 }, { 9, 9 }, { 27, 27 }, { 32, 32 }, { 127, 127 }, { 155, 16777225 }, { 156, 16777297 }, { 16, 131072 }, { 17, 262144 }, { 18, 65536 }, { 524, 4194304 }, { 20, 16777298 }, { 144, 16777299 }, { 145, 16777300 }, { 33, 16777221 }, { 34, 16777222 }, { 35, 16777224 }, { 36, 16777223 }, { 37, 16777219 }, { 38, 16777217 }, { 39, 16777220 }, { 40, 16777218 }, { 44, 44 }, { 45, 45 }, { 46, 46 }, { 47, 47 }, { 59, 59 }, { 61, 61 }, { 91, 91 }, { 92, 92 }, { 93, 93 }, { 106, 16777258 }, { 107, 16777259 }, { 109, 16777261 }, { 110, 16777262 }, { 111, 16777263 }, { 150, 64 }, { 151, 42 }, { 152, 34 }, { 153, 60 }, { 160, 62 }, { 161, 123 }, { 162, 125 }, { 192, 96 }, { 222, 39 }, { 512, 64 }, { 513, 58 }, { 514, 94 }, { 515, 36 }, { 517, 33 }, { 519, 40 }, { 520, 35 }, { 521, 43 }, { 522, 41 }, { 523, 95 }, { 48, 48 }, { 49, 49 }, { 50, 50 }, { 51, 51 }, { 52, 52 }, { 53, 53 }, { 54, 54 }, { 55, 55 }, { 56, 56 }, { 57, 57 }, { 65, 97 }, { 66, 98 }, { 67, 99 }, { 68, 100 }, { 69, 101 }, { 70, 102 }, { 71, 103 }, { 72, 104 }, { 73, 105 }, { 74, 106 }, { 75, 107 }, { 76, 108 }, { 77, 109 }, { 78, 110 }, { 79, 111 }, { 80, 112 }, { 81, 113 }, { 82, 114 }, { 83, 115 }, { 84, 116 }, { 85, 117 }, { 86, 118 }, { 87, 119 }, { 88, 120 }, { 89, 121 }, { 90, 122 }, { 96, 16777264 }, { 97, 16777265 }, { 98, 16777266 }, { 99, 16777267 }, { 100, 16777268 }, { 101, 16777269 }, { 102, 16777270 }, { 103, 16777271 }, { 104, 16777272 }, { 105, 16777273 }, { 112, 16777226 }, { 113, 16777227 }, { 114, 16777228 }, { 115, 16777229 }, { 116, 16777230 }, { 117, 16777231 }, { 118, 16777232 }, { 119, 16777233 }, { 120, 16777234 }, { 121, 16777235 }, { 122, 16777236 }, { 123, 16777237 } };
  
  static int keyCodeToEmbedKeyCode(int paramInt)
  {
    for (int i = 0; i < KeyTable.length; i++) {
      if (KeyTable[i][1] == paramInt) {
        return KeyTable[i][0];
      }
    }
    return 0;
  }
  
  static int keyModifiersToEmbedKeyModifiers(int paramInt)
  {
    int i = 0;
    if ((paramInt & 0x20000) != 0) {
      i |= 0x1;
    }
    if ((paramInt & 0x40000) != 0) {
      i |= 0x2;
    }
    if ((paramInt & 0x10000) != 0) {
      i |= 0x4;
    }
    if ((paramInt & 0x400000) != 0) {
      i |= 0x8;
    }
    return i;
  }
}

/* Location:
 * Qualified Name:     javafx.embed.swt.SWTEvents
 * Java Class Version: 8 (52.0)
 * JD-Core Version:    0.7.1
 */
null
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd