|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbsys.propertyview.Editor
public class Editor
Versatile super editor
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private PropertyView.Attribute |
theAttribute
Attribute being edited |
private ColorEditor |
theColorEditor
Color editor |
private javax.swing.DefaultCellEditor |
theDefaultEditor
Default editor |
private FileEditor |
theFileEditor
File editor |
private PropertyView.Handler |
theHandler
Handler used to retrieve id map |
private ListEditor |
theListEditor
List editor |
private LongTextEditor |
theLongTextEditor
Long text editor |
private PropertyView |
thePropertyView
View |
private javax.swing.table.TableCellEditor |
theSubEditor
The delegate subeditor |
private javax.swing.table.TableCellEditor[] |
theSubEditors
The subeditors |
Constructor Summary | |
---|---|
Editor(PropertyView thisPropertyView)
Constructor |
Method Summary | |
---|---|
void |
addCellEditorListener(javax.swing.event.CellEditorListener thisListener)
|
private void |
addPopulateWithSharpIds(javax.swing.JComboBox thisCombo)
Populate combobox with ids referencing nodes |
void |
cancelCellEditing()
|
void |
editingCanceled(javax.swing.event.ChangeEvent e)
|
void |
editingStopped(javax.swing.event.ChangeEvent e)
|
java.lang.Object |
getCellEditorValue()
|
private java.io.File |
getImageRepository()
Get image repository |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object thisValue,
boolean isSelected,
int row,
int column)
|
boolean |
isCellEditable(java.util.EventObject thisAnEvent)
|
private void |
populateWithFonts(javax.swing.JComboBox thisCombo)
Populate combobox with fonts |
private void |
populateWithIds(javax.swing.JComboBox thisCombo)
Populate combobox with ids |
private void |
populateWithStrings(javax.swing.JComboBox thisCombo,
java.lang.String[] theseStrings)
Populate combobox with strings list |
private void |
populateWithStrokes(javax.swing.JComboBox thisCombo)
Populate combobox with stroke types |
private void |
populateWithTerminators(javax.swing.JComboBox thisCombo)
Populate combobox with terminators |
private void |
populateWithTrueFalse(javax.swing.JComboBox thisCombo)
Populate combobox with true/false |
private void |
populateWithUrls(javax.swing.JComboBox thisCombo)
Populate combobox with urls |
void |
removeCellEditorListener(javax.swing.event.CellEditorListener thisListener)
|
void |
setHandler(PropertyView.Handler thisHandler)
Set get/set handlers |
boolean |
shouldSelectCell(java.util.EventObject thisEvent)
|
boolean |
stopCellEditing()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final PropertyView thePropertyView
private PropertyView.Handler theHandler
private PropertyView.Attribute theAttribute
private ColorEditor theColorEditor
private FileEditor theFileEditor
private ListEditor theListEditor
private LongTextEditor theLongTextEditor
private javax.swing.DefaultCellEditor theDefaultEditor
private javax.swing.table.TableCellEditor theSubEditor
private javax.swing.table.TableCellEditor[] theSubEditors
Constructor Detail |
---|
public Editor(PropertyView thisPropertyView)
thisPropertyView
- viewMethod Detail |
---|
public void setHandler(PropertyView.Handler thisHandler)
thisHandler
- handlerpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object thisValue, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public boolean shouldSelectCell(java.util.EventObject thisEvent)
shouldSelectCell
in interface javax.swing.CellEditor
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
public void cancelCellEditing()
cancelCellEditing
in interface javax.swing.CellEditor
public boolean isCellEditable(java.util.EventObject thisAnEvent)
isCellEditable
in interface javax.swing.CellEditor
private java.io.File getImageRepository()
private void populateWithIds(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithStrokes(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithTrueFalse(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithUrls(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void addPopulateWithSharpIds(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithFonts(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithTerminators(javax.swing.JComboBox thisCombo)
thisCombo
- comboboxprivate void populateWithStrings(javax.swing.JComboBox thisCombo, java.lang.String[] theseStrings)
thisCombo
- comboboxtheseStrings
- list of stringspublic void editingCanceled(javax.swing.event.ChangeEvent e)
editingCanceled
in interface javax.swing.event.CellEditorListener
public void editingStopped(javax.swing.event.ChangeEvent e)
editingStopped
in interface javax.swing.event.CellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener thisListener)
addCellEditorListener
in interface javax.swing.CellEditor
public void removeCellEditorListener(javax.swing.event.CellEditorListener thisListener)
removeCellEditorListener
in interface javax.swing.CellEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |