Package com.bc.ceres.swing.binding
Class PropertyPane
- java.lang.Object
-
- com.bc.ceres.swing.binding.PropertyPane
-
public class PropertyPane extends Object
A utility class used to create aJPanel
containing default Swing components and their corresponding bindings for thePropertyContainer
given by theBindingContext
.If the
displayName
property of the binding'sPropertySet
is set, it will be used as label, otherwise a label is derived from thename
property.Properties, whose attribute "enabled" is set to
false
, will be shown in disabled state. Properties, whose attribute "visible" is set tofalse
, will not be shown at all.- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_SECTIONBREAK_NAME_SUFFIX
-
Constructor Summary
Constructors Constructor Description PropertyPane(PropertySet propertySet)
PropertyPane(BindingContext bindingContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JComponent[]
addComponent(int rowIndex, TableLayout layout, JPanel panel, BindingContext bindingContext, PropertyEditorRegistry registry, PropertyDescriptor descriptor)
JScrollPane
createJScrollPanel()
JPanel
createPanel()
BindingContext
getBindingContext()
-
-
-
Field Detail
-
PROPERTY_SECTIONBREAK_NAME_SUFFIX
public static final String PROPERTY_SECTIONBREAK_NAME_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyPane
public PropertyPane(PropertySet propertySet)
-
PropertyPane
public PropertyPane(BindingContext bindingContext)
-
-
Method Detail
-
getBindingContext
public BindingContext getBindingContext()
-
createPanel
public JPanel createPanel()
-
createJScrollPanel
public JScrollPane createJScrollPanel()
-
addComponent
public static JComponent[] addComponent(int rowIndex, TableLayout layout, JPanel panel, BindingContext bindingContext, PropertyEditorRegistry registry, PropertyDescriptor descriptor)
-
-