當前位置: 首頁>>代碼示例>>Java>>正文


Java OutlineModel.collectRowsAndSetOwner方法代碼示例

本文整理匯總了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));
    }
}
 
開發者ID:richardwilkes,項目名稱:gcs,代碼行數:21,代碼來源:EquipmentOutline.java

示例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));
    }
}
 
開發者ID:richardwilkes,項目名稱:gcs,代碼行數:27,代碼來源:SkillOutline.java

示例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));
    }
}
 
開發者ID:richardwilkes,項目名稱:gcs,代碼行數:21,代碼來源:SpellOutline.java

示例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));
    }
}
 
開發者ID:richardwilkes,項目名稱:gcs,代碼行數:21,代碼來源:AdvantageOutline.java

示例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));
    }
}
 
開發者ID:richardwilkes,項目名稱:gcs,代碼行數:18,代碼來源:NoteOutline.java


注:本文中的com.trollworks.toolkit.ui.widget.outline.OutlineModel.collectRowsAndSetOwner方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。