Class FormComponent
package org.kwis.msp.lwc
java.lang.Object | +--org.kwis.msp.lwc.Component | +--org.kwis.msp.lwc.ContainerComponent | +--org.kwis.msp.lwc.FormComponentDirect Known Subclasses:
ListComponent
extends ContainerComponent:
다양한 컴포넌트를 일렬로 배열하여 화면을 구성하는 컴포넌트.
FormComponent는 ContainerComponent를 확장하여
자식 컴포넌트로서 다양한 컴포넌트를 담아서 화면을 구성하는
컴포넌트입니다. 또한 각 컴포넌트들의 배치와 스크롤 여부를 관리합니다.
자식 컴포넌트들이 포커스 이동은 상하만 동작하도록 되어 있습니다. 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
FormComponent
섹션 제목: “FormComponent”- 폼 컴포넌트를 생성합니다.
FormComponent
섹션 제목: “FormComponent”- 폼 컴포넌트를 생성합니다.
Method Detail
removeAllComponents
섹션 제목: “removeAllComponents”Overrides:
removeAllComponentsin classContainerComponent
setPacked
섹션 제목: “setPacked”Parameters:
b- 폭에 맞추면 true, 그렇지 않으면 false
getPacked
섹션 제목: “getPacked”Returns:
- 폭에 맞추는지 여부
setGab
섹션 제목: “setGab”Parameters:
gab- 컴포넌트 간의 간격
getGab
섹션 제목: “getGab”Returns:
- 컴포넌트 간의 간격
layoutChildHorizontal
섹션 제목: “layoutChildHorizontal”layoutChildVertical
섹션 제목: “layoutChildVertical”focusNotify
섹션 제목: “focusNotify”- Description copied from class:
Component
Overrides:
focusNotifyin classComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
b- 포커스를 가질땐true가 넘어오고, 가지지 않을땐false
keyNotify
섹션 제목: “keyNotify”- Description copied from class:
Component
Overrides:
keyNotifyin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
chr- 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.
Returns:
- 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면,
true를 넘겨 줍니다. 그렇지 않았다면false를 돌려줍니다.
calcPreferredSize
섹션 제목: “calcPreferredSize”- Description copied from class:
Component
Overrides:
calcPreferredSizein classComponent
layout
섹션 제목: “layout”- Description copied from class:
Component
Overrides:
layoutin classComponent
setFocus
섹션 제목: “setFocus”paint
섹션 제목: “paint”Overrides:
paintin classContainerComponent
getNextTraversalComponent
섹션 제목: “getNextTraversalComponent”- Description copied from class:
ContainerComponent
Overrides:
getNextTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 다음 컴포넌트
getPrevTraversalComponent
섹션 제목: “getPrevTraversalComponent”- Description copied from class:
ContainerComponent
Overrides:
getPrevTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 이전 컴포넌트
scrollTo
섹션 제목: “scrollTo”생성자 요약
섹션 제목: “생성자 요약”- 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)— 폼의 내부의 컴포넌트의 폭을 폼의 폭으로 맞출 것인지 여부를 지정합니다.
생성자 상세
섹션 제목: “생성자 상세”FormComponent
섹션 제목: “FormComponent”public FormComponent()- 폼 컴포넌트를 생성합니다.
FormComponent
섹션 제목: “FormComponent”public FormComponent(boolean bVertical)- 폼 컴포넌트를 생성합니다.
removeAllComponents
섹션 제목: “removeAllComponents”public void removeAllComponents()Overrides:
removeAllComponentsin classContainerComponent
setPacked
섹션 제목: “setPacked”public void setPacked(boolean b)Parameters:
b- 폭에 맞추면 true, 그렇지 않으면 false
getPacked
섹션 제목: “getPacked”public boolean getPacked()Returns:
- 폭에 맞추는지 여부
setGab
섹션 제목: “setGab”public void setGab(int gab)Parameters:
gab- 컴포넌트 간의 간격
getGab
섹션 제목: “getGab”public int getGab()Returns:
- 컴포넌트 간의 간격
layoutChildHorizontal
섹션 제목: “layoutChildHorizontal”protected void layoutChildHorizontal()layoutChildVertical
섹션 제목: “layoutChildVertical”protected void layoutChildVertical()focusNotify
섹션 제목: “focusNotify”public void focusNotify(boolean b)- Description copied from class:
Component
Overrides:
focusNotifyin classComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
b- 포커스를 가질땐true가 넘어오고, 가지지 않을땐false
keyNotify
섹션 제목: “keyNotify”protected boolean keyNotify(int type, int key)- Description copied from class:
Component
Overrides:
keyNotifyin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
chr- 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.
Returns:
- 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면,
true를 넘겨 줍니다. 그렇지 않았다면false를 돌려줍니다.
calcPreferredSize
섹션 제목: “calcPreferredSize”protected void calcPreferredSize(int cw)- Description copied from class:
Component
Overrides:
calcPreferredSizein classComponent
layout
섹션 제목: “layout”public void layout()- Description copied from class:
Component
Overrides:
layoutin classComponent
setFocus
섹션 제목: “setFocus”public void setFocus(Component c)paint
섹션 제목: “paint”public void paint(Graphics g)Overrides:
paintin classContainerComponent
getNextTraversalComponent
섹션 제목: “getNextTraversalComponent”protected Component getNextTraversalComponent()- Description copied from class:
ContainerComponent
Overrides:
getNextTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 다음 컴포넌트
getPrevTraversalComponent
섹션 제목: “getPrevTraversalComponent”protected Component getPrevTraversalComponent()- Description copied from class:
ContainerComponent
Overrides:
getPrevTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 이전 컴포넌트
scrollTo
섹션 제목: “scrollTo”protected boolean scrollTo(inODE>ContainerComponent메서드 상세
섹션 제목: “메서드 상세”removeAllComponents
섹션 제목: “removeAllComponents”public void removeAllComponents()Overrides:
removeAllComponentsin classContainerComponent
setPacked
섹션 제목: “setPacked”public void setPacked(boolean b)Parameters:
b- 폭에 맞추면 true, 그렇지 않으면 false
getPacked
섹션 제목: “getPacked”public boolean getPacked()Returns:
- 폭에 맞추는지 여부
setGab
섹션 제목: “setGab”public void setGab(int gab)Parameters:
gab- 컴포넌트 간의 간격
getGab
섹션 제목: “getGab”public int getGab()Returns:
- 컴포넌트 간의 간격
layoutChildHorizontal
섹션 제목: “layoutChildHorizontal”protected void layoutChildHorizontal()layoutChildVertical
섹션 제목: “layoutChildVertical”protected void layoutChildVertical()focusNotify
섹션 제목: “focusNotify”public void focusNotify(boolean b)- Description copied from class:
Component
Overrides:
focusNotifyin classComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
b- 포커스를 가질땐true가 넘어오고, 가지지 않을땐false
keyNotify
섹션 제목: “keyNotify”protected boolean keyNotify(int type, int key)- Description copied from class:
Component
Overrides:
keyNotifyin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.Component
Parameters:
chr- 눌린 키의 문자; ‘0’-‘9’와 ’*’, ’#‘은 기본이며 이외의 문자도 넘어 올 수 있습니다.
Returns:
- 만일 컴포넌트가 인수로 넘오는 키를 이 컴포넌트가 처리했다면,
true를 넘겨 줍니다. 그렇지 않았다면false를 돌려줍니다.
calcPreferredSize
섹션 제목: “calcPreferredSize”protected void calcPreferredSize(int cw)- Description copied from class:
Component
Overrides:
calcPreferredSizein classComponent
layout
섹션 제목: “layout”public void layout()- Description copied from class:
Component
Overrides:
layoutin classComponent
setFocus
섹션 제목: “setFocus”public void setFocus(Component c)paint
섹션 제목: “paint”public void paint(Graphics g)Overrides:
paintin classContainerComponent
getNextTraversalComponent
섹션 제목: “getNextTraversalComponent”protected Component getNextTraversalComponent()- Description copied from class:
ContainerComponent
Overrides:
getNextTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 다음 컴포넌트
getPrevTraversalComponent
섹션 제목: “getPrevTraversalComponent”protected Component getPrevTraversalComponent()- Description copied from class:
ContainerComponent
Overrides:
getPrevTraversalComponentin classContainerComponent- Following copied from class:
org.kwis.msp.lwc.ContainerComponent
Returns:
- 포커스를 가질 수 있는 이전 컴포넌트
scrollTo
섹션 제목: “scrollTo”protected boolean scrollTo(inODE>ContainerComponent