public interface LayoutComponent<PK>
Modifier and Type | Interface and Description |
---|---|
static class |
LayoutComponent.LayoutComponentType
layout component type
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponentListener(LayoutComponentListener<PK> listener)
add new
LayoutComponentListener to component |
javax.swing.JComponent |
getComponent(LayoutComponent.LayoutComponentType type) |
Property[] |
getComponentProperties() |
java.lang.String[] |
getComponentPropertyLabels() |
LayoutComponentContext |
getContext() |
java.util.Collection<LayoutComponentListener<PK>> |
getLayoutComponentListeners()
get the listeners for layout components
|
java.lang.String |
getName() |
java.util.EnumSet<LayoutComponent.LayoutComponentType> |
getSupportedTypes()
get set of supported
LayoutComponent.LayoutComponentType |
void |
removeLayoutComponentListener(LayoutComponentListener<PK> listener)
remove
LayoutComponentListener from component |
void |
setBorder(javax.swing.border.Border border) |
void |
setName(java.lang.String name) |
void |
setPreferences(Preferences prefs) |
void |
setPreferredSize(java.awt.Dimension preferredSize) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setTabController(TabController tabController)
Give the layout component a handle for controlling some aspects of
the tab it is displayed on.
|
javax.swing.JComponent getComponent(LayoutComponent.LayoutComponentType type)
type
- the type LayoutComponent.LayoutComponentType
of the requested componentjava.util.EnumSet<LayoutComponent.LayoutComponentType> getSupportedTypes()
LayoutComponent.LayoutComponentType
void setPreferences(Preferences prefs)
prefs
- also for restoring state from preferencesvoid setName(java.lang.String name)
name
- java.lang.String getName()
void setBorder(javax.swing.border.Border border)
border
- void setPreferredSize(java.awt.Dimension preferredSize)
preferredSize
- void setProperty(java.lang.String name, java.lang.Object value)
name
- value
- void setTabController(TabController tabController)
tabController
- control handleTabController
Property[] getComponentProperties()
null
if no additional properties are required.
Otherwise return array of Property
.
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
java.lang.String[] getComponentPropertyLabels()
null
if no additional properties are required.
Otherwise return String[]
LayoutComponentContext getContext()
LayoutComponentContext
for layout componentjava.util.Collection<LayoutComponentListener<PK>> getLayoutComponentListeners()
void addLayoutComponentListener(LayoutComponentListener<PK> listener)
LayoutComponentListener
to componentlistener
- the LayoutComponentListener
void removeLayoutComponentListener(LayoutComponentListener<PK> listener)
LayoutComponentListener
from componentlistener
- the LayoutComponentListener
Copyright © 2024. All rights reserved.