Tabnine Logo
XMLEncoder.getOwner
Code IndexAdd Tabnine to your IDE (free)

How to use
getOwner
method
in
java.beans.XMLEncoder

Best Java code snippets using java.beans.XMLEncoder.getOwner (Showing top 2 results out of 315)

origin: org.swinglabs.swingx/swingx-beaninfo

    @Override
    protected void initialize(Class type, Object oldInstance,
        Object newInstance, Encoder out) {
//            p("image painter delegate called");
      super.initialize(type, oldInstance,  newInstance, out);
      //p("old instance = " + oldInstance);
      //p("owner = " + ((XMLEncoder)out).getOwner());
      PersistenceOwner owner = (PersistenceOwner)((XMLEncoder)out).getOwner();
      ImagePainter ip = (ImagePainter)oldInstance;
//            p("need to convert string: " + ip.getImageString());
//            String s = owner.toXMLURL(ip.getImageString());
//            p("converted to: " + s);
        //out.writeExpression(new Expression(oldInstance,owner,"fromXMLURL",new Object[]{ip.getImageString()}));
        //out.writeStatement(new Statement(owner,"fromXMLURL",new Object[]{ip.getImageString()}));
        //out.writeStatement(new Statement(oldInstance,"setImageString",new Object[]{
        //new Expression(oldInstance,owner,"fromXMLURL",new Object[]{ip.getImageString()})
        //}));
        
      out.writeStatement(new Statement(oldInstance,"setResolver",new Object[]{owner}));
//            out.writeStatement(new Statement(oldInstance,"setImageString",new Object[]{s}));
    }
  }
origin: org.swinglabs/swingx-beaninfo

    @Override
    protected void initialize(Class type, Object oldInstance,
        Object newInstance, Encoder out) {
//            p("image painter delegate called");
      super.initialize(type, oldInstance,  newInstance, out);
      //p("old instance = " + oldInstance);
      //p("owner = " + ((XMLEncoder)out).getOwner());
      PersistenceOwner owner = (PersistenceOwner)((XMLEncoder)out).getOwner();
      ImagePainter ip = (ImagePainter)oldInstance;
//            p("need to convert string: " + ip.getImageString());
      String s = owner.toXMLURL(ip.getImageString());
//            p("converted to: " + s);
        //out.writeExpression(new Expression(oldInstance,owner,"fromXMLURL",new Object[]{ip.getImageString()}));
        //out.writeStatement(new Statement(owner,"fromXMLURL",new Object[]{ip.getImageString()}));
        //out.writeStatement(new Statement(oldInstance,"setImageString",new Object[]{
        //new Expression(oldInstance,owner,"fromXMLURL",new Object[]{ip.getImageString()})
        //}));
        
      out.writeStatement(new Statement(oldInstance,"setResolver",new Object[]{owner}));
      out.writeStatement(new Statement(oldInstance,"setImageString",new Object[]{s}));
    }
  }
java.beansXMLEncodergetOwner

Popular methods of XMLEncoder

  • <init>
  • writeObject
  • close
  • setExceptionListener
  • flush
  • setPersistenceDelegate
  • setOwner
  • getPersistenceDelegate

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now