Package org.nuclos.api.ui.layout
Interface LayoutComponent<PK>
public interface LayoutComponent<PK>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumlayout component type -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponentListener(LayoutComponentListener<PK> listener) add newLayoutComponentListenerto componentProperty[]String[]get the listeners for layout componentsgetName()get set of supportedLayoutComponent.LayoutComponentTypevoidremoveLayoutComponentListenerfrom componentvoidvoidvoidsetPreferences(Preferences prefs) voidsetPreferredSize(Dimension preferredSize) voidsetProperty(String name, Object value) voidsetTabController(TabController tabController) Give the layout component a handle for controlling some aspects of the tab it is displayed on.
-
Method Details
-
getComponent
- Parameters:
type- the typeLayoutComponent.LayoutComponentTypeof the requested component- Returns:
- component
-
getSupportedTypes
EnumSet<LayoutComponent.LayoutComponentType> getSupportedTypes()get set of supportedLayoutComponent.LayoutComponentType- Returns:
-
setPreferences
- Parameters:
prefs- also for restoring state from preferences
-
setName
- Parameters:
name-
-
getName
String getName()- Returns:
- name for component
-
setBorder
- Parameters:
border-
-
setPreferredSize
- Parameters:
preferredSize-
-
setProperty
- Parameters:
name-value-
-
setTabController
Give the layout component a handle for controlling some aspects of the tab it is displayed on.- Parameters:
tabController- control handle- Since:
- Nuclos 4.3.2
- See Also:
-
getComponentProperties
Property[] getComponentProperties()- Returns:
nullif no additional properties are required. Otherwise return array ofProperty. supported types are:java.lang.Booleanjava.lang.Stringjava.lang.Integerjava.awt.Dimensionjava.awt.Colorjava.awt.Fontorg.nuclos.common.NuclosScriptorg.nuclos.common.NuclosTranslationMaporg.nuclos.common.NuclosValuelistProvider
-
getComponentPropertyLabels
String[] getComponentPropertyLabels()- Returns:
nullif no additional properties are required. Otherwise returnString[]
-
getContext
LayoutComponentContext getContext()- Returns:
- context
LayoutComponentContextfor layout component
-
getLayoutComponentListeners
Collection<LayoutComponentListener<PK>> getLayoutComponentListeners()get the listeners for layout components- Returns:
-
addLayoutComponentListener
add newLayoutComponentListenerto component- Parameters:
listener- theLayoutComponentListener
-
removeLayoutComponentListener
removeLayoutComponentListenerfrom component- Parameters:
listener- theLayoutComponentListener
-