uic.output.builder
Class ObjectRepresenter

java.lang.Object
  extended byuic.output.builder.Representer
      extended byuic.output.builder.Callable
          extended byuic.output.builder.ObjectRepresenter
Direct Known Subclasses:
WidgetRepresenter

public class ObjectRepresenter
extends Callable

Any class that has a constructor.


Nested Class Summary
static class ObjectRepresenter.Assignment
           
 
Nested classes inherited from class uic.output.builder.Callable
Callable.Argument
 
Field Summary
protected  boolean export
           
protected  Vector fieldAssignments
           
 
Fields inherited from class uic.output.builder.Callable
arguments
 
Fields inherited from class uic.output.builder.Representer
name, parent, staticParent
 
Constructor Summary
ObjectRepresenter(Representer parent, boolean export)
           
ObjectRepresenter(String fullClassName)
          Is created for something like: 'panel.setLayout(new GridLayout())' The new GridLayout() is the ObjectRepresenter in this case.
 
Method Summary
 boolean export()
          Returns wheather the object should become a member variable in the resulting class.
 FieldRepresenter field(String fieldName)
           
 Vector getFields()
           
 void setField(String fieldName, Representer value)
           
 String toString()
           
 
Methods inherited from class uic.output.builder.Callable
addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addNullArgument, getArguments
 
Methods inherited from class uic.output.builder.Representer
getName, getParent, getStaticParent, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

export

protected boolean export

fieldAssignments

protected Vector fieldAssignments
Constructor Detail

ObjectRepresenter

public ObjectRepresenter(Representer parent,
                         boolean export)

ObjectRepresenter

public ObjectRepresenter(String fullClassName)
Is created for something like: 'panel.setLayout(new GridLayout())' The new GridLayout() is the ObjectRepresenter in this case.

Method Detail

field

public FieldRepresenter field(String fieldName)

setField

public void setField(String fieldName,
                     Representer value)

getFields

public Vector getFields()

toString

public String toString()
Overrides:
toString in class Representer

export

public boolean export()
Returns wheather the object should become a member variable in the resulting class. Only objects that are exported will be accessable from extending classes.

Returns:
wheather the object should become a member variable in the resulting class.


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence