Package org.nuclos.api.ui.layout
Interface LayoutComponentFactory<PK>
public interface LayoutComponentFactory<PK>
-
Method Summary
Modifier and TypeMethodDescriptionis used by layout editorgetDefaultPropertyValue
(String property) is used by layout editorgetIcon()
getName()
newInstance
(LayoutComponentContext context) creates new instances
-
Method Details
-
newInstance
creates new instances- Parameters:
context
- layout component contextLayoutComponentContext
- Returns:
-
getName
String getName()- Returns:
- name shown in layout editor palette
-
getIcon
Icon getIcon()- Returns:
- icon shown in layout editor palette
-
getDefaulAlignment
Alignment getDefaulAlignment()is used by layout editor- Returns:
- the default alignment for this component
null
uses fallbacknew Alignment(AlignmentH.FULL, AlignmentV.CENTER)
-
getDefaultPropertyValue
is used by layout editor- Returns:
- the default for a property
null
is allowed
-