Package org.nuclos.api.ui.layout
Interface LayoutComponent<PK>
public interface LayoutComponent<PK>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
layout component type -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponentListener
(LayoutComponentListener<PK> listener) add newLayoutComponentListener
to componentProperty[]
String[]
get the listeners for layout componentsgetName()
get set of supportedLayoutComponent.LayoutComponentType
void
removeLayoutComponentListener
from componentvoid
void
void
setPreferences
(Preferences prefs) void
setPreferredSize
(Dimension preferredSize) void
setProperty
(String name, Object value) void
setTabController
(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.LayoutComponentType
of 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:
null
if no additional properties are required. Otherwise return array ofProperty
. supported types are:java.lang.Boolean
java.lang.String
java.lang.Integer
java.awt.Dimension
java.awt.Color
java.awt.Font
org.nuclos.common.NuclosScript
org.nuclos.common.NuclosTranslationMap
org.nuclos.common.NuclosValuelistProvider
-
getComponentPropertyLabels
String[] getComponentPropertyLabels()- Returns:
null
if no additional properties are required. Otherwise returnString[]
-
getContext
LayoutComponentContext getContext()- Returns:
- context
LayoutComponentContext
for layout component
-
getLayoutComponentListeners
Collection<LayoutComponentListener<PK>> getLayoutComponentListeners()get the listeners for layout components- Returns:
-
addLayoutComponentListener
add newLayoutComponentListener
to component- Parameters:
listener
- theLayoutComponentListener
-
removeLayoutComponentListener
removeLayoutComponentListener
from component- Parameters:
listener
- theLayoutComponentListener
-