Swt J Face 2주차

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Swt J Face 2주차 - Presentation Transcript

    1. SWT/Jface
      JFace에 대해
    2. 목 차
      JFace는?
      Hello World 예제
      Image,Font, Color Registry 소개
      Action과 Contribution 소개
      Viewer 소개
      TreeViewer
      TableViewer
      Dialog,Wizard, Preference 소개
      팀 회의
      실습
    3. JFace는?
      • 모델 기반 어뎁터 or 헬퍼 클래스
      • www.eclipse.org/swt
    4. UI Framework
      문제 :
      구조적인 도메인 모델을 탐색 및 조작 할 수 있어야 한다.
      도메인이 바뀌어도 UI와 싱크를 맞추어야 한다.
    5. HelloWorld예제
      public class HelloWorldJFace extends ApplicationWindow {
      public HelloWorldJFace() { // 2
      super(null);
      createActions();
      addToolBar(SWT.FLAT | SWT.WRAP);
      addMenuBar();
      addStatusLine();
      }
      protected Control createContents(Composite parent) // 8 composit 생성
      private void createActions() // 3 명령 설정
      protected ToolBarManager createToolBarManager(int style) // 4 메뉴 아래에 툴바
      protected MenuManager createMenuManager() // 5 최상위 메뉴 설정
      protected StatusLineManager createStatusLineManager() // 6 하단에 상태바
      public static void main(String args[]) { // 1
      try {
      HelloWorldJFace window = new HelloWorldJFace();
      window.setBlockOnOpen(true);
      window.open();
      Display.getCurrent().dispose();
      } catch (Exception e) {
      e.printStackTrace();
      }
      }
      protected void configureShell(Shell newShell) // 7
      protected Point getInitialSize() // 9
    6. HelloWorld 예제 실행
      SWT Designer사용
      File -> New -> Project -> Designer -> SWT/JFace Java Project
    7. Image,Font, Color Registry 소개
      JFaceResources
      ImageRegistry
      FontRegistry
      ColorRegistry
    8. Action과 Contribution
      View와 Control분리
      운영체제 Event Queue
      Display
      public class StatusAction extends Action {
      public StatusAction() {
      super("&Trigger@Ctrl+T", AS_PUSH_BUTTON);
      setToolTipText("Trigger the Action");
      setImageDescriptor(ImageDescriptor.createFromFile(this.getClass(), "property.png"));
      }
      public void run() {
      System.out.println("The status action has fired.");
      }
      }
      Application
      Window
      Contiribution
      Run
    9. Viewer소개
      Viewer는?
      Model + View + Control을 분리.
      정렬 필터링
      랜더링( 아이콘, 레벨)
      Action을 제공
      종류
      List, Table, Tree, Text
    10. Table Viewer 소개
    11. Tree Viewer 소개
      Domain Data
    12. Tree Viewer 소개
      모델변경 – 모델변경 -> view 변경
      Domain Data
    13. Dialog 소개
    14. Wizard 소개
    15. Preference 소개
    16. 실습
    17. 참고자료
      www.eclipse.org/swt
      http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.emf.doc/references/overview/EMF.Edit.html
      http://www.ibm.com/developerworks/library/os-ecgui1/
    SlideShare Zeitgeist 2009

    + cho hyun jongcho hyun jong Nominate

    custom

    507 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 507
      • 480 on SlideShare
      • 27 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 27
    Most viewed embeds
    • 27 views on http://hangumkj.blogspot.com

    more

    All embeds
    • 27 views on http://hangumkj.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories