Class SAPropertyPanel
java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.SAPropertyPanel
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 a
TableProperty
object.-
Constructor Summary
ConstructorsConstructorDescriptionSAPropertyPanel
(JPanel parentContainer, GridBagConstraints constr, TableProperty tableProperty, AuthorResourceBundle authorResourceBundle, PropertySelectionController controller, int firstChildTopInset, boolean firstChild) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the currently selected value;Get the new table property.
-
Constructor Details
-
SAPropertyPanel
public SAPropertyPanel(JPanel parentContainer, 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 Details
-
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
Obtain the currently selected value;- Returns:
- The currently selected value for this property.
-
getTableProperty
- Returns:
- Returns the table property.
-