L
- public class BeanEditor<L> extends Object implements IAmbitEditor<L>
Modifier and Type | Field and Description |
---|---|
protected String[] |
captions |
protected String[] |
columns |
protected JComponent |
component |
protected String |
detailsCaption |
protected com.jgoodies.binding.PresentationModel<L> |
detailsModel |
protected boolean |
editable |
protected JComponent[] |
fields |
protected L |
object |
Constructor and Description |
---|
BeanEditor(L object,
String[] columns,
String detailsCaption) |
BeanEditor(L object,
String[] columns,
String[] captions,
String detailsCaption) |
Modifier and Type | Method and Description |
---|---|
void |
buildFields(com.jgoodies.forms.builder.PanelBuilder builder,
com.jgoodies.forms.layout.CellConstraints cc) |
JComponent |
buildPanel(L object,
String[] columns,
String[] captions) |
static String |
capitalizeFirstLetter(String column) |
boolean |
confirm() |
protected com.jgoodies.binding.PresentationModel |
createPresentationModel() |
String[] |
getColumns() |
String |
getDetailsCaption() |
JComponent |
getJComponent() |
L |
getObject() |
protected void |
initComponents(L object,
String[] columns,
String[] captions) |
boolean |
isEditable() |
void |
setColumns(String[] columns) |
void |
setDetailsCaption(String detailsCaption) |
void |
setEditable(boolean editable) |
void |
setObject(L object) |
protected JComponent component
protected JComponent[] fields
protected String[] columns
protected String[] captions
protected String detailsCaption
protected com.jgoodies.binding.PresentationModel<L> detailsModel
protected L object
protected boolean editable
public void setObject(L object)
setObject
in interface IAmbitEditor<L>
public L getObject()
getObject
in interface IAmbitEditor<L>
public JComponent getJComponent()
getJComponent
in interface IAmbitEditor<L>
protected com.jgoodies.binding.PresentationModel createPresentationModel()
public void buildFields(com.jgoodies.forms.builder.PanelBuilder builder, com.jgoodies.forms.layout.CellConstraints cc)
public JComponent buildPanel(L object, String[] columns, String[] captions)
public String getDetailsCaption()
public void setDetailsCaption(String detailsCaption)
public String[] getColumns()
public void setColumns(String[] columns)
public void setEditable(boolean editable)
setEditable
in interface IAmbitEditor<L>
public boolean isEditable()
isEditable
in interface IAmbitEditor<L>
public boolean confirm()
confirm
in interface IAmbitEditor<L>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.