|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQLabel
Label Component.
Field Summary | |
static int |
AUTO_TEXT
Auto text format (the value is 2). |
static int |
BORDER_STYLE_PLAIN
Plain border (the value is 16). |
static int |
BORDER_STYLE_RAISED
Raised border (the value is 32). |
static int |
BORDER_STYLE_SUNKEN
Sunken border (the value is 48). |
static int |
BORDER_TYPE_BOX
Box border type (the value is 1). |
static int |
BORDER_TYPE_CLASSIC
Classic border type (the value is 3). |
static int |
BORDER_TYPE_NONE
None border type (the value is 0). |
static int |
BORDER_TYPE_STANDARD
Standard border type (the value is 2). |
static int |
BORDER_TYPE_STYLED
Styled border type (the value is 6). |
static int |
PLAIN_TEXT
Plain text format (the value is 0). |
static int |
RICH_TEXT
Rich text format (the value is 1). |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants |
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQLabelProperties |
PROPERTY_BORDER_STYLE, PROPERTY_BORDER_TYPE, PROPERTY_BORDER_WIDTH, PROPERTY_DISABLED_ICON, PROPERTY_HORIZONTAL_ALIGNMENT, PROPERTY_ICON, PROPERTY_TEXT_FORMAT, PROPERTY_VERTICAL_ALIGNMENT, PROPERTY_WRAP_TEXT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTextProperty |
PROPERTY_MNEMONIC, PROPERTY_TEXT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQLabel()
Constructs new JQLabel object. |
|
JQLabel(Icon icon)
Constructs new JQLabel object. |
|
JQLabel(java.lang.String text)
Constructs new JQLabel object. |
|
JQLabel(java.lang.String text,
Icon icon)
Constructs new JQLabel object. |
|
JQLabel(java.lang.String text,
Icon icon,
int horizontalAlignment)
Constructs new JQLabel object. |
|
JQLabel(java.lang.String text,
int horizontalAlignment)
Constructs new JQLabel object. |
Method Summary | |
protected int |
checkHorizontalKey(int key,
java.lang.String message)
Checks horizontal alignment key. |
protected int |
checkTextFormatKey(int key,
java.lang.String message)
Checks text format key. |
protected int |
checkVerticalKey(int key,
java.lang.String message)
Checks vertical alignment key. |
int |
getBorderStyle()
Returns border style. |
int |
getBorderType()
Returns border type. |
int |
getBorderWidth()
Returns border width. |
Icon |
getDisabledIcon()
Returns disabled icon. |
int |
getHorizontalAlignment()
Returns horizontal alignment. |
Icon |
getIcon()
Returns icon. |
java.lang.String |
getText()
Returns text. |
int |
getTextFormat()
Returns text format. |
int |
getVerticalAlignment()
Returns vertical alignment. |
boolean |
isWrapText()
Returns true if the label is wrapping text. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
setBorderStyle(int borderStyle)
Sets border style. |
void |
setBorderType(int borderType)
Sets border type. |
void |
setBorderWidth(int borderWidth)
Sets border width. |
void |
setDisabledIcon(Icon icon)
Sets disabled icon. |
void |
setHorizontalAlignment(int alignment)
Sets horizontal alignment. |
void |
setIcon(Icon icon)
Sets icon. |
void |
setText(java.lang.String text)
Sets text. |
void |
setTextFormat(int textFormat)
Sets text format. |
void |
setVerticalAlignment(int alignment)
Sets vertical alignment. |
void |
setWrapText(boolean wrapText)
Sets text wrap status. |
void |
updateLocalization()
Updates localization. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PLAIN_TEXT
public static final int RICH_TEXT
public static final int AUTO_TEXT
public static final int BORDER_TYPE_NONE
public static final int BORDER_TYPE_BOX
public static final int BORDER_TYPE_STANDARD
public static final int BORDER_TYPE_CLASSIC
public static final int BORDER_TYPE_STYLED
public static final int BORDER_STYLE_PLAIN
public static final int BORDER_STYLE_RAISED
public static final int BORDER_STYLE_SUNKEN
Constructor Detail |
public JQLabel()
public JQLabel(java.lang.String text)
text
- the textpublic JQLabel(Icon icon)
icon
- the iconpublic JQLabel(java.lang.String text, Icon icon)
text
- the texticon
- the iconpublic JQLabel(java.lang.String text, int horizontalAlignment)
text
- the texthorizontalAlignment
- the horizontal alignmentpublic JQLabel(java.lang.String text, Icon icon, int horizontalAlignment)
text
- the texticon
- the iconhorizontalAlignment
- the horizontal alignmentMethod Detail |
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the textpublic int getTextFormat()
public void setTextFormat(int textFormat)
Valid values are: PLAIN_TEXT, RICH_TEXT and
AUTO_TEXT.
Default value is: AUTO_TEXT.
textFormat
- the new text formatpublic boolean isWrapText()
public void setWrapText(boolean wrapText)
wrapText
- if true the label will wrap the textpublic int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
Valid values are: LEFT, CENTER, RIGHT,
LEADING and TRAILING.
Default value is: LEADING.
alignment
- the horizontal alignmentpublic int getVerticalAlignment()
public void setVerticalAlignment(int alignment)
Valid values are: TOP, CENTER and BOTTOM.
Default value is: CENTER.
alignment
- the vertical alignmentpublic Icon getIcon()
public void setIcon(Icon icon)
icon
- the iconpublic Icon getDisabledIcon()
public void setDisabledIcon(Icon icon)
icon
- the disabled iconpublic int getBorderType()
public void setBorderType(int borderType)
borderType
- the border typepublic int getBorderStyle()
public void setBorderStyle(int borderStyle)
borderStyle
- the border stylepublic int getBorderWidth()
public void setBorderWidth(int borderWidth)
borderWidth
- intprotected final int checkHorizontalKey(int key, java.lang.String message)
key
- the keymessage
- the error message
java.lang.IllegalArgumentException
- if the key is invalidprotected final int checkVerticalKey(int key, java.lang.String message)
key
- the keymessage
- the error message
java.lang.IllegalArgumentException
- if the key is invalidprotected final int checkTextFormatKey(int key, java.lang.String message)
key
- the keymessage
- the error message
java.lang.IllegalArgumentException
- if the key is invalidpublic void updateLocalization()
updateLocalization
in class JQComponent
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |