Class SVDecoratorFactory
java.lang.Object
dev.visdb.seesaw.decorators.DecoratorFactoryBase
dev.visdb.seesaw.contrib.simplevalidation.SVDecoratorFactory
- All Implemented Interfaces:
DecoratorFactory
Handles SimpleValidation.
-
Field Summary
Fields inherited from interface DecoratorFactory
DECORATOR_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoratorPanel(Component uiPanel) Register the given panel for use with SeeSaw decorators.Methods inherited from class DecoratorFactoryBase
get, getDecoratorStyle, toString
-
Constructor Details
-
SVDecoratorFactory
public SVDecoratorFactory()Create a DefaultSVDecorator
-
-
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 exampleJPanel 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:
createDecoratorPanelin interfaceDecoratorFactory- Overrides:
createDecoratorPanelin classDecoratorFactoryBase- Parameters:
uiPanel-- Returns:
-