Class PropertyPanelFactory


  • public class PropertyPanelFactory
    extends java.lang.Object
    Factory for generating appropriate property panels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATA_EDGE
      Filter keyword for data edges.
      static java.lang.String DEFAULT
      Filter keyword for default panels (no selection).
      BasePropertyPanel emptypanel
      An empty panel.
      static java.lang.String ERROR_EVENT
      Filter keyword for error events.
      static java.lang.String EVENT_SUBPROCESS
      Filter keyword for event subprocesses
      static java.lang.String EXTERNAL_SUBPROCESS
      Filter keyword for external subprocesses.
      protected static java.util.Map<java.lang.String,​IFilter<java.lang.Object>> FILTERS  
      static java.lang.String INTERNAL_SUBPROCESS
      Filter keyword for internal subprocesses
      static java.lang.String LANE
      Filter keyword for lanes.
      static java.lang.String MESSAGE_EVENT
      Filter keyword for message events.
      protected java.util.List<Tuple2<IFilter<java.lang.Object>,​java.lang.reflect.Constructor<?>>> panelconstructors
      List of panel constructors.
      static java.lang.String POOL
      Filter keyword for pools.
      static java.lang.String RULE_EVENT
      Filter keyword for rule events.
      static java.lang.String SEQUENCE_EDGE
      Filter keyword for sequence edges.
      static java.lang.String SIGNAL_EVENT
      Filter keyword for signal events.
      static java.lang.String TASK
      Filter keyword for tasks.
      static java.lang.String TIMER_EVENT
      Filter keyword for timer events.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyPanelFactory​(java.util.Map<java.lang.Object,​java.lang.Object> config)
      Creates the factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JComponent createPanel​(ModelContainer container, java.lang.Object selection)
      Creates a new property panel for the selected item.
      void setConfiguration​(java.util.Map<java.lang.Object,​java.lang.Object> config)
      Sets the factory configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final java.lang.String DEFAULT
        Filter keyword for default panels (no selection).
        See Also:
        Constant Field Values
      • POOL

        public static final java.lang.String POOL
        Filter keyword for pools.
        See Also:
        Constant Field Values
      • LANE

        public static final java.lang.String LANE
        Filter keyword for lanes.
        See Also:
        Constant Field Values
      • TASK

        public static final java.lang.String TASK
        Filter keyword for tasks.
        See Also:
        Constant Field Values
      • INTERNAL_SUBPROCESS

        public static final java.lang.String INTERNAL_SUBPROCESS
        Filter keyword for internal subprocesses
        See Also:
        Constant Field Values
      • EXTERNAL_SUBPROCESS

        public static final java.lang.String EXTERNAL_SUBPROCESS
        Filter keyword for external subprocesses.
        See Also:
        Constant Field Values
      • EVENT_SUBPROCESS

        public static final java.lang.String EVENT_SUBPROCESS
        Filter keyword for event subprocesses
        See Also:
        Constant Field Values
      • ERROR_EVENT

        public static final java.lang.String ERROR_EVENT
        Filter keyword for error events.
        See Also:
        Constant Field Values
      • TIMER_EVENT

        public static final java.lang.String TIMER_EVENT
        Filter keyword for timer events.
        See Also:
        Constant Field Values
      • MESSAGE_EVENT

        public static final java.lang.String MESSAGE_EVENT
        Filter keyword for message events.
        See Also:
        Constant Field Values
      • RULE_EVENT

        public static final java.lang.String RULE_EVENT
        Filter keyword for rule events.
        See Also:
        Constant Field Values
      • SIGNAL_EVENT

        public static final java.lang.String SIGNAL_EVENT
        Filter keyword for signal events.
        See Also:
        Constant Field Values
      • SEQUENCE_EDGE

        public static final java.lang.String SEQUENCE_EDGE
        Filter keyword for sequence edges.
        See Also:
        Constant Field Values
      • DATA_EDGE

        public static final java.lang.String DATA_EDGE
        Filter keyword for data edges.
        See Also:
        Constant Field Values
      • FILTERS

        protected static final java.util.Map<java.lang.String,​IFilter<java.lang.Object>> FILTERS
      • panelconstructors

        protected java.util.List<Tuple2<IFilter<java.lang.Object>,​java.lang.reflect.Constructor<?>>> panelconstructors
        List of panel constructors.
    • Constructor Detail

      • PropertyPanelFactory

        public PropertyPanelFactory​(java.util.Map<java.lang.Object,​java.lang.Object> config)
        Creates the factory.
        Parameters:
        config - Panel configuration.
    • Method Detail

      • setConfiguration

        public void setConfiguration​(java.util.Map<java.lang.Object,​java.lang.Object> config)
        Sets the factory configuration.
        Parameters:
        config - Panel configuration.
      • createPanel

        public javax.swing.JComponent createPanel​(ModelContainer container,
                                                  java.lang.Object selection)
        Creates a new property panel for the selected item.
        Parameters:
        container - The model container.
        Returns:
        Property panel.