콘텐츠로 이동

Class FormComponent

package org.kwis.msp.lwc

java.lang.Object
|
+--org.kwis.msp.lwc.Component
|
+--org.kwis.msp.lwc.ContainerComponent
|
+--org.kwis.msp.lwc.FormComponent

Direct Known Subclasses:

  • ListComponent

extends ContainerComponent:

다양한 컴포넌트를 일렬로 배열하여 화면을 구성하는 컴포넌트.

FormComponentContainerComponent를 확장하여 자식 컴포넌트로서 다양한 컴포넌트를 담아서 화면을 구성하는 컴포넌트입니다. 또한 각 컴포넌트들의 배치와 스크롤 여부를 관리합니다.

자식 컴포넌트들이 포커스 이동은 상하만 동작하도록 되어 있습니다. UP/DOWN키를 사용하여 자식 컴포넌트들의 포커스 이동을 할 수 있습니다. 내부의 컴포넌트가 많으면 자동적으로 scrollbar가 생성되도록 되어 있습니다.

Fields inherited from class org.kwis.msp.lwc. ContainerComponent cmpFocus , cmps , insetBottom , insetLeft , insetRight , insetTop , ncomp , offsetX , offsetY , useFrame

Fields inherited from class org.kwis.msp.lwc. Component bg , evtListener , evtListenerObj , fg , FOCUS_NOTIFY , h , HAS_FOCUS_MASK , INPUT_MASK , KEY_NOTIFY , KEY_PRESSED , KEY_RELEASED , KEY_REPEATED , KEY_TYPED , LAYOUT_BOTTOM , LAYOUT_HCENTER , LAYOUT_LEFT , LAYOUT_RIGHT , LAYOUT_TOP , LAYOUT_VCENTER , mask , parent , POINT_DRAGGED , POINT_PRESSED , POINT_RELEASED , POINTER_NOTIFY , POS_MASK , PREFER_SIZE_MASK , prefH , prefW , SHOW_NOTIFY , SIZE_MASK , VALID_MASK , w , x , y

Constructor Summary FormComponent () 폼 컴포넌트를 생성합니다. FormComponent (boolean bVertical) 폼 컴포넌트를 생성합니다.

Method Summary protected  void calcPreferredSize (int cw) 컴포넌트의 적절한 크기를 계산합니다. void focusNotify (boolean b) 포커스를 받으면 호출됩니다. int getGab () 컴포넌트 간의 간격을 돌려줍니다. protected Component getNextTraversalComponent () 포커스 가질 수 있는 다음 컴포넌트를 돌려줍니다. boolean getPacked () 자식 컴포넌트의 폭을 맞출것인지 여부를 돌려줍니다. protected Component getPrevTraversalComponent () 포커스 가질 수 있는 이전 컴포넌트를 돌려줍니다. protected  boolean keyNotify (int type, int key) 키 입력을 받으면 호출됩니다. void layout () 하위 컴포넌트의 크기와 위치를 결정합니다. protected  void layoutChildHorizontal () protected  void layoutChildVertical () void paint ( Graphics g) void removeAllComponents () 모든 컴포넌트를 삭제합니다. protected  boolean scrollTo (int dx, int dy) 특정 위치로 화면을 이동합니다. void setFocus ( Component c) void setGab (int gab) 컴포넌트 간의 간격을 결정합니다. void setPacked (boolean b) 폼의 내부의 컴포넌트의 폭을 폼의 폭으로 맞출 것인지 여부를 지정합니다.

Methods inherited from class org.kwis.msp.lwc. ContainerComponent addComponent , addComponent , controlInset , getComponent , getIndexOf , getNumberOfComponent , paintFrame , processEvent , removeComponent , removeComponent , repaint , repaint , setComponent , useFrame , validate

Methods inherited from class org.kwis.msp.lwc. Component canHandleInput , configure , getBackground , getCard , getForeground , getHeight , getPreferredHeight , getPreferredHeight , getPreferredWidth , getWidth , getX , getXOnScreen , getY , getYOnScreen , hasFocus , invalidate , isShown , isValid , paintContent , pointerNotify , serviceRepaints , setBackground , setEventListener , setFocus , setForeground , showNotify , toString

Methods inherited from class java.lang. Object equals , getClass , hashCode , notify , notifyAll , wait , wait , wait

Constructor Detail

  • 폼 컴포넌트를 생성합니다.
  • 폼 컴포넌트를 생성합니다.

Method Detail

Overrides:

  • removeAllComponents in class ContainerComponent

Parameters:

  • b - 폭에 맞추면 true, 그렇지 않으면 false

Returns:

  • 폭에 맞추는지 여부

Parameters:

  • gab - 컴포넌트 간의 간격

Returns:

  • 컴포넌트 간의 간격
  • Description copied from class: Component

Overrides:

  • focusNotify in class Component
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • b - 포커스를 가질땐 true가 넘어오고, 가지지 않을땐 false
  • Description copied from class: Component

Overrides:

  • keyNotify in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • chr - 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.

Returns:

  • 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면, true를 넘겨 줍니다. 그렇지 않았다면 false를 돌려줍니다.
  • Description copied from class: Component

Overrides:

  • calcPreferredSize in class Component
  • Description copied from class: Component

Overrides:

  • layout in class Component

Overrides:

  • paint in class ContainerComponent
  • Description copied from class: ContainerComponent

Overrides:

  • getNextTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 다음 컴포넌트
  • Description copied from class: ContainerComponent

Overrides:

  • getPrevTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 이전 컴포넌트
  • FormComponent () 폼 컴포넌트를 생성합니다.
  • FormComponent (boolean bVertical) 폼 컴포넌트를 생성합니다.
  • protected  void calcPreferredSize (int cw) — 컴포넌트의 적절한 크기를 계산합니다.
  • void focusNotify (boolean b) — 포커스를 받으면 호출됩니다.
  • int getGab () — 컴포넌트 간의 간격을 돌려줍니다.
  • protected Component getNextTraversalComponent () — 포커스 가질 수 있는 다음 컴포넌트를 돌려줍니다.
  • boolean getPacked () — 자식 컴포넌트의 폭을 맞출것인지 여부를 돌려줍니다.
  • protected Component getPrevTraversalComponent () — 포커스 가질 수 있는 이전 컴포넌트를 돌려줍니다.
  • protected  boolean keyNotify (int type, int key) — 키 입력을 받으면 호출됩니다.
  • void layout () — 하위 컴포넌트의 크기와 위치를 결정합니다.
  • protected  void layoutChildHorizontal ()
  • protected  void layoutChildVertical ()
  • void paint ( Graphics g)
  • void removeAllComponents () — 모든 컴포넌트를 삭제합니다.
  • protected  boolean scrollTo (int dx, int dy) — 특정 위치로 화면을 이동합니다.
  • void setFocus ( Component c)
  • void setGab (int gab) — 컴포넌트 간의 간격을 결정합니다.
  • void setPacked (boolean b) — 폼의 내부의 컴포넌트의 폭을 폼의 폭으로 맞출 것인지 여부를 지정합니다.
public FormComponent()
  • 폼 컴포넌트를 생성합니다.
public FormComponent(boolean bVertical)
  • 폼 컴포넌트를 생성합니다.
public void removeAllComponents()

Overrides:

  • removeAllComponents in class ContainerComponent
public void setPacked(boolean b)

Parameters:

  • b - 폭에 맞추면 true, 그렇지 않으면 false
public boolean getPacked()

Returns:

  • 폭에 맞추는지 여부
public void setGab(int gab)

Parameters:

  • gab - 컴포넌트 간의 간격
public int getGab()

Returns:

  • 컴포넌트 간의 간격
protected void layoutChildHorizontal()
protected void layoutChildVertical()
public void focusNotify(boolean b)
  • Description copied from class: Component

Overrides:

  • focusNotify in class Component
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • b - 포커스를 가질땐 true가 넘어오고, 가지지 않을땐 false
protected boolean keyNotify(int type,
int key)
  • Description copied from class: Component

Overrides:

  • keyNotify in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • chr - 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.

Returns:

  • 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면, true를 넘겨 줍니다. 그렇지 않았다면 false를 돌려줍니다.
protected void calcPreferredSize(int cw)
  • Description copied from class: Component

Overrides:

  • calcPreferredSize in class Component
public void layout()
  • Description copied from class: Component

Overrides:

  • layout in class Component
public void setFocus(Component c)
public void paint(Graphics g)

Overrides:

  • paint in class ContainerComponent
protected Component getNextTraversalComponent()
  • Description copied from class: ContainerComponent

Overrides:

  • getNextTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 다음 컴포넌트
protected Component getPrevTraversalComponent()
  • Description copied from class: ContainerComponent

Overrides:

  • getPrevTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 이전 컴포넌트
protected boolean scrollTo(inODE>ContainerComponent
public void removeAllComponents()

Overrides:

  • removeAllComponents in class ContainerComponent
public void setPacked(boolean b)

Parameters:

  • b - 폭에 맞추면 true, 그렇지 않으면 false
public boolean getPacked()

Returns:

  • 폭에 맞추는지 여부
public void setGab(int gab)

Parameters:

  • gab - 컴포넌트 간의 간격
public int getGab()

Returns:

  • 컴포넌트 간의 간격
protected void layoutChildHorizontal()
protected void layoutChildVertical()
public void focusNotify(boolean b)
  • Description copied from class: Component

Overrides:

  • focusNotify in class Component
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • b - 포커스를 가질땐 true가 넘어오고, 가지지 않을땐 false
protected boolean keyNotify(int type,
int key)
  • Description copied from class: Component

Overrides:

  • keyNotify in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.Component

Parameters:

  • chr - 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.

Returns:

  • 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면, true를 넘겨 줍니다. 그렇지 않았다면 false를 돌려줍니다.
protected void calcPreferredSize(int cw)
  • Description copied from class: Component

Overrides:

  • calcPreferredSize in class Component
public void layout()
  • Description copied from class: Component

Overrides:

  • layout in class Component
public void setFocus(Component c)
public void paint(Graphics g)

Overrides:

  • paint in class ContainerComponent
protected Component getNextTraversalComponent()
  • Description copied from class: ContainerComponent

Overrides:

  • getNextTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 다음 컴포넌트
protected Component getPrevTraversalComponent()
  • Description copied from class: ContainerComponent

Overrides:

  • getPrevTraversalComponent in class ContainerComponent
  • Following copied from class: org.kwis.msp.lwc.ContainerComponent

Returns:

  • 포커스를 가질 수 있는 이전 컴포넌트
protected boolean scrollTo(inODE>ContainerComponent