public abstract class ListEditor extends Object implements IAmbitEditor<ListModel>
Modifier and Type | Field and Description |
---|---|
protected JToolBar |
bar |
protected JComponent |
component |
protected boolean |
editable |
protected EditorPanel |
editor |
protected JList |
list |
protected com.jgoodies.binding.list.SelectionInList |
selectionInList |
Constructor and Description |
---|
ListEditor() |
ListEditor(ListModel listModel) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(MouseListener listener) |
JComponent |
buildPanel() |
protected void |
configureToolBar(JToolBar bar) |
boolean |
confirm() |
protected void |
createComponents() |
EditorPanel |
getEditor() |
protected abstract IAmbitEditor |
getEditor(Object object) |
JComponent |
getJComponent() |
JList |
getList() |
ListModel |
getObject() |
Object |
getSelected() |
protected void |
handleDoubleClick(Object selection) |
boolean |
isEditable() |
void |
setEditable(boolean editable) |
void |
setObject(ListModel object) |
protected EditorPanel editor
protected JList list
protected JToolBar bar
protected com.jgoodies.binding.list.SelectionInList selectionInList
protected JComponent component
protected boolean editable
public ListEditor()
public ListEditor(ListModel listModel)
public EditorPanel getEditor()
public JList getList()
public boolean isEditable()
isEditable
in interface IAmbitEditor<ListModel>
public JComponent getJComponent()
getJComponent
in interface IAmbitEditor<ListModel>
public void setObject(ListModel object)
setObject
in interface IAmbitEditor<ListModel>
public void addMouseListener(MouseListener listener)
protected void handleDoubleClick(Object selection)
protected void createComponents()
public JComponent buildPanel()
public Object getSelected()
protected void configureToolBar(JToolBar bar)
protected abstract IAmbitEditor getEditor(Object object)
public boolean confirm()
confirm
in interface IAmbitEditor<ListModel>
public ListModel getObject()
getObject
in interface IAmbitEditor<ListModel>
public void setEditable(boolean editable)
setEditable
in interface IAmbitEditor<ListModel>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.