Class SAPropertyPanel
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.table.properties.SAPropertyPanel
-
@API(type=NOT_EXTENDABLE, src=PRIVATE) public class SAPropertyPanel extends java.lang.Object
This class will add to the given parent container a label with the property render string and a combobox containing all the possible values for the given property. It will return the user choice as aTableProperty
object.
-
-
Constructor Summary
Constructors Constructor Description SAPropertyPanel(javax.swing.JPanel parentContainer, java.awt.GridBagConstraints constr, TableProperty tableProperty, AuthorResourceBundle authorResourceBundle, PropertySelectionController controller, int firstChildTopInset, boolean firstChild)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCurrentlySelectedValue()
Obtain the currently selected value;TableProperty
getModifiedProperty()
Get the new table property.TableProperty
getTableProperty()
-
-
-
Constructor Detail
-
SAPropertyPanel
public SAPropertyPanel(javax.swing.JPanel parentContainer, java.awt.GridBagConstraints constr, TableProperty tableProperty, AuthorResourceBundle authorResourceBundle, PropertySelectionController controller, int firstChildTopInset, boolean firstChild)
Constructor.- Parameters:
parentContainer
- The component that will contain the current property.constr
- TheGridBagConstraints
object.tableProperty
- The table property that will be shown by the current panel.authorResourceBundle
- TheAuthorResourceBundle
object, which allow to i18n the property render string.controller
- The controller used to update the dialog when a value is changed.firstChildTopInset
- The top inset for the first child in parent.firstChild
-true
if the current panel is the first child of the given parent container.
-
-
Method Detail
-
getModifiedProperty
public TableProperty getModifiedProperty()
Get the new table property. If the value of the given property is not modified, anull
object will be return.- Returns:
- The modified property or
null
if the property value was not changed.
-
getCurrentlySelectedValue
public java.lang.String getCurrentlySelectedValue()
Obtain the currently selected value;- Returns:
- The currently selected value for this property.
-
getTableProperty
public TableProperty getTableProperty()
- Returns:
- Returns the table property.
-
-