class ScriptModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
ScriptModel() |
ScriptModel(Script script) |
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int col) |
int |
getColumnCount() |
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) |
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,
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,
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(List steps)
Remove all the given steps.
|
void |
setScript(Script script)
Set the script to display.
|
void |
setValueAt(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, removeTableModelListener
public ScriptModel()
public ScriptModel(Script script)
public void removeStep(Step step)
public void removeSteps(List steps)
public void insertStep(Sequence parent, Step step, int index)
public void insertSteps(Sequence parent, 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 Object getValueAt(int row, int col)
public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class getColumnClass(int col)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Script getScript()
public int getNestingDepthAt(int row)
public Script getScriptOf(int row)
Abbot is hosted on