本文整理汇总了Java中logbook.gui.logic.CreateReportLogic类的典型用法代码示例。如果您正苦于以下问题:Java CreateReportLogic类的具体用法?Java CreateReportLogic怎么用?Java CreateReportLogic使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CreateReportLogic类属于logbook.gui.logic包,在下文中一共展示了CreateReportLogic类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doBattleresult
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 海戦情報を更新します
* @param data
*/
private static void doBattleresult(Data data) {
try {
if (battle != null) {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
BattleResultDto dto = new BattleResultDto(apidata, mapCellNo, mapBossCellNo, eventId, isStart, battle);
battleResultList.add(dto);
CreateReportLogic.storeBattleResultReport(dto);
}
// 出撃を更新
isStart = false;
addConsole("海戦情報を更新しました");
} catch (Exception e) {
LoggerHolder.LOG.warn("海戦情報を更新しますに失敗しました", e);
LoggerHolder.LOG.warn(data);
}
}
示例2: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
TableWrapper<ItemBean> table = this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getItemTablecontent)
.reload()
.update();
table.getTable().addMouseListener(new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent e) {
ItemBean[] selection = table.getSelection(ItemBean[]::new);
for (ItemBean item : selection) {
ShipFilterDto filter = new ShipFilterDto();
filter.itemname = item.getName();
new ShipTable(ItemTable.this.getParent(), filter).open();
}
}
});
}
示例3: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
TableWrapper<DropReportBean> table = this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getBattleResultContent)
.reload()
.update();
table.getTable().addMouseListener(new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent e) {
DropReportBean[] selection = table.getSelection(DropReportBean[]::new);
for (DropReportBean item : selection) {
new BattleDialog(DropReportTable.this.shell, item.getResult()).open();
}
}
});
}
示例4: doBattleresult
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 海戦情報を更新します
* @param data
*/
private static void doBattleresult(Data data) {
try {
if (battle != null) {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
BattleResultDto dto = new BattleResultDto(apidata, mapCellNo, mapBossCellNo, eventId, isStart, battle);
battleResultList.add(dto);
CreateReportLogic.storeBattleResultReport(dto);
}
// 出撃を更新
isStart = false;
addConsole("海戦情報を更新しました");
} catch (Exception e) {
LOG.warn("海戦情報を更新しますに失敗しました", e);
LOG.warn(data);
}
}
示例5: doBattleresult
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 海戦情報を更新します
* @param data
*/
private static void doBattleresult(Data data) {
try {
if (battle != null) {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
BattleResultDto dto = new BattleResultDto(apidata, mapCellNo, mapBossCellNo, eventId, isStart, battle);
battleResultList.add(dto);
CreateReportLogic.storeBattleResultReport(dto);
}
// 出撃を更新
isStart = false;
addConsole("Battle result received");
} catch (Exception e) {
LOG.warn("Battle information update failed", e);
LOG.warn(data);
}
}
示例6: doCreateitem
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 装備開発情報を更新します
*
* @param data
*/
private static void doCreateitem(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
// 投入資源
ResourceDto resources = new ResourceDto(data.getField("api_item1"), data.getField("api_item2"),
data.getField("api_item3"), data.getField("api_item4"), ShipContext.getSecretary(), hqLevel);
CreateItemDto createitem = new CreateItemDto(apidata, resources);
if (createitem.isCreateFlag()) {
JsonObject object = apidata.getJsonObject("api_slot_item");
int typeid = object.getJsonNumber("api_slotitem_id").intValue();
Long id = object.getJsonNumber("api_id").longValue();
ItemDto item = Item.get(typeid);
if (item != null) {
ItemContext.get().put(id, item);
createitem.setName(item.getName());
createitem.setType(item.getType());
createItemList.add(createitem);
}
} else {
createItemList.add(createitem);
}
CreateReportLogic.storeCreateItemReport(createitem);
addConsole("装備開発情報を更新しました");
} catch (Exception e) {
LoggerHolder.LOG.warn("装備開発情報を更新しますに失敗しました", e);
LoggerHolder.LOG.warn(data);
}
}
示例7: doMissionResult
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 遠征(帰還)を更新します
*
* @param data
*/
private static void doMissionResult(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
MissionResultDto result = new MissionResultDto();
int clearResult = apidata.getJsonNumber("api_clear_result").intValue();
result.setClearResult(clearResult);
result.setQuestName(apidata.getString("api_quest_name"));
if (clearResult != 0) {
JsonArray material = apidata.getJsonArray("api_get_material");
result.setFuel(material.getJsonNumber(0).toString());
result.setAmmo(material.getJsonNumber(1).toString());
result.setMetal(material.getJsonNumber(2).toString());
result.setBauxite(material.getJsonNumber(3).toString());
}
CreateReportLogic.storeCreateMissionReport(result);
missionResultList.add(result);
addConsole("遠征(帰還)情報を更新しました");
} catch (Exception e) {
LoggerHolder.LOG.warn("遠征(帰還)を更新しますに失敗しました", e);
LoggerHolder.LOG.warn(data);
}
}
示例8: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getCreateItemContent)
.reload()
.update();
}
示例9: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getQuestContent)
.reload()
.update();
// 任務をリセット
final MenuItem reset = new MenuItem(this.opemenu, SWT.NONE);
reset.setText("任務をリセット");
reset.addSelectionListener((SelectedListener) e -> {
GlobalContext.getQuest().clear();
this.getSelectionTable().reload().update();
});
}
示例10: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getCreateShipContent)
.reload()
.update();
}
示例11: createContents
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
@Override
protected void createContents() {
this.addTable(this.shell)
.setContentSupplier(CreateReportLogic::getMissionResultContent)
.reload()
.update();
}
示例12: doCreateitem
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 装備開発情報を更新します
*
* @param data
*/
private static void doCreateitem(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
// 投入資源
ResourceDto resources = new ResourceDto(data.getField("api_item1"), data.getField("api_item2"),
data.getField("api_item3"), data.getField("api_item4"), secretary, hqLevel);
CreateItemDto createitem = new CreateItemDto(apidata, resources);
if (createitem.isCreateFlag()) {
JsonObject object = apidata.getJsonObject("api_slot_item");
int typeid = object.getJsonNumber("api_slotitem_id").intValue();
Long id = object.getJsonNumber("api_id").longValue();
ItemDto item = Item.get(typeid);
if (item != null) {
itemMap.put(id, item);
createitem.setName(item.getName());
createitem.setType(item.getType());
createItemList.add(createitem);
}
} else {
createItemList.add(createitem);
}
CreateReportLogic.storeCreateItemReport(createitem);
addConsole("装備開発情報を更新しました");
} catch (Exception e) {
LOG.warn("装備開発情報を更新しますに失敗しました", e);
LOG.warn(data);
}
}
示例13: doMissionResult
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 遠征(帰還)を更新します
*
* @param data
*/
private static void doMissionResult(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
MissionResultDto result = new MissionResultDto();
int clearResult = apidata.getJsonNumber("api_clear_result").intValue();
result.setClearResult(clearResult);
result.setQuestName(apidata.getString("api_quest_name"));
if (clearResult != 0) {
JsonArray material = apidata.getJsonArray("api_get_material");
result.setFuel(material.getJsonNumber(0).toString());
result.setAmmo(material.getJsonNumber(1).toString());
result.setMetal(material.getJsonNumber(2).toString());
result.setBauxite(material.getJsonNumber(3).toString());
}
CreateReportLogic.storeCreateMissionReport(result);
missionResultList.add(result);
addConsole("遠征(帰還)情報を更新しました");
} catch (Exception e) {
LOG.warn("遠征(帰還)を更新しますに失敗しました", e);
LOG.warn(data);
}
}
示例14: setTableBody
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* テーブルボディーをセットする
*/
private void setTableBody() {
TableItemCreator creator = CreateReportLogic.DEFAULT_TABLE_ITEM_CREATOR;
creator.init();
for (int i = 0; i < this.body.size(); i++) {
String[] line = this.body.get(i);
creator.create(this.table, line, i);
}
}
示例15: doCreateitem
import logbook.gui.logic.CreateReportLogic; //导入依赖的package包/类
/**
* 装備開発情報を更新します
*
* @param data
*/
private static void doCreateitem(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
// 投入資源
ResourceDto resources = new ResourceDto(data.getField("api_item1"), data.getField("api_item2"),
data.getField("api_item3"), data.getField("api_item4"), secretary, hqLevel);
CreateItemDto createitem = new CreateItemDto(apidata, resources);
if (createitem.isCreateFlag()) {
JsonObject object = apidata.getJsonObject("api_slot_item");
int typeid = object.getJsonNumber("api_slotitem_id").intValue();
Long id = object.getJsonNumber("api_id").longValue();
ItemDto item = Item.get(typeid);
if (item != null) {
itemMap.put(id, item);
createitem.setName(item.getName());
createitem.setType(item.getType());
createItemList.add(createitem);
}
} else {
createItemList.add(createitem);
}
CreateReportLogic.storeCreateItemReport(createitem);
addConsole("Crafting result received");
} catch (Exception e) {
LOG.warn("Craft information update failed", e);
LOG.warn(data);
}
}