|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
uk.apl.jxc.tools.XMLSchemaItemCellEditor
public class XMLSchemaItemCellEditor
A table cell editor that allows user to enter input for XPath queries. It allows input to be typed and nodes to be selected from an XMLSchemaItemSelectorUI.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractCellEditor |
---|
changeEvent, listenerList |
Constructor Summary | |
---|---|
XMLSchemaItemCellEditor(java.awt.Dialog parent,
java.lang.String title,
java.lang.Object[] items)
Constructs a new XMLSchemaItemCellEditor using a JComboBox as the input component. |
|
XMLSchemaItemCellEditor(java.awt.Frame parent,
java.lang.String title)
Constructs a new XMLSchemaItemCellEditor using a JTextField as the input component. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
java.lang.Object |
getCellEditorValue()
Returns the user input entered into the cell editor component. |
java.awt.Component |
getComponent()
Returns the cell editor component. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int rowIndex,
int vColIndex)
Returns the cell editor component. |
void |
setSchema(XMLSchema schema,
java.lang.String rootElement)
Sets the XMLSchema that the user may select nodes as input from |
static java.lang.String |
showInputDialog(javax.swing.JDialog parent,
java.lang.Object[] items,
XMLSchema schema,
java.lang.String rootElement,
java.lang.String title,
java.lang.String prompt)
Shows the cell editor component in a modal dialog for capturing user input outside of a JTable. |
Methods inherited from class javax.swing.AbstractCellEditor |
---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Constructor Detail |
---|
public XMLSchemaItemCellEditor(java.awt.Frame parent, java.lang.String title)
parent
- the parent frametitle
- a title for the XMLSchema selector dialogpublic XMLSchemaItemCellEditor(java.awt.Dialog parent, java.lang.String title, java.lang.Object[] items)
parent
- the parent dialogtitle
- a title for the XMLSchema selector dialogitems
- options for the cell editors combo boxMethod Detail |
---|
public void setSchema(XMLSchema schema, java.lang.String rootElement)
schema
- an XMLSchema from which nodes may be selectedrootElement
- the highest node that may be selected from the schemapublic java.awt.Component getComponent()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int rowIndex, int vColIndex)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
table
- value
- isSelected
- rowIndex
- vColIndex
-
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public static java.lang.String showInputDialog(javax.swing.JDialog parent, java.lang.Object[] items, XMLSchema schema, java.lang.String rootElement, java.lang.String title, java.lang.String prompt)
parent
- the parent dialogitems
- options for the cell editors combo boxschema
- an XMLSchema from which nodes may be selectedrootElement
- the highest node that may be selected from the schematitle
- a title for the modal dialogprompt
- a message to prompt the user for input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |