Class ZoneProperty

All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable, GameComponent, MutableProperty, PropertyNameSource, PropertySource, CommandEncoder, ValidityChecker, Translatable, Auditable, ImageSearchTarget, SearchTarget, ToolBarComponent

public class ZoneProperty extends GlobalProperty
Author:
Brent Easton A class implementing a cut-down Global property at the Zone level. Zone Properties do not have Toolbar butttons, but are controlled by SetGlobalProperty traits in counters.
  • Field Details

    • parentZone

      protected Zone parentZone
  • Constructor Details

    • ZoneProperty

      public ZoneProperty()
    • ZoneProperty

      public ZoneProperty(GlobalProperty p)
  • Method Details

    • getConfigureTypeName

      public static String getConfigureTypeName()
    • getAllowableConfigureComponents

      public Class<?>[] getAllowableConfigureComponents()
      Specified by:
      getAllowableConfigureComponents in interface Configurable
      Overrides:
      getAllowableConfigureComponents in class GlobalProperty
      Returns:
      a list of valid sub-component Classes. If a Class appears in this list, then instances of that class may be added to this component from the Editor's ConfigureTree window by right-clicking on the component and selecting the appropriate "Add" option.
    • getPropertyId

      protected String getPropertyId()
      Description copied from class: GlobalProperty
      A String that identifies this property in an encoded Command
      Overrides:
      getPropertyId in class GlobalProperty
      Returns:
      propertyId
    • addTo

      public void addTo(Buildable parent)
      Description copied from interface: Buildable
      Adds this component to its parent. In order to make Buildable objects extensible, the child is responsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.
      Specified by:
      addTo in interface Buildable
      Overrides:
      addTo in class GlobalProperty
      Parameters:
      parent - parent Buildable to add this component to as a subcomponent.