本文整理匯總了Java中com.trollworks.toolkit.ui.widget.outline.OutlineModel.collectRowsAndSetOwner方法的典型用法代碼示例。如果您正苦於以下問題:Java OutlineModel.collectRowsAndSetOwner方法的具體用法?Java OutlineModel.collectRowsAndSetOwner怎麽用?Java OutlineModel.collectRowsAndSetOwner使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.trollworks.toolkit.ui.widget.outline.OutlineModel
的用法示例。
在下文中一共展示了OutlineModel.collectRowsAndSetOwner方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: convertDragRowsToSelf
import com.trollworks.toolkit.ui.widget.outline.OutlineModel; //導入方法依賴的package包/類
@Override
public void convertDragRowsToSelf(List<Row> list) {
OutlineModel model = getModel();
Row[] rows = model.getDragRows();
boolean forSheetOrTemplate = mDataFile instanceof GURPSCharacter || mDataFile instanceof Template;
ArrayList<ListRow> process = new ArrayList<>();
for (Row element : rows) {
Equipment equipment = new Equipment(mDataFile, (Equipment) element, true);
model.collectRowsAndSetOwner(list, equipment, false);
if (forSheetOrTemplate) {
addRowsToBeProcessed(process, equipment);
}
}
if (forSheetOrTemplate && !process.isEmpty()) {
EventQueue.invokeLater(new RowPostProcessor(this, process));
}
}
示例2: convertDragRowsToSelf
import com.trollworks.toolkit.ui.widget.outline.OutlineModel; //導入方法依賴的package包/類
@Override
public void convertDragRowsToSelf(List<Row> list) {
OutlineModel model = getModel();
Row[] rows = model.getDragRows();
boolean forSheetOrTemplate = mDataFile instanceof GURPSCharacter || mDataFile instanceof Template;
ArrayList<ListRow> process = forSheetOrTemplate ? new ArrayList<>() : null;
for (Row element : rows) {
ListRow row;
if (element instanceof Technique) {
row = new Technique(mDataFile, (Technique) element, forSheetOrTemplate);
} else {
row = new Skill(mDataFile, (Skill) element, true, forSheetOrTemplate);
}
model.collectRowsAndSetOwner(list, row, false);
if (forSheetOrTemplate) {
addRowsToBeProcessed(process, row);
}
}
if (forSheetOrTemplate) {
EventQueue.invokeLater(new RowPostProcessor(this, process));
}
}
示例3: convertDragRowsToSelf
import com.trollworks.toolkit.ui.widget.outline.OutlineModel; //導入方法依賴的package包/類
@Override
public void convertDragRowsToSelf(List<Row> list) {
OutlineModel model = getModel();
Row[] rows = model.getDragRows();
boolean forSheetOrTemplate = mDataFile instanceof GURPSCharacter || mDataFile instanceof Template;
ArrayList<ListRow> process = new ArrayList<>();
for (Row element : rows) {
Spell spell = new Spell(mDataFile, (Spell) element, true, forSheetOrTemplate);
model.collectRowsAndSetOwner(list, spell, false);
if (forSheetOrTemplate) {
addRowsToBeProcessed(process, spell);
}
}
if (forSheetOrTemplate && !process.isEmpty()) {
EventQueue.invokeLater(new RowPostProcessor(this, process));
}
}
示例4: convertDragRowsToSelf
import com.trollworks.toolkit.ui.widget.outline.OutlineModel; //導入方法依賴的package包/類
@Override
public void convertDragRowsToSelf(List<Row> list) {
OutlineModel model = getModel();
Row[] rows = model.getDragRows();
boolean forSheetOrTemplate = mDataFile instanceof GURPSCharacter || mDataFile instanceof Template;
ArrayList<ListRow> process = new ArrayList<>();
for (Row element : rows) {
Advantage advantage = new Advantage(mDataFile, (Advantage) element, true);
model.collectRowsAndSetOwner(list, advantage, false);
if (forSheetOrTemplate) {
addRowsToBeProcessed(process, advantage);
}
}
if (forSheetOrTemplate && !process.isEmpty()) {
EventQueue.invokeLater(new RowPostProcessor(this, process));
}
}
示例5: convertDragRowsToSelf
import com.trollworks.toolkit.ui.widget.outline.OutlineModel; //導入方法依賴的package包/類
@Override
public void convertDragRowsToSelf(List<Row> list) {
OutlineModel model = getModel();
Row[] rows = model.getDragRows();
boolean forSheetOrTemplate = mDataFile instanceof GURPSCharacter || mDataFile instanceof Template;
ArrayList<ListRow> process = new ArrayList<>();
for (Row element : rows) {
Note note = new Note(mDataFile, (Note) element, true);
model.collectRowsAndSetOwner(list, note, false);
if (forSheetOrTemplate) {
addRowsToBeProcessed(process, note);
}
}
if (forSheetOrTemplate && !process.isEmpty()) {
EventQueue.invokeLater(new RowPostProcessor(this, process));
}
}