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


Java ApplicationMain類代碼示例

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

示例2: UpdateShipCountTask

import logbook.gui.ApplicationMain; //導入依賴的package包/類
/**
 * コンストラクター
 */
public UpdateShipCountTask(ApplicationMain main) {
    this.main = main;
}
 
開發者ID:sanaehirotaka,項目名稱:logbook,代碼行數:7,代碼來源:AsyncExecApplicationMain.java

示例3: UpdateDeckNdockTask

import logbook.gui.ApplicationMain; //導入依賴的package包/類
/**
 * コンストラクター
 */
public UpdateDeckNdockTask(ApplicationMain main) {
    this.main = main;
}
 
開發者ID:sanaehirotaka,項目名稱:logbook,代碼行數:7,代碼來源:AsyncExecApplicationMain.java

示例4: UpdateFleetTabTask

import logbook.gui.ApplicationMain; //導入依賴的package包/類
/**
 * コンストラクター
 */
public UpdateFleetTabTask(ApplicationMain main) {
    this.main = main;
}
 
開發者ID:sanaehirotaka,項目名稱:logbook,代碼行數:7,代碼來源:AsyncExecApplicationMain.java

示例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();
}
 
開發者ID:sanaehirotaka,項目名稱:logbook,代碼行數:68,代碼來源:FleetComposite.java

示例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();
}
 
開發者ID:kyuntx,項目名稱:logbookpn,代碼行數:49,代碼來源:FleetComposite.java

示例7: AsyncExecApplicationMain

import logbook.gui.ApplicationMain; //導入依賴的package包/類
/**
 * 非同期にメイン畫麵を更新するスレッドのコンストラクター
 *
 * @param main メイン畫麵
 */
public AsyncExecApplicationMain(ApplicationMain main) {
    this.main = main;
    this.setName("logbook_async_exec_application_main");
}
 
開發者ID:sanaehirotaka,項目名稱:logbook,代碼行數:10,代碼來源:AsyncExecApplicationMain.java

示例8: AsyncExecApplicationMain

import logbook.gui.ApplicationMain; //導入依賴的package包/類
/**
 * 非同期にメイン畫麵を更新するスレッドのコンストラクター
 * 
 * @param main メイン畫麵
 */
public AsyncExecApplicationMain(ApplicationMain main) {
    this.main = main;
    this.setName("logbook_async_exec_application_main");
}
 
開發者ID:kyuntx,項目名稱:logbookpn,代碼行數:10,代碼來源:AsyncExecApplicationMain.java


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