class ScriptModel
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
ScriptModel() |
ScriptModel(Script script) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getColumnClass(int col) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getNestingDepthAt(int row) |
Sequence |
getParent(Step step)
Return the parent sequence of the given step.
|
int |
getRowCount() |
int |
getRowOf(Step step)
Returns -1 if the step is not found or not visible.
|
Script |
getScript() |
Script |
getScriptOf(int row) |
Step |
getStepAt(int row) |
java.lang.Object |
getValueAt(int row,
int col)
Returns the step at the given row.
|
void |
insertStep(Sequence parent,
Step step,
int index)
Insert the given step at the given index in its parent.
|
void |
insertSteps(Sequence parent,
java.util.List steps,
int index)
Insert the steps into the given sequence at the given index.
|
boolean |
isOpen(int row)
Return whether the given row is "open".
|
boolean |
isOpen(Step step) |
void |
moveSteps(Sequence parent,
java.util.List steps,
int index)
Move the given steps and all between them to the new location.
|
void |
removeStep(Step step)
Remove the given step from the script.
|
void |
removeSteps(java.util.List steps)
Remove all the given steps.
|
void |
setScript(Script script)
Set the script to display.
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
Assumes value is XML for a script step.
|
void |
toggle(int row)
Toggle the open state of the node, if it's a sequence.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListenerpublic ScriptModel()
public ScriptModel(Script script)
public void removeStep(Step step)
public void removeSteps(java.util.List steps)
public void insertStep(Sequence parent, Step step, int index)
public void insertSteps(Sequence parent, java.util.List steps, int index)
public int getRowOf(Step step)
public boolean isOpen(int row)
public boolean isOpen(Step step)
public void toggle(int row)
public void setScript(Script script)
public int getRowCount()
public int getColumnCount()
public Step getStepAt(int row)
public java.lang.Object getValueAt(int row,
int col)
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic java.lang.Class getColumnClass(int col)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic Script getScript()
public int getNestingDepthAt(int row)
public Script getScriptOf(int row)
public void moveSteps(Sequence parent, java.util.List steps, int index)
Abbot is hosted on