Class zUIDockable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, izSwing

public class zUIDockable extends JPanel implements izSwing
A dockable component is a generic draggable/droppable component to provide the wrapper around a supplied handler.

It provides drag+drop, sizing to make all the dockables of consistent size and appearance.

The dockable is constructed with a handler that provides a specific implementation providing data, while this class handles the UI behaviours.

Author:
Kevin Moore <dev@kevin.moore.name>
See Also:
Serialized Form
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • tile

      private static Dimension tile
      Default tile size in pixels.
    • tileDimension

      private Dimension tileDimension
      Calculated tile size in pixels based on base tile size and width, height
    • handler

      private iDockable handler
      Provide a specific implementation of a dockable.
    • mouselistener

      public MouseListener mouselistener
    • propertychangelistener

      public PropertyChangeListener propertychangelistener
      Handler informing of a change in its values - so we need to redisplay.
  • Constructor Details

    • zUIDockable

      public zUIDockable()
      Need this constructor public for XML to use the default constructor. Don't use directly, once created we add the handler.
  • Method Details