Class BeanProxy<T>

java.lang.Object
xal.extension.bricks.BeanProxy<T>
All Implemented Interfaces:
DataListener
Direct Known Subclasses:
BorderProxy, ViewProxy

public abstract class BeanProxy<T> extends Object implements DataListener
proxy for generating a Java Bean object
  • Field Details

    • prototypeClass

      protected final Class<T> prototypeClass
      prototype class
  • Constructor Details

    • BeanProxy

      protected BeanProxy(Class<T> prototypeClass)
      Constructor
  • Method Details

    • getBeanInstance

      public T getBeanInstance(Class<T> theClass)
      Create an instance of the specified view
    • getBeanInstance

      public T getBeanInstance(Class<T> theClass, Constructor<T> constructor, Object... parameters)
      Create an instance of the specified view
    • setup

      public void setup(T object)
      setup the instance after construction
    • setupPrototype

      public void setupPrototype(T object)
      setup the instance after construction with prototype data
    • getPrototypeClass

      public final Class<T> getPrototypeClass()
      Get the class of the view
    • getPrototype

      public final T getPrototype()
      Get the prototype view
      Returns:
      the prototype view
    • getConstructorParameterTypes

      public Class[] getConstructorParameterTypes()
      Get the array of constructor arguments
      Returns:
      the constructor arguments
    • getConstructorParameters

      public Object[] getConstructorParameters()
      Get the array of constructor arguments
      Returns:
      the constructor arguments
    • getIcon

      public Icon getIcon()
      Get an icon representation for the view
    • getType

      public String getType()
      get the name of the prototype
    • getName

      public String getName()
      get the name of the prototype
    • getShortName

      public String getShortName()
      get the short name of the prototype
    • getText

      public String getText()
      Get a textual representation of the view
    • getJythonReferenceSnippet

      public String getJythonReferenceSnippet(BeanNode<?> node)
      get the Jython reference snippet
    • getJavaReferenceSnippet

      public String getJavaReferenceSnippet(BeanNode<?> node)
      get the java reference snippet
    • getXALReferenceSnippet

      public String getXALReferenceSnippet(BeanNode<T> node)
      get the java reference snippet
    • getJavaDeclarationSnippet

      public String getJavaDeclarationSnippet(BeanNode<T> node)
      Get the java declaration snippet
      Returns:
      the java declaration snippet
    • getReferenceSnippetFetchMethodName

      protected String getReferenceSnippetFetchMethodName()
      Get the reference snippet method name
      Returns:
      the method name
    • getReferenceSnippetFetchMethodArgumentsString

      protected String getReferenceSnippetFetchMethodArgumentsString(BeanNode<?> node)
      Get the reference snippet method arguments
      Returns:
      the method arguments
    • dataLabel

      public abstract String dataLabel()
      Provides the name used to identify the class in an external data source.
      Specified by:
      dataLabel in interface DataListener
      Returns:
      a tag that identifies the receiver's type
    • update

      public void update(DataAdaptor adaptor)
      Update the data based on the information provided by the data provider.
      Specified by:
      update in interface DataListener
      Parameters:
      adaptor - The adaptor from which to update the data
    • write

      public void write(DataAdaptor adaptor)
      Write data to the data adaptor for storage.
      Specified by:
      write in interface DataListener
      Parameters:
      adaptor - The adaptor to which the receiver's data is written
    • toString

      public String toString()
      get string representation
      Overrides:
      toString in class Object