Using an inner class with the CSS class property in data model

Article ID: 2317
Last updated: 29 May, 2018
Article ID: 2317
Last updated: 29 May, 2018
Revision: 3
Views: 768
Posted: 06 Nov, 2007
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

Can I use an inner class with the CSS class property in my data model?

Answer

The class property of a CSS entry defines the underlying implementation of the CSS class.

There are three supported formats for the class property.

  • An ordinary class name:

    link {

    class : ilog.views.sdm.graphic.IlvGeneralLink;

    foreground : red;

    }

  • A class that implements IlvRectangularObjectFactory:

    node {

    class : ilog.views.interactor.IlvMakeFilledRectangleInteractor;

    IlvRect : 0,0,100,200;

    }

    This is the basis of the IlvGraphicFactories class. Its inner classes can be used with this form.

  • A pathname to a file specifying a JavaBean:

    link {

    class : data.beans.gauge;

    foreground : red;

    }

Inner classes can be used if:

  1. The inner class is public and static.
  2. A '$' is used in the class name (not a '.') to separate the inner classname from the outer class name.
  3. The inner class has a constructor that matches the one used by the CSS (a no-arguments constructor when the class declaration value contains no parentheses).

For details, see "The Data Model" section of the "Using CSS Syntax in the Style Sheet"chapter of the "Developing with the JViews Diagrammer SDK" documentation in JViews Diagrammer.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2317
Last updated: 29 May, 2018
Revision: 3
Views: 768
Posted: 06 Nov, 2007 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category