本文整理汇总了Java中logbook.gui.ApplicationMain类的典型用法代码示例。如果您正苦于以下问题:Java ApplicationMain类的具体用法?Java ApplicationMain怎么用?Java ApplicationMain使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApplicationMain类属于logbook.gui包,在下文中一共展示了ApplicationMain类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UpdateItemCountTask
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* コンストラクター
*/
public UpdateItemCountTask(ApplicationMain main) {
this.main = main;
}
示例2: UpdateShipCountTask
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* コンストラクター
*/
public UpdateShipCountTask(ApplicationMain main) {
this.main = main;
}
示例3: UpdateDeckNdockTask
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* コンストラクター
*/
public UpdateDeckNdockTask(ApplicationMain main) {
this.main = main;
}
示例4: UpdateFleetTabTask
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* コンストラクター
*/
public UpdateFleetTabTask(ApplicationMain main) {
this.main = main;
}
示例5: FleetComposite
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* @param parent 艦隊タブの親
* @param tabItem 艦隊タブ
*/
public FleetComposite(CTabFolder parent, CTabItem tabItem, ApplicationMain main) {
super(parent, SWT.NONE);
this.tab = tabItem;
this.main = main;
this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
GridLayout glParent = new GridLayout(1, false);
glParent.horizontalSpacing = 0;
glParent.marginTop = 0;
glParent.marginWidth = 0;
glParent.marginHeight = 0;
glParent.marginBottom = 0;
glParent.verticalSpacing = 0;
this.setLayout(glParent);
FontData normalfd = parent.getShell().getFont().getFontData()[0];
FontData largefd = new FontData(normalfd.getName(), normalfd.getHeight() + 2, normalfd.getStyle());
FontData smallfd = new FontData(normalfd.getName(), normalfd.getHeight() - 1, normalfd.getStyle());
this.large = new Font(Display.getCurrent(), largefd);
this.small = new Font(Display.getCurrent(), smallfd);
this.fleetGroup = new Composite(this, SWT.NONE);
this.fleetGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
GridLayout glShipGroup = new GridLayout(3, false);
glShipGroup.horizontalSpacing = 0;
glShipGroup.marginTop = 0;
glShipGroup.marginWidth = 1;
glShipGroup.marginHeight = 0;
glShipGroup.marginBottom = 0;
glShipGroup.verticalSpacing = 0;
this.fleetGroup.setLayout(glShipGroup);
this.init();
// セパレーター
Label separator = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL);
separator.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
// メッセージ
this.message = new StyledText(this, SWT.READ_ONLY | SWT.WRAP);
this.message.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
this.message.setWordWrap(true);
this.message.setBackground(this.getBackground());
this.message.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent event) {
try {
int offset = FleetComposite.this.message.getOffsetAtLocation(new Point(event.x, event.y));
StyleRange style = FleetComposite.this.message.getStyleRangeAtOffset(offset);
if ((style != null) && (style.data instanceof Date)) {
TimerSettingDialog dialog = new TimerSettingDialog(FleetComposite.this.getShell());
dialog.setTime((Date) style.data);
dialog.setMessage(MessageFormat.format("「{0}」の疲労が回復しました", FleetComposite.this.dock.getName()));
dialog.open();
}
} catch (IllegalArgumentException e) {
// no character under event.x, event.y
}
}
});
this.fleetGroup.layout();
}
示例6: FleetComposite
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* @param parent 艦隊タブの親
* @param tabItem 艦隊タブ
*/
public FleetComposite(CTabFolder parent, CTabItem tabItem, ApplicationMain main) {
super(parent, SWT.NONE);
this.tab = tabItem;
this.main = main;
this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
GridLayout glParent = new GridLayout(1, false);
glParent.horizontalSpacing = 0;
glParent.marginTop = 0;
glParent.marginWidth = 0;
glParent.marginHeight = 0;
glParent.marginBottom = 0;
glParent.verticalSpacing = 0;
this.setLayout(glParent);
FontData normalfd = parent.getShell().getFont().getFontData()[0];
FontData largefd = new FontData(normalfd.getName(), normalfd.getHeight() + 2, normalfd.getStyle());
FontData smallfd = new FontData(normalfd.getName(), normalfd.getHeight() - 1, normalfd.getStyle());
this.large = new Font(Display.getCurrent(), largefd);
this.small = new Font(Display.getCurrent(), smallfd);
this.fleetGroup = new Composite(this, SWT.NONE);
this.fleetGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
GridLayout glShipGroup = new GridLayout(3, false);
glShipGroup.horizontalSpacing = 0;
glShipGroup.marginTop = 0;
glShipGroup.marginWidth = 1;
glShipGroup.marginHeight = 0;
glShipGroup.marginBottom = 0;
glShipGroup.verticalSpacing = 0;
this.fleetGroup.setLayout(glShipGroup);
this.init();
// セパレーター
Label separator = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL);
separator.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
// メッセージ
this.message = new StyledText(this, SWT.READ_ONLY | SWT.WRAP);
this.message.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
this.message.setWordWrap(true);
this.message.setBackground(this.getBackground());
this.fleetGroup.layout();
}
示例7: AsyncExecApplicationMain
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* 非同期にメイン画面を更新するスレッドのコンストラクター
*
* @param main メイン画面
*/
public AsyncExecApplicationMain(ApplicationMain main) {
this.main = main;
this.setName("logbook_async_exec_application_main");
}
示例8: AsyncExecApplicationMain
import logbook.gui.ApplicationMain; //导入依赖的package包/类
/**
* 非同期にメイン画面を更新するスレッドのコンストラクター
*
* @param main メイン画面
*/
public AsyncExecApplicationMain(ApplicationMain main) {
this.main = main;
this.setName("logbook_async_exec_application_main");
}