Class SVDecoratorFactory

java.lang.Object
dev.visdb.seesaw.decorators.DecoratorFactoryBase
dev.visdb.seesaw.contrib.simplevalidation.SVDecoratorFactory
All Implemented Interfaces:
DecoratorFactory

Handles SimpleValidation.
  • Constructor Details

  • Method Details

    • createDecoratorPanel

      Register the given panel for use with SeeSaw decorators. The uiPanel is used to create the gui. The returned parentPanel wraps the uiPanel and is typically added to a frame. For example
      JPanel uiPanel = new JPanel();
      uiPanel.add(textComponent);
      // ... create UI in uiPanel as usual
      frame.setContentPane(SsUtils.createDecoratorPanel(uiPanel));
      assert uiPanel == SsUtils.getInnerComponent(frame.getContentPane());
      

      This implementation is used when a specialized decorator panel is not required.

      Wrap the uiPanel in a ValidationPanel.

      Specified by:
      createDecoratorPanel in interface DecoratorFactory
      Overrides:
      createDecoratorPanel in class DecoratorFactoryBase
      Parameters:
      uiPanel -
      Returns: