|
MID ÇÁ·ÎÇÊ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.microedition.lcdui.Item | +--javax.microedition.lcdui.StringItem
¹®ÀÚ¿À» Æ÷ÇÔÇÒ ¼ö ÀÖ´Â Ç׸ñ.
StringItem
Àº µð½ºÇ÷¹ÀÌ Àü¿ëÀ̹ǷΠ»ç¿ëÀÚ´Â ³»¿ëÀ»
ÆíÁýÇÒ ¼ö ¾ø½À´Ï´Ù. StringItem
ÀÇ ·¹À̺í°ú ÅØ½ºÆ®
³»¿ë ¸ðµÎ ÀÀ¿ë ÇÁ·Î±×·¥À» »ç¿ëÇÏ¿© ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
·¹À̺íÀÇ ½Ã°¢Àû Ç¥ÇöÀº ÅØ½ºÆ® ³»¿ëÀÇ
½Ã°¢Àû Ç¥Çö°ú ´Ù¸¦ ¼ö ÀÖ½À´Ï´Ù.
Field Summary |
Fields inherited from class javax.microedition.lcdui.Item |
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
Constructor Summary | |
StringItem(String label,
String text)
»õ StringItem °´Ã¼¸¦ ¸¸µì´Ï´Ù.
|
|
StringItem(String label,
String text,
int appearanceMode)
Á¦°øµÈ ·¹À̺í, ÅØ½ºÆ® ³»¿ë ¹× ¸ð¾ç ¸ðµå¸¦ »ç¿ëÇÏ¿© »õ StringItem °´Ã¼¸¦ ¸¸µì´Ï´Ù.
|
Method Summary | |
int |
getAppearanceMode()
StringItem ÀÇ ¸ð¾ç ¸ðµå¸¦ ¹ÝȯÇÕ´Ï´Ù.
|
Font |
getFont()
ÀÌ StringItem À» ·»´õ¸µÇϱâ À§ÇÑ ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ
±âº» ±Û²ÃÀ» °¡Á®¿É´Ï´Ù.
|
String |
getText()
StringItem ÀÇ ÅØ½ºÆ® ³»¿ëÀ» °¡Á®¿À°Å³ª
StringItem ÀÌ ºñ¾î ÀÖ´Â °æ¿ì¿¡´Â
null À» °¡Á®¿É´Ï´Ù. |
void |
setFont(Font font)
ÀÌ StringItem À» ·»´õ¸µÇϱâ À§ÇÑ ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ
±âº» ±Û²ÃÀ» ¼³Á¤ÇÕ´Ï´Ù.
|
void |
setText(String text)
StringItem ÀÇ ÅØ½ºÆ® ³»¿ëÀ» ¼³Á¤ÇÕ´Ï´Ù.
|
Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringItem(String label, String text)
StringItem
°´Ã¼¸¦ ¸¸µì´Ï´Ù.
ÀÌ ±¸¼ºÀÚ¸¦ È£ÃâÇÏ´Â °ÍÀº ´ÙÀ½À» È£ÃâÇÏ´Â °Í°ú °°½À´Ï´Ù.
|
label
- Item
·¹À̺ítext
- ÅØ½ºÆ® ³»¿ëStringItem(String, String, int)
public StringItem(String label, String text, int appearanceMode)
StringItem
°´Ã¼¸¦ ¸¸µì´Ï´Ù.
·¹À̺íÀ̳ª ÅØ½ºÆ®°¡ Á¸ÀçÇϰųª null
ÀÏ ¼ö ÀÖ½À´Ï´Ù.
appearanceMode
¸Å°³
º¯¼ö(¸ð¾ç ¸ðµå ÂüÁ¶)¸¦
º¸¸é ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ ÀÌ StringItem
¿¡ »ç¿ëÇÒ
Ç÷§ÆûÀÌ ¹«¾ùÀÎÁö ¾Ë ¼ö ÀÖ½À´Ï´Ù.
ÇÏÀÌÆÛ¸µÅ©³ª ¹öư °°Àº µ¿ÀÛÀ» Á¦°øÇÏ·Á¸é ÀÀ¿ë ÇÁ·Î±×·¥Àº
񃧯 Command
¸¦ ÀÌ StringItem
°ú
¿¬°ü½Ã۰í ÀÌ StringItem
¿¡
ItemCommandListener
¸¦
Ãß°¡ÇØ¾ß ÇÕ´Ï´Ù.
StringItem
À» ¹öưÀ¸·Î »ç¿ëÇÏ´Â ¿¹´Â
´ÙÀ½°ú °°½À´Ï´Ù.
|
label
- StringItem
ÀÇ ·¹À̺í, ¶Ç´Â
·¹À̺íÀÌ ¾ø´Â °æ¿ì¿¡´Â null
text
- StringItem
ÀÇ ÅØ½ºÆ® ³»¿ë,
¶Ç´Â ³»¿ëÀÌ Ã³À½ºÎÅÍ ºñ¾î ÀÖ´Â °æ¿ì¿¡´Â null
appearanceMode
- StringItem
ÀÇ ¸ð¾ç ¸ðµå,
Item.PLAIN
, Item.HYPERLINK
¶Ç´Â Item.BUTTON
Áß Çϳª
IllegalArgumentException
- appearanceMode
°¡ À¯È¿ÇÏÁö ¾ÊÀº °æ¿ìMethod Detail |
public String getText()
StringItem
ÀÇ ÅØ½ºÆ® ³»¿ëÀ» °¡Á®¿À°Å³ª
StringItem
ÀÌ ºñ¾î ÀÖ´Â °æ¿ì¿¡´Â
null
À» °¡Á®¿É´Ï´Ù.
setText(java.lang.String)
public void setText(String text)
StringItem
ÀÇ ÅØ½ºÆ® ³»¿ëÀ» ¼³Á¤ÇÕ´Ï´Ù.
ÅØ½ºÆ®°¡ null
À̸é
StringItem
˼
°ø¹éÀ¸·Î ¼³Á¤µË´Ï´Ù.
text
- »õ ³»¿ëgetText()
public int getAppearanceMode()
StringItem
ÀÇ ¸ð¾ç ¸ðµå¸¦ ¹ÝȯÇÕ´Ï´Ù.
¸ð¾ç ¸ðµå¸¦ ÂüÁ¶ÇϽʽÿÀ.
Item.PLAIN
, Item.HYPERLINK
¶Ç´Â
Item.BUTTON
Áß Çϳªpublic void setFont(Font font)
StringItem
À» ·»´õ¸µÇϱâ À§ÇÑ ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ
±âº» ±Û²ÃÀ» ¼³Á¤ÇÕ´Ï´Ù.
±Û²ÃÀº ÈùÆ®ÀÏ »ÓÀÌ¸ç ±¸Çö ½Ã ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ
±âº» ±Û²ÃÀ» ¹«½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù.
font
¸Å°³ º¯¼ö´Â À¯È¿ÇÑ Font
°´Ã¼À̰ųª null
À̾î¾ß ÇÕ´Ï´Ù.
font
¸Å°³ º¯¼ö°¡ null
À̸é
±¸Çö ½Ã ±âº» ±Û²ÃÀ» »ç¿ëÇÏ¿© StringItem
À» ·»´õ¸µÇØ¾ß ÇÕ´Ï´Ù.
font
- StringItem
·»´õ¸µ¿¡
»ç¿ëÇÒ ±âº» ±Û²ÃgetFont()
public Font getFont()
StringItem
À» ·»´õ¸µÇϱâ À§ÇÑ ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ
±âº» ±Û²ÃÀ» °¡Á®¿É´Ï´Ù.
¹ÝȯµÈ °ªÀº ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ ¼³Á¤ÇÑ ±Û²ÃÀÔ´Ï´Ù.
ÀÌ´Â ±¸Çö ½Ã °ªÀ» ¹«½ÃÇÑ °æ¿ì¿¡µµ ¸¶Âù°¡ÁöÀÔ´Ï´Ù.
ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ ±Û²ÃÀ» ¼³Á¤ÇÏÁö ¾Ê¾Ò°Å³ª ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ
¸í½ÃÀûÀ¸·Î ±Û²ÃÀ» null
·Î ¼³Á¤ÇÑ °æ¿ì¿¡´Â
±¸Çö ½Ã ¼±ÅÃÇÑ ±âº» ±Û²ÃÀÌ °ªÀÌ µË´Ï´Ù.
StringItem
·»´õ¸µ¿¡
»ç¿ëÇÒ ±âº» ±Û²ÃsetFont(javax.microedition.lcdui.Font)
|
MID ÇÁ·ÎÇÊ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |