public class CutEditor extends Object implements ChangeListener
Cut
and controls that manipulate them.Modifier and Type | Class and Description |
---|---|
protected class |
CutEditor.ConditionTableModel
Model for a table of
Cut 's conditions. |
Modifier and Type | Field and Description |
---|---|
protected Action |
_actAdd |
protected Action |
_actDelete |
protected Action |
_actDeleteAll |
protected Action |
_actDeleteDisabled |
protected JButton |
_actions |
protected Action |
_actNew |
protected Action |
_actReset |
protected Action |
_actResetAll |
protected Action |
_actSync |
protected EnumMap<ConditionDefinition.Type,ConditionEditor> |
_conditionEditors |
protected ConditionEditor |
_currentEditor |
protected int |
_editRow |
protected boolean |
_enabled |
protected JCheckBox |
_hide |
protected CutManager |
_manager |
protected CutEditor.ConditionTableModel |
_model |
protected TableRowSorter<CutEditor.ConditionTableModel> |
_sorter |
protected JTable |
_table |
protected ListSelectionListener |
_tableSelectionListener |
Constructor and Description |
---|
CutEditor() |
Modifier and Type | Method and Description |
---|---|
JButton |
getActionsButton() |
ConditionEditor |
getConditionEditor(ConditionDefinition.Type conditionType) |
JTable |
getConditionsTable() |
JCheckBox |
getHideDisabledBox() |
Condition |
getSelectedCondition()
Returns currently selected condition.
|
static void |
main(String[] args) |
void |
setConditionEditor(ConditionDefinition.Type type,
ConditionEditor editor) |
void |
setCut(Cut cut) |
void |
setEnabled(boolean state) |
void |
setManager(CutManager manager) |
protected void |
showConditionEditor(ConditionEditor editor) |
void |
stateChanged(ChangeEvent e) |
protected JTable _table
protected CutEditor.ConditionTableModel _model
protected TableRowSorter<CutEditor.ConditionTableModel> _sorter
protected ListSelectionListener _tableSelectionListener
protected JCheckBox _hide
protected JButton _actions
protected Action _actNew
protected Action _actAdd
protected Action _actDelete
protected Action _actDeleteAll
protected Action _actDeleteDisabled
protected Action _actReset
protected Action _actResetAll
protected Action _actSync
protected EnumMap<ConditionDefinition.Type,ConditionEditor> _conditionEditors
protected ConditionEditor _currentEditor
protected CutManager _manager
protected int _editRow
protected boolean _enabled
public void setCut(Cut cut)
public void setManager(CutManager manager)
public void setConditionEditor(ConditionDefinition.Type type, ConditionEditor editor)
public void setEnabled(boolean state)
public JTable getConditionsTable()
public JButton getActionsButton()
public JCheckBox getHideDisabledBox()
public ConditionEditor getConditionEditor(ConditionDefinition.Type conditionType)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public Condition getSelectedCondition()
protected void showConditionEditor(ConditionEditor editor)
public static void main(String[] args)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.